Fetch All Payments
GET/v1/paymentsClick to copy
Use this endpoint to retrieve details of all the payments. By default, only the last 10 records are displayed. You can use the count and skip parameters to retrieve the specific number of records that you need.
Is this page helpful?
Curl
change language
change language
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]2-X GET https://api.razorpay.com/v1/payments?from=1593320020&to=1624856020&count=2&skip=1
Success
Failure
1{2"entity": "collection",3"count": 2,4"items": [5{6"id": "pay_KbCFyQ0t9Lmi1n",7"entity": "payment",8"amount": 1000,9"currency": "",10"status": "authorized",11"order_id": null,12"invoice_id": null,13"international": false,14"method": "fpx",15"amount_refunded": 0,16"refund_status": null,17"captured": false,18"description": "Test Transaction",19"card_id": null,20"bank": null,21"wallet": null,22"email": "nur.aisyah@example.com",23"contact": "+60123456789",24"notes": {25"address": "Razorpay Curlec Corporate Office"26},27"fee": null,28"tax": null,29"error_code": null,30"error_description": null,31"error_source": null,32"error_step": null,33"error_reason": null,34"acquirer_data": {35"bank_transaction_id": "5733649"36},37"created_at": 166739788138},39{40"id": "pay_KbCEDHh1IrU4RJ",41"entity": "payment",42"amount": 1000,43"currency": "",44"status": "authorized",45"order_id": null,46"invoice_id": null,47"international": false,48"method": "card",49"amount_refunded": 0,50"refund_status": null,51"captured": false,52"description": "Test Transaction",53"card_id": null,54"bank": null,55"wallet": null,56"email": "nur.aisyah@example.com",57"contact": "+60123456789",58"notes": {59"address": "Razorpay Curlec Corporate Office"60},61"fee": null,62"tax": null,63"error_code": null,64"error_description": null,65"error_source": null,66"error_step": null,67"error_reason": null,68"acquirer_data": {69"rrn": "230901495295",70},71"created_at": 166739778172}73]74}
Query Parameters
from integerUNIX timestamp, in seconds, from when payments are to be fetched.
to integerUNIX timestamp, in seconds, till when payments are to be fetched.
count integer Number of payments to be fetched.
Default value is 10. Maximum value is 100. This can be used for pagination, in combination with the skip parameter.
skip integerNumber of records to be skipped while fetching the payments.
Response Parameters
idstringUnique identifier of the payment.
entitystringIndicates the type of entity.
amountintegerThe payment amount in currency subunits. For example, for an amount of RMÂ 1.00 enter 100.
currencystringThe currency in which the payment is made.
statusstringThe status of the payment. Possible values:
createdauthorizedcapturedrefundedfailed
methodstringThe payment method used for making the payment. Possible values:
cardfpxwallet
order_idstringOrder id, if provided. Know more about
.descriptionstringDescription of the payment, if any.
internationalbooleanIndicates whether the payment is done via an international card or a domestic one. Possible values:
true: Payment made using international card.false: Payment not made using international card.
refund_statusstringThe refund status of the payment. Possible values:
nullpartialfull
amount_refundedinteger The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to RMÂ 1.00.
capturedbooleanIndicates if the payment is captured. Possible values:
true: Payment has been captured.false: Payment has not been captured.
emailstringCustomer email address used for the payment.
contactstringCustomer contact number used for the payment.
feeintegerFee (including tax) charged by Razorpay Curlec.
taxintegerTax charged for the payment.
error_codestring Error that occurred during payment. For example, BAD_REQUEST_ERROR.
error_descriptionstring Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.
error_sourcestring The point of failure. For example, customer.
error_stepstring The stage where the transaction failure occurred. The stages can vary depending on the payment method used to complete the transaction. For example, payment_authentication.
error_reasonstring The exact error reason. For example, incorrect_otp.
notesjson objectContains user-defined fields, stored for reference purposes.
created_atintegerTimestamp, in UNIX format, on which the payment was created.
card_idstringThe unique identifier of the card used by the customer to make the payment.
Show child parameters (3)
upiobject Details of the UPI payment received. Only applicable if method is upi.
Show child parameters (3)
bankstring The 4-character bank code which the customer's account is associated with. For example, UTIB for Axis Bank.
vpastring The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi.
walletstring The name of the wallet used by the customer to make the payment. For example, payzapp.
acquirer_dataarrayA dynamic array consisting of a unique reference numbers.
Show child parameters (3)
issuerstringThe card issuer. The 4-character code denotes the issuing bank. This attribute will not be set for the card issued by a foreign bank.
emibooleanIndicates whether the card can be used for EMI payment method. Possible values:
true: Card can be used for EMI payments.false: Card cannot be used for EMI payments.
sub_typestringThe sub-type of the customer's card. Possible values:
customerbusinessKnow how to accept payments made by customers using .
Show child parameters (8)
Errors
The API {key/secret} provided is invalid.
Error Status: 4xx
The API credentials passed in the API call differ from the ones generated on the Dashboard.
Solution
from must be between 946684800 and 4765046400
Error Status: 400
The time range entered is invalid.
Solution
Fetch All Payments
GET/v1/paymentsClick to copy
Use this endpoint to retrieve details of all the payments. By default, only the last 10 records are displayed. You can use the count and skip parameters to retrieve the specific number of records that you need.
Is this page helpful?
Query Parameters
from integerUNIX timestamp, in seconds, from when payments are to be fetched.
to integerUNIX timestamp, in seconds, till when payments are to be fetched.
count integer Number of payments to be fetched.
Default value is 10. Maximum value is 100. This can be used for pagination, in combination with the skip parameter.
skip integerNumber of records to be skipped while fetching the payments.
Response Parameters
idstringUnique identifier of the payment.
entitystringIndicates the type of entity.
amountintegerThe payment amount in currency subunits. For example, for an amount of RMÂ 1.00 enter 100.
currencystringThe currency in which the payment is made.
statusstringThe status of the payment. Possible values:
createdauthorizedcapturedrefundedfailed
methodstringThe payment method used for making the payment. Possible values:
cardfpxwallet
order_idstringOrder id, if provided. Know more about
.descriptionstringDescription of the payment, if any.
internationalbooleanIndicates whether the payment is done via an international card or a domestic one. Possible values:
true: Payment made using international card.false: Payment not made using international card.
refund_statusstringThe refund status of the payment. Possible values:
nullpartialfull
amount_refundedinteger The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to RMÂ 1.00.
capturedbooleanIndicates if the payment is captured. Possible values:
true: Payment has been captured.false: Payment has not been captured.
emailstringCustomer email address used for the payment.
contactstringCustomer contact number used for the payment.
feeintegerFee (including tax) charged by Razorpay Curlec.
taxintegerTax charged for the payment.
error_codestring Error that occurred during payment. For example, BAD_REQUEST_ERROR.
error_descriptionstring Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.
error_sourcestring The point of failure. For example, customer.
error_stepstring The stage where the transaction failure occurred. The stages can vary depending on the payment method used to complete the transaction. For example, payment_authentication.
error_reasonstring The exact error reason. For example, incorrect_otp.
notesjson objectContains user-defined fields, stored for reference purposes.
created_atintegerTimestamp, in UNIX format, on which the payment was created.
card_idstringThe unique identifier of the card used by the customer to make the payment.
Show child parameters (3)
upiobject Details of the UPI payment received. Only applicable if method is upi.
Show child parameters (3)
bankstring The 4-character bank code which the customer's account is associated with. For example, UTIB for Axis Bank.
vpastring The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi.
walletstring The name of the wallet used by the customer to make the payment. For example, payzapp.
acquirer_dataarrayA dynamic array consisting of a unique reference numbers.
Show child parameters (3)
issuerstringThe card issuer. The 4-character code denotes the issuing bank. This attribute will not be set for the card issued by a foreign bank.
emibooleanIndicates whether the card can be used for EMI payment method. Possible values:
true: Card can be used for EMI payments.false: Card cannot be used for EMI payments.
sub_typestringThe sub-type of the customer's card. Possible values:
customerbusinessKnow how to accept payments made by customers using .
Show child parameters (8)
Errors
The API {key/secret} provided is invalid.
Error Status: 4xx
The API credentials passed in the API call differ from the ones generated on the Dashboard.
Solution
from must be between 946684800 and 4765046400
Error Status: 400
The time range entered is invalid.
Solution
Curl
change language
change language
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]2-X GET https://api.razorpay.com/v1/payments?from=1593320020&to=1624856020&count=2&skip=1
Success
Failure
1{2"entity": "collection",3"count": 2,4"items": [5{6"id": "pay_KbCFyQ0t9Lmi1n",7"entity": "payment",8"amount": 1000,9"currency": "",10"status": "authorized",11"order_id": null,12"invoice_id": null,13"international": false,14"method": "fpx",15"amount_refunded": 0,16"refund_status": null,17"captured": false,18"description": "Test Transaction",19"card_id": null,20"bank": null,21"wallet": null,22"email": "nur.aisyah@example.com",23"contact": "+60123456789",24"notes": {25"address": "Razorpay Curlec Corporate Office"26},27"fee": null,28"tax": null,29"error_code": null,30"error_description": null,31"error_source": null,32"error_step": null,33"error_reason": null,34"acquirer_data": {35"bank_transaction_id": "5733649"36},37"created_at": 166739788138},39{40"id": "pay_KbCEDHh1IrU4RJ",41"entity": "payment",42"amount": 1000,43"currency": "",44"status": "authorized",45"order_id": null,46"invoice_id": null,47"international": false,48"method": "card",49"amount_refunded": 0,50"refund_status": null,51"captured": false,52"description": "Test Transaction",53"card_id": null,54"bank": null,55"wallet": null,56"email": "nur.aisyah@example.com",57"contact": "+60123456789",58"notes": {59"address": "Razorpay Curlec Corporate Office"60},61"fee": null,62"tax": null,63"error_code": null,64"error_description": null,65"error_source": null,66"error_step": null,67"error_reason": null,68"acquirer_data": {69"rrn": "230901495295",70},71"created_at": 166739778172}73]74}