Skip to main content
POST
Create a payment link

Authorizations

Authorization
string
header
required

Use your Razorpay Key ID as the username and Key Secret as the password.

Body

application/json
amount
integer
required

Payment link amount in the smallest currency unit (e.g., paise for INR). Must be greater than 0.

Example:

50000

currency
string
required

ISO 4217 currency code. Supported values include INR.

Example:

"INR"

description
string

A brief description of the payment link shown to the customer on the payment page.

Example:

"Payment for policy no #23456"

customer
object

Customer contact details.

notify
object

Notification channels for sending the payment link to the customer.

reminder_enable
boolean

Set to true to send payment reminders to the customer.

Example:

true

expire_by
integer

Unix timestamp after which the payment link will expire. Must be at least 15 minutes in the future.

Example:

1691097057

accept_partial
boolean

Set to true to allow the customer to pay a partial amount.

Example:

false

reference_id
string

An optional reference identifier for internal use. Must be unique per payment link.

Example:

"TS1989"

Response

Payment link created successfully.

A Razorpay Payment Link object.

id
string

Unique identifier of the payment link.

Example:

"plink_ERgihyaAAC0VNW"

entity
string

Entity type. Always payment_link.

Example:

"payment_link"

accept_partial
boolean

Indicates whether the customer can make a partial payment.

Example:

false

amount
integer

Payment link amount in the smallest currency unit (e.g., paise for INR).

Example:

50000

amount_paid
integer

Amount paid against the payment link so far.

Example:

0

cancelled_at
integer | null

Unix timestamp at which the payment link was cancelled. null if not cancelled.

Example:

null

created_at
integer

Unix timestamp at which the payment link was created.

Example:

1591097057

currency
string

ISO 4217 currency code.

Example:

"INR"

customer
object

Customer contact details.

description
string

A brief description shown to the customer on the payment page.

Example:

"Payment for policy no #23456"

expire_by
integer | null

Unix timestamp after which the payment link will expire.

Example:

1691097057

expired_at
integer | null

Unix timestamp at which the payment link expired.

Example:

null

reference_id
string | null

An optional reference identifier you can set for internal use.

Example:

"TS1989"

reminder_enable
boolean

Indicates whether payment reminders are enabled for the link.

Example:

true

short_url
string

Short URL of the payment link that is shared with customers.

Example:

"https://rzp.io/i/nxrHnLJ"

status
enum<string>

Current status of the payment link.

Available options:
created,
partially_paid,
paid,
cancelled,
expired
Example:

"created"

updated_at
integer

Unix timestamp at which the payment link was last updated.

Example:

1591097057

user_id
string

Unique identifier of the Razorpay user who created the payment link.

Example:

""