API Test Keys
Make Payouts to Amazon Pay Wallet Using Composite API
POST
/v1/payouts
Click to copy
Use this endpoint to create a payout to a Fund Account of type wallet. Know more about
.Composite API gives you the flexibility to either create a new Contact and Fund Account or use the existing Contact and Fund Account details (contact_id
and fund_account_id
) to make a payout.
Ensure you
and pass the to make a successful payout.Is this page helpful?
1curl -u <YOUR_KEY>:<YOUR_SECRET> \2-X POST https://api.razorpay.com/v1/payouts \3-H "Content-Type: application/json" \4-H "X-Payout-Idempotency: 53cda91c-8f81-4e77-bbb9-7388f4ac6bf4" \5-d '{6"account_number": "7878780080316316",7"amount": 1000000,8"currency": "INR",9"mode": "amazonpay",10"purpose": "refund",11"fund_account": {12"account_type": "wallet",13"wallet": {14"provider": "amazonpay",15"phone": "+919876543210",16"email": " gaurav.kumar@example.com",17"name": "Gaurav Kumar"18},19"contact": {20"name": "Gaurav Kumar",21"email": "gaurav.kumar@example.com",22"contact": "9876543210",23"type": "employee",24"reference_id": "Acme Contact ID 12345",25"notes": {26"notes_key_1": "Tea, Earl Grey, Hot",27"notes_key_2": "Tea, Earl Grey… decaf."28}29}30},31"queue_if_low_balance": true,32"reference_id": "Acme Transaction ID 12345",33"narration": "Acme Corp Fund Transfer",34"notes": {35"notes_key_1": "Beam me up Scotty",36"notes_key_2": "Engage"37}38}'
Success
1{2"id": "pout_00000000000001",3"entity": "payout",4"fund_account_id": "fa_00000000000001",5"fund_account": {6"id": "fa_00000000000001",7"entity": "fund_account",8"contact_id": "cont_00000000000001",9"contact": {10"id": "cont_00000000000001",11"entity": "contact",12"name": "Gaurav Kumar",13"contact": "9876543210",14"email": "gaurav.kumar@example.com",15"type": "employee",16"reference_id": "Acme Contact ID 12345",17"batch_id": null,18"active": true,19"notes": {20"notes_key_1": "Tea, Earl Grey, Hot",21"notes_key_2": "Tea, Earl Grey… decaf."22},23"created_at": 158081735324},25"account_type": "wallet",26"wallet": {27"provider": "amazonpay",28"phone": "+919876543210",29"email": " gaurav.kumar@example.com",30"name": "Gaurav Kumar"31},32"batch_id": null,33"active": true,34"created_at": 158108027235},36"amount": 1000000,37"currency": "INR",38"notes": {39"notes_key_1": "Beam me up Scotty",40"notes_key_2": "Engage"41},42"fees": 590,43"tax": 90,44"status": "processed",45"purpose": "payout",46"utr": "GCID1234567",47"mode": "amazonpay",48"reference_id": "Acme Transaction ID 12345",49"narration": "Acme Corp Fund Transfer",50"batch_id": null,51"status_details": null,52"created_at": 158149931953}
Request Parameters
account_number
*
string
Your customer identifier.
Account details can be found on the RazorpayX Dashboard. For example, 7878780080316316
.
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.
amount
*
integer
The payout amount, in paise. For example, pass 1000000
to transfer an amount of ₹10,000. Minimum value is 100
(₹1). Maximum value 1000000
(₹10,000).
The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.
currency
*
string
The payout currency. Here, it is INR
.
mode
*
string
The mode to be used to create the payout. Here, it has to be amazonpay
.
The payout modes are case-sensitive. When creating payouts using APIs, ensure payout modes are entered in upper case.
purpose
*
string
The purpose of the payout. Classifications available in the system 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. However, it is not possible to create a new purpose for the payout via the API.fund_account
*
object
Details of the contact and fund account to which the payout should be made.
Show child parameters (3)
queue_if_low_balance
boolean
Possible values:
true
: The payout is queued when your business account does not have sufficient balance to process the payout.false
(default): The payout is never queued. The payout fails if your business account does not have sufficient balance to process the payout.
reference_id
string
Maximum length is 40 characters. A reference you enter for the payout. For example, Acme Transaction ID 12345
. You can use this field to store your own transaction ID, if any.
narration
string
Maximum length 30 characters. Allowed characters: a-z
, A-Z
, 0-9
and space
. This custom note also appears on the bank statement. If no value is passed for this parameter, it defaults to the Merchant Billing Label.
Enter the important text in the first 9 characters as banks truncate the rest as per their standards.
notes
object
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”
.
Response Parameters
id
string
The unique identifier of the order.
entity
string
The entity being created. Here, it will be payout
.
fund_account_id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
fund_account
object
Contact and fund account details to which the payout was made.
Show child parameters (9)
amount
integer
The payout amount, in paise. For example, pass 1000000
to transfer an amount of ₹10,000. Minimum value 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 payout's currency. Here, it is INR
.
notes
array of objects
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty"
.
fees
integer
The fees for the payout. This value is returned only when the payout moves to the processing
state. For example, 5
.
tax
integer
The tax that is applicable for the fee being charged. This value is returned only when the payout moves to the processing
state. For example, 1
.
status
string
The status of the payout. Possible payout states:
queued
pending
(if you have enabled)rejected
(if you have enabled)processing
processed
cancelled
reversed
Refer to
.purpose
string
The purpose of the payout that is being created. The following classifications are available in the system 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. However, it is not possible to create a new purpose for the payout via the API.utr
string
The unique transaction number linked to a payout. For example, GCID1234567
.
mode
string
The mode used to make the payout. Available modes is amazonpay
. The payout modes are case-sensitive.
reference_id
string
A user-generated reference given to the payout. Maximum length is 40 characters. For example, Acme Transaction ID 12345
. You can use this field to store your own transaction ID, if any.
narration
string
Custom note that also appears on the bank statement. Maximum length 30 characters. Allowed characters: a-z, A-Z, 0-9 and space.
You cannot enter a custom narration when creating a payout via Amazon Pay.
batch_id
string
This value is returned if the contact was created as part of a bulk upload. For example, batch_00000000000001
.
status_details
object
This parameter returns the current status of the payout. For example, IMPS is not enabled on beneficiary account, Retry with different mode
.
Show child parameters (3)
created_at
integer
Indicates the Unix timestamp when this order was created. For example, 1545320320
.
Make Payouts to Amazon Pay Wallet Using Composite API
POST
/v1/payouts
Click to copy
Use this endpoint to create a payout to a Fund Account of type wallet. Know more about
.Composite API gives you the flexibility to either create a new Contact and Fund Account or use the existing Contact and Fund Account details (contact_id
and fund_account_id
) to make a payout.
Ensure you
and pass the to make a successful payout.Is this page helpful?
Request Parameters
account_number
*
string
Your customer identifier.
Account details can be found on the RazorpayX Dashboard. For example, 7878780080316316
.
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.
amount
*
integer
The payout amount, in paise. For example, pass 1000000
to transfer an amount of ₹10,000. Minimum value is 100
(₹1). Maximum value 1000000
(₹10,000).
The value passed here does not include fees and tax. Fees and tax, if any, are deducted from your account balance.
currency
*
string
The payout currency. Here, it is INR
.
mode
*
string
The mode to be used to create the payout. Here, it has to be amazonpay
.
The payout modes are case-sensitive. When creating payouts using APIs, ensure payout modes are entered in upper case.
purpose
*
string
The purpose of the payout. Classifications available in the system 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. However, it is not possible to create a new purpose for the payout via the API.fund_account
*
object
Details of the contact and fund account to which the payout should be made.
Show child parameters (3)
queue_if_low_balance
boolean
Possible values:
true
: The payout is queued when your business account does not have sufficient balance to process the payout.false
(default): The payout is never queued. The payout fails if your business account does not have sufficient balance to process the payout.
reference_id
string
Maximum length is 40 characters. A reference you enter for the payout. For example, Acme Transaction ID 12345
. You can use this field to store your own transaction ID, if any.
narration
string
Maximum length 30 characters. Allowed characters: a-z
, A-Z
, 0-9
and space
. This custom note also appears on the bank statement. If no value is passed for this parameter, it defaults to the Merchant Billing Label.
Enter the important text in the first 9 characters as banks truncate the rest as per their standards.
notes
object
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”
.
Response Parameters
id
string
The unique identifier of the order.
entity
string
The entity being created. Here, it will be payout
.
fund_account_id
string
The unique identifier linked to the fund account. For example, fa_00000000000001
.
fund_account
object
Contact and fund account details to which the payout was made.
Show child parameters (9)
amount
integer
The payout amount, in paise. For example, pass 1000000
to transfer an amount of ₹10,000. Minimum value 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 payout's currency. Here, it is INR
.
notes
array of objects
Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty"
.
fees
integer
The fees for the payout. This value is returned only when the payout moves to the processing
state. For example, 5
.
tax
integer
The tax that is applicable for the fee being charged. This value is returned only when the payout moves to the processing
state. For example, 1
.
status
string
The status of the payout. Possible payout states:
queued
pending
(if you have enabled)rejected
(if you have enabled)processing
processed
cancelled
reversed
Refer to
.purpose
string
The purpose of the payout that is being created. The following classifications are available in the system 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. However, it is not possible to create a new purpose for the payout via the API.utr
string
The unique transaction number linked to a payout. For example, GCID1234567
.
mode
string
The mode used to make the payout. Available modes is amazonpay
. The payout modes are case-sensitive.
reference_id
string
A user-generated reference given to the payout. Maximum length is 40 characters. For example, Acme Transaction ID 12345
. You can use this field to store your own transaction ID, if any.
narration
string
Custom note that also appears on the bank statement. Maximum length 30 characters. Allowed characters: a-z, A-Z, 0-9 and space.
You cannot enter a custom narration when creating a payout via Amazon Pay.
batch_id
string
This value is returned if the contact was created as part of a bulk upload. For example, batch_00000000000001
.
status_details
object
This parameter returns the current status of the payout. For example, IMPS is not enabled on beneficiary account, Retry with different mode
.
Show child parameters (3)
created_at
integer
Indicates the Unix timestamp when this order was created. For example, 1545320320
.
1curl -u <YOUR_KEY>:<YOUR_SECRET> \2-X POST https://api.razorpay.com/v1/payouts \3-H "Content-Type: application/json" \4-H "X-Payout-Idempotency: 53cda91c-8f81-4e77-bbb9-7388f4ac6bf4" \5-d '{6"account_number": "7878780080316316",7"amount": 1000000,8"currency": "INR",9"mode": "amazonpay",10"purpose": "refund",11"fund_account": {12"account_type": "wallet",13"wallet": {14"provider": "amazonpay",15"phone": "+919876543210",16"email": " gaurav.kumar@example.com",17"name": "Gaurav Kumar"18},19"contact": {20"name": "Gaurav Kumar",21"email": "gaurav.kumar@example.com",22"contact": "9876543210",23"type": "employee",24"reference_id": "Acme Contact ID 12345",25"notes": {26"notes_key_1": "Tea, Earl Grey, Hot",27"notes_key_2": "Tea, Earl Grey… decaf."28}29}30},31"queue_if_low_balance": true,32"reference_id": "Acme Transaction ID 12345",33"narration": "Acme Corp Fund Transfer",34"notes": {35"notes_key_1": "Beam me up Scotty",36"notes_key_2": "Engage"37}38}'
Success
1{2"id": "pout_00000000000001",3"entity": "payout",4"fund_account_id": "fa_00000000000001",5"fund_account": {6"id": "fa_00000000000001",7"entity": "fund_account",8"contact_id": "cont_00000000000001",9"contact": {10"id": "cont_00000000000001",11"entity": "contact",12"name": "Gaurav Kumar",13"contact": "9876543210",14"email": "gaurav.kumar@example.com",15"type": "employee",16"reference_id": "Acme Contact ID 12345",17"batch_id": null,18"active": true,19"notes": {20"notes_key_1": "Tea, Earl Grey, Hot",21"notes_key_2": "Tea, Earl Grey… decaf."22},23"created_at": 158081735324},25"account_type": "wallet",26"wallet": {27"provider": "amazonpay",28"phone": "+919876543210",29"email": " gaurav.kumar@example.com",30"name": "Gaurav Kumar"31},32"batch_id": null,33"active": true,34"created_at": 158108027235},36"amount": 1000000,37"currency": "INR",38"notes": {39"notes_key_1": "Beam me up Scotty",40"notes_key_2": "Engage"41},42"fees": 590,43"tax": 90,44"status": "processed",45"purpose": "payout",46"utr": "GCID1234567",47"mode": "amazonpay",48"reference_id": "Acme Transaction ID 12345",49"narration": "Acme Corp Fund Transfer",50"batch_id": null,51"status_details": null,52"created_at": 158149931953}