API Test Keys

Create Payout Links Using Contact ID

POST
/v1/payout-links

Click to copy

Use this endpoint to create a Payout Link using the Contact id of the recipient.

to generate the Contact id/Customer id.

Is this page helpful?

Curl

1
curl -u <YOUR_KEY>:<YOUR_SECRET> \
2
-X POST https://api.razorpay.com/v1/payout-links \
3
-H "Content-Type: application/json" \
4
-d '{
5
"account_number": "7878780080857996",
6
"contact": {
7
"id": "cont_00000000000001"
8
}, // Only applicable when you have the bank account details of the recipient saved as a RazorpayX Contact.
9
"amount": 1000,
10
"currency": "INR",
11
"purpose": "refund",
12
"description": "Payout link for Gaurav Kumar",
13
"receipt": "Receipt No. 1",
14
"send_sms": true,
15
"send_email": true,
16
"notes": {
17
"notes_key_1":"Tea, Earl Grey, Hot",
18
"notes_key_2":"Tea, Earl Grey… decaf."
19
},
20
"expire_by": 1545384058 // This parameter can be used only if you have enabled the expiry feature for Payout Links.
21
}'

Success

1
{
2
"id": "poutlk_00000000000001",
3
"entity": "payout_link",
4
"contact": {
5
"name": "Gaurav Kumar",
6
"email": "gaurav.kumar@example.com",
7
"contact": "912345678"
8
},
9
"purpose": "refund",
10
"status": "issued",
11
"amount": 1000,
12
"currency": "INR",
13
"description": "Payout link for Gaurav Kumar",
14
"short_url": "https://rzp.io/i/3b1Tw6",
15
"created_at": 1545383037,
16
"contact_id": "cont_00000000000001",
17
"send_sms": true,
18
"send_email": true,
19
"fund_account_id": null,
20
"cancelled_at": null,
21
"attempt_count": 0,
22
"receipt": "Receipt No. 1",
23
"notes": {
24
"notes_key_1":"Tea, Earl Grey, Hot",
25
"notes_key_2":"Tea, Earl Grey… decaf."
26
},
27
"expire_by": 1545384058,
28
"expired_at": 1545384658
29
}
Request Parameters
account_number

*

string

The account from which you want to make the payout.
Account details can be found on the

. For example, 7878780080316316.
  • Pass your customer identifier if you want money to be deducted from RazorpayX Lite.
  • Pass your current account number if you want money to be deducted from your current account.

Watch Out!

  • This is NOT your contact's bank account number. Log in to your and go to My Account & Settings → Banking → Customer Identifier.
  • This value is different for Test Mode and Live Mode.

contact

*

object

Details of the contact to whom the Payout Link is to be sent.

Show child parameters (1)

amount

*

integer

The amount, in paise, to be transferred from the business account to the contact's fund account. For example, pass 1000000 to transfer an amount of ₹10,000. The minimum value that can be passed is 100.

The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.

currency

*

string

The currency in which the payout is being made. Here, it is INR.

purpose

*

string

The purpose of the payout that is being created via the Payout Link. For example, refund.

Classifications available by default:

  • refund
  • cashback
  • payout
  • salary
  • utility bill
  • vendor bill

Additional purposes for payouts can be created via the

and then used in the API. You cannot create new payout purposes via the API.

description

*

string

Add a description to communicate the context of the Payout Link to the recipient. For example, Cashback for Mr. Gaurav Kumar on the purchase on Earl Grey Tea.

receipt
string

A user-entered receipt number for the payout. For example, Receipt No. 1.

send_sms
boolean

Possible values:

  • true: Razorpay sends the Payout Link to the provided contact number via SMS.
  • false (default): You send the Payout Link to the contact via SMS.

send_email
boolean

Possible values:

  • true: Razorpay sends the Payout Link to the provided email address via email.
  • false (default): You send the Payout Link to the contact via email.

notes
object

User-entered notes for internal reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Beam me up Scotty”.

expire_by
integer

Timestamp, in Unix, when the Payout Link was to expire. This is set at the time of creation of the Payout Link and is set at least 15 minutes ahead of the current time.

This value is returned only if you have enabled the expiry feature for Payout Links. Know how to

to Payout Links.

Response Parameters
id
string

The unique identifier of the Payout Link that is created. For example, poutlk_00000000000001.

entity
string

The entity being created. Here it will be payout_link.

contact
object

Details of the contact to whom the Payout Link is to be sent.

Show child parameters (4)

contact_id
string

The unique identifier of the contact to whom the Payout Link has to be sent. For example, cont_00000000000001.

fund_account_id
string

The unique identifier of the contact's fund account to which the payout will be made. For example, fa_00000000000001.

Fund Account id is returned only when the Payout Link moves to the

.

payout_id
string

The unique identifier for the payout made to the contact. For example, pout_00000000000001.

This value is returned only when the Payout Link moves to the

.

purpose
string

The purpose of the payout. For example, refund, cashback or payout.

status
string

The Payout Link status. Possible values:

  • pending
  • issued
  • processing
  • processed
  • cancelled
  • rejected

Refer to the

for more details.

amount
integer

The amount, in paise, to be transferred from the business account to the contact's fund account.

The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.

currency
string

The currency in which the payout is being made. Here, it is INR.

description
string

A user-entered description for the Payout Link. For example, Payout link for Gaurav Kumar.

attempt_count
integer

The number of attempts to complete the payout.

receipt
string

A user-entered receipt number for the payout. For example, Receipt No. 1.

notes
object

User-entered notes for internal reference. This is a key-value pair. For example, "note_key": "Beam me up Scotty”.

short_url
string

A short link for the Payout Link that was created. This is the link that is shared with the contact.

send_sms
boolean

Possible values:

  • true: SMS sent to the provided contact number.
  • false: SMS could not be sent to the provided contact number. This could be because the contact number provided was wrong.

send_email
boolean

Possible values:

  • true: Email sent to the provided email address.
  • false: Email could not be sent to the provided email address. This could be because the email address provided was wrong.

created_at
integer

Timestamp, in Unix, when the Payout Link was created.

cancelled_at
integer

Timestamp, in Unix, when the Payout Link was cancelled by you. This value is returned only when the Payout Link moves to the cancelled state.

expire_by
integer

Timestamp, in Unix, when the Payout Link was to expire. This is set at the time of creation of the Payout Link and is set at least 15 minutes ahead of the current time.

This value is returned only if you have enabled the expiry feature for Payout Links. Know more about how to

to Payout Links.

expired_at
integer

Timestamp, in Unix, when the Payout Link expired. This is set at the time of creation of the Payout Link.

Create Payout Links Using Contact ID

POST
/v1/payout-links

Click to copy

Use this endpoint to create a Payout Link using the Contact id of the recipient.

to generate the Contact id/Customer id.

Is this page helpful?

Request Parameters
account_number

*

string

The account from which you want to make the payout.
Account details can be found on the

. For example, 7878780080316316.
  • Pass your customer identifier if you want money to be deducted from RazorpayX Lite.
  • Pass your current account number if you want money to be deducted from your current account.

Watch Out!

  • This is NOT your contact's bank account number. Log in to your and go to My Account & Settings → Banking → Customer Identifier.
  • This value is different for Test Mode and Live Mode.

contact

*

object

Details of the contact to whom the Payout Link is to be sent.

Show child parameters (1)

amount

*

integer

The amount, in paise, to be transferred from the business account to the contact's fund account. For example, pass 1000000 to transfer an amount of ₹10,000. The minimum value that can be passed is 100.

The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.

currency

*

string

The currency in which the payout is being made. Here, it is INR.

purpose

*

string

The purpose of the payout that is being created via the Payout Link. For example, refund.

Classifications available by default:

  • refund
  • cashback
  • payout
  • salary
  • utility bill
  • vendor bill

Additional purposes for payouts can be created via the

and then used in the API. You cannot create new payout purposes via the API.

description

*

string

Add a description to communicate the context of the Payout Link to the recipient. For example, Cashback for Mr. Gaurav Kumar on the purchase on Earl Grey Tea.

receipt
string

A user-entered receipt number for the payout. For example, Receipt No. 1.

send_sms
boolean

Possible values:

  • true: Razorpay sends the Payout Link to the provided contact number via SMS.
  • false (default): You send the Payout Link to the contact via SMS.

send_email
boolean

Possible values:

  • true: Razorpay sends the Payout Link to the provided email address via email.
  • false (default): You send the Payout Link to the contact via email.

notes
object

User-entered notes for internal reference. This is a key-value pair. You can enter a maximum of 15 key-value pairs. For example, "note_key": "Beam me up Scotty”.

expire_by
integer

Timestamp, in Unix, when the Payout Link was to expire. This is set at the time of creation of the Payout Link and is set at least 15 minutes ahead of the current time.

This value is returned only if you have enabled the expiry feature for Payout Links. Know how to

to Payout Links.

Response Parameters
id
string

The unique identifier of the Payout Link that is created. For example, poutlk_00000000000001.

entity
string

The entity being created. Here it will be payout_link.

contact
object

Details of the contact to whom the Payout Link is to be sent.

Show child parameters (4)

contact_id
string

The unique identifier of the contact to whom the Payout Link has to be sent. For example, cont_00000000000001.

fund_account_id
string

The unique identifier of the contact's fund account to which the payout will be made. For example, fa_00000000000001.

Fund Account id is returned only when the Payout Link moves to the

.

payout_id
string

The unique identifier for the payout made to the contact. For example, pout_00000000000001.

This value is returned only when the Payout Link moves to the

.

purpose
string

The purpose of the payout. For example, refund, cashback or payout.

status
string

The Payout Link status. Possible values:

  • pending
  • issued
  • processing
  • processed
  • cancelled
  • rejected

Refer to the

for more details.

amount
integer

The amount, in paise, to be transferred from the business account to the contact's fund account.

The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.

currency
string

The currency in which the payout is being made. Here, it is INR.

description
string

A user-entered description for the Payout Link. For example, Payout link for Gaurav Kumar.

attempt_count
integer

The number of attempts to complete the payout.

receipt
string

A user-entered receipt number for the payout. For example, Receipt No. 1.

notes
object

User-entered notes for internal reference. This is a key-value pair. For example, "note_key": "Beam me up Scotty”.

short_url
string

A short link for the Payout Link that was created. This is the link that is shared with the contact.

send_sms
boolean

Possible values:

  • true: SMS sent to the provided contact number.
  • false: SMS could not be sent to the provided contact number. This could be because the contact number provided was wrong.

send_email
boolean

Possible values:

  • true: Email sent to the provided email address.
  • false: Email could not be sent to the provided email address. This could be because the email address provided was wrong.

created_at
integer

Timestamp, in Unix, when the Payout Link was created.

cancelled_at
integer

Timestamp, in Unix, when the Payout Link was cancelled by you. This value is returned only when the Payout Link moves to the cancelled state.

expire_by
integer

Timestamp, in Unix, when the Payout Link was to expire. This is set at the time of creation of the Payout Link and is set at least 15 minutes ahead of the current time.

This value is returned only if you have enabled the expiry feature for Payout Links. Know more about how to

to Payout Links.

expired_at
integer

Timestamp, in Unix, when the Payout Link expired. This is set at the time of creation of the Payout Link.

Curl

1
curl -u <YOUR_KEY>:<YOUR_SECRET> \
2
-X POST https://api.razorpay.com/v1/payout-links \
3
-H "Content-Type: application/json" \
4
-d '{
5
"account_number": "7878780080857996",
6
"contact": {
7
"id": "cont_00000000000001"
8
}, // Only applicable when you have the bank account details of the recipient saved as a RazorpayX Contact.
9
"amount": 1000,
10
"currency": "INR",
11
"purpose": "refund",
12
"description": "Payout link for Gaurav Kumar",
13
"receipt": "Receipt No. 1",
14
"send_sms": true,
15
"send_email": true,
16
"notes": {
17
"notes_key_1":"Tea, Earl Grey, Hot",
18
"notes_key_2":"Tea, Earl Grey… decaf."
19
},
20
"expire_by": 1545384058 // This parameter can be used only if you have enabled the expiry feature for Payout Links.
21
}'

Success

1
{
2
"id": "poutlk_00000000000001",
3
"entity": "payout_link",
4
"contact": {
5
"name": "Gaurav Kumar",
6
"email": "gaurav.kumar@example.com",
7
"contact": "912345678"
8
},
9
"purpose": "refund",
10
"status": "issued",
11
"amount": 1000,
12
"currency": "INR",
13
"description": "Payout link for Gaurav Kumar",
14
"short_url": "https://rzp.io/i/3b1Tw6",
15
"created_at": 1545383037,
16
"contact_id": "cont_00000000000001",
17
"send_sms": true,
18
"send_email": true,
19
"fund_account_id": null,
20
"cancelled_at": null,
21
"attempt_count": 0,
22
"receipt": "Receipt No. 1",
23
"notes": {
24
"notes_key_1":"Tea, Earl Grey, Hot",
25
"notes_key_2":"Tea, Earl Grey… decaf."
26
},
27
"expire_by": 1545384058,
28
"expired_at": 1545384658
29
}