Fetch All Payments
GET
/v1/payments
Click 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?
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": "INR",10"status": "authorized",11"order_id": null,12"invoice_id": null,13"international": false,14"method": "netbanking",15"amount_refunded": 0,16"refund_status": null,17"captured": false,18"description": "Test Transaction",19"card_id": null,20"bank": "IBKL",21"wallet": null,22"vpa": null,23"email": "gaurav.kumar@gmail.com",24"contact": "+919000090000",25"notes": {26"address": "Razorpay Corporate Office"27},28"fee": null,29"tax": null,30"error_code": null,31"error_description": null,32"error_source": null,33"error_step": null,34"error_reason": null,35"acquirer_data": {36"bank_transaction_id": "5733649"37},38"created_at": 166739788139},40{41"id": "pay_KbCEDHh1IrU4RJ",42"entity": "payment",43"amount": 1000,44"currency": "INR",45"status": "authorized",46"order_id": null,47"invoice_id": null,48"international": false,49"method": "upi",50"amount_refunded": 0,51"refund_status": null,52"captured": false,53"description": "Test Transaction",54"card_id": null,55"bank": null,56"wallet": null,57"vpa": "gaurav.kumar@okhdfcbank",58"email": "gaurav.kumar@gmail.com",59"contact": "+919000090000",60"notes": {61"address": "Razorpay Corporate Office"62},63"fee": null,64"tax": null,65"error_code": null,66"error_description": null,67"error_source": null,68"error_step": null,69"error_reason": null,70"acquirer_data": {71"rrn": "230901495295",72"upi_transaction_id": "6935B87A72C2A7BC83FA927AA264AD53"73},74"created_at": 166739778175}76]77}
Query Parameters
from
integer
UNIX timestamp, in seconds, from when payments are to be fetched.
to
integer
UNIX 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
integer
Number of records to be skipped while fetching the payments.
Response Parameters
id
string
Unique identifier of the payment.
entity
string
Indicates the type of entity.
amount
integer
The payment amount in currency subunits. For example, for an amount of ₹1.00 enter 100.
currency
string
The currency in which the payment is made. Refer to the list of
that we support.status
string
The status of the payment. Possible values:
created
authorized
captured
refunded
failed
method
string
The payment method used for making the payment. Possible values:
card
netbanking
wallet
emi
upi
order_id
string
Order id, if provided. Know more about
.description
string
Description of the payment, if any.
international
boolean
Indicates whether the payment is done via an international card or a domestic one.
refund_status
string
The refund status of the payment. Possible values:
null
partial
full
amount_refunded
integer
The amount refunded in currency subunits. For example, if amount_refunded = 100
, it is equal to ₹1.00.
captured
boolean
Indicates if the payment is captured.
email
string
Customer email address used for the payment.
contact
string
Customer contact number used for the payment.
fee
integer
Fee (including GST) charged by Razorpay.
tax
integer
GST charged for the payment.
error_code
string
Error that occurred during payment. For example, BAD_REQUEST_ERROR
.
error_description
string
Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP
.
error_source
string
The point of failure. For example, customer
.
error_step
string
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_reason
string
The exact error reason. For example, incorrect_otp
.
notes
json object
Contains user-defined fields, stored for reference purposes.
created_at
integer
Timestamp, in UNIX format, on which the payment was created.
card_id
string
The unique identifier of the card used by the customer to make the payment.
card
object
Details of the card used to make the payment.
Show child parameters (9)
upi
object
Details of the UPI payment received. Only applicable if method
is upi
.
Show child parameters (3)
bank
string
The 4-character bank code which the customer's account is associated with. For example, UTIB
for Axis Bank.
vpa
string
The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi
.
wallet
string
The name of the wallet used by the customer to make the payment. For example, payzapp
.
acquirer_data
array
A dynamic array consisting of a unique reference numbers.
Show child parameters (3)
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/payments
Click 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
integer
UNIX timestamp, in seconds, from when payments are to be fetched.
to
integer
UNIX 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
integer
Number of records to be skipped while fetching the payments.
Response Parameters
id
string
Unique identifier of the payment.
entity
string
Indicates the type of entity.
amount
integer
The payment amount in currency subunits. For example, for an amount of ₹1.00 enter 100.
currency
string
The currency in which the payment is made. Refer to the list of
that we support.status
string
The status of the payment. Possible values:
created
authorized
captured
refunded
failed
method
string
The payment method used for making the payment. Possible values:
card
netbanking
wallet
emi
upi
order_id
string
Order id, if provided. Know more about
.description
string
Description of the payment, if any.
international
boolean
Indicates whether the payment is done via an international card or a domestic one.
refund_status
string
The refund status of the payment. Possible values:
null
partial
full
amount_refunded
integer
The amount refunded in currency subunits. For example, if amount_refunded = 100
, it is equal to ₹1.00.
captured
boolean
Indicates if the payment is captured.
email
string
Customer email address used for the payment.
contact
string
Customer contact number used for the payment.
fee
integer
Fee (including GST) charged by Razorpay.
tax
integer
GST charged for the payment.
error_code
string
Error that occurred during payment. For example, BAD_REQUEST_ERROR
.
error_description
string
Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP
.
error_source
string
The point of failure. For example, customer
.
error_step
string
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_reason
string
The exact error reason. For example, incorrect_otp
.
notes
json object
Contains user-defined fields, stored for reference purposes.
created_at
integer
Timestamp, in UNIX format, on which the payment was created.
card_id
string
The unique identifier of the card used by the customer to make the payment.
card
object
Details of the card used to make the payment.
Show child parameters (9)
upi
object
Details of the UPI payment received. Only applicable if method
is upi
.
Show child parameters (3)
bank
string
The 4-character bank code which the customer's account is associated with. For example, UTIB
for Axis Bank.
vpa
string
The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi
.
wallet
string
The name of the wallet used by the customer to make the payment. For example, payzapp
.
acquirer_data
array
A dynamic array consisting of a unique reference numbers.
Show child parameters (3)
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
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": "INR",10"status": "authorized",11"order_id": null,12"invoice_id": null,13"international": false,14"method": "netbanking",15"amount_refunded": 0,16"refund_status": null,17"captured": false,18"description": "Test Transaction",19"card_id": null,20"bank": "IBKL",21"wallet": null,22"vpa": null,23"email": "gaurav.kumar@gmail.com",24"contact": "+919000090000",25"notes": {26"address": "Razorpay Corporate Office"27},28"fee": null,29"tax": null,30"error_code": null,31"error_description": null,32"error_source": null,33"error_step": null,34"error_reason": null,35"acquirer_data": {36"bank_transaction_id": "5733649"37},38"created_at": 166739788139},40{41"id": "pay_KbCEDHh1IrU4RJ",42"entity": "payment",43"amount": 1000,44"currency": "INR",45"status": "authorized",46"order_id": null,47"invoice_id": null,48"international": false,49"method": "upi",50"amount_refunded": 0,51"refund_status": null,52"captured": false,53"description": "Test Transaction",54"card_id": null,55"bank": null,56"wallet": null,57"vpa": "gaurav.kumar@okhdfcbank",58"email": "gaurav.kumar@gmail.com",59"contact": "+919000090000",60"notes": {61"address": "Razorpay Corporate Office"62},63"fee": null,64"tax": null,65"error_code": null,66"error_description": null,67"error_source": null,68"error_step": null,69"error_reason": null,70"acquirer_data": {71"rrn": "230901495295",72"upi_transaction_id": "6935B87A72C2A7BC83FA927AA264AD53"73},74"created_at": 166739778175}76]77}