Razorpay Docs (original) (raw)

Fetch a Payment With ID

Use this endpoint to retrieve the details of a specific payment using its id.

1

curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]

2

-X GET https://api.razorpay.com/v1/payments/pay_DG4ZdRK8ZnXC3k

2

"id": "pay_MT48CvBhIC98MQ",

7

"order_id": "order_MT47xgV5ApouIB",

9

"international": false,

10

"method": "netbanking",

12

"refund_status": null,

14

"description": "#MT47qgzX2EOko2",

19

"email": "gaurav.kumar@example.com",

20

"contact": "+919000090000",

25

"error_description": null,

30

  "bank_transaction_id": "6951370"

32

"created_at": 1692696719

Path Parameters

Unique identifier of the payment to be retrieved.

Response Parameters

Unique identifier of the payment.

Indicates the type of entity.

The payment amount in currency subunits. For example, for an amount of ₹1.00 enter 100.

The currency in which the payment is made. Refer to the list of

that we support.

The status of the payment. Possible values:

The payment method used for making the payment. Possible values:

Order id, if provided. Know more about

.

Description of the payment, if any.

Indicates whether the payment is done via an international card or a domestic one. Possible values:

The refund status of the payment. Possible values:

The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to ₹1.00.

Indicates if the payment is captured. Possible values:

Customer email address used for the payment.

Customer contact number used for the payment.

Fee (including GST) charged by Razorpay.

GST charged for the payment.

Error that occurred during payment. For example, BAD_REQUEST_ERROR.

Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.

The point of failure. For example, customer.

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.

The exact error reason. For example, incorrect_otp.

Contains user-defined fields, stored for reference purposes.

Timestamp, in UNIX format, on which the payment was created.

The unique identifier of the card used by the customer to make the payment.

Details of the card used to make the payment.

Show child parameters (9)

Details of the UPI payment received. Only applicable if method is upi.

Show child parameters (3)

The 4-character bank code which the customer's account is associated with. For example, UTIB for Axis Bank.

The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi.

The name of the wallet used by the customer to make the payment. For example, payzapp.

A dynamic array consisting of a unique reference numbers.

Show child parameters (3)

Errors

The API {key/secret} provided is invalid.

The API credentials passed in the API call differ from the ones generated on the Dashboard.

The id provided does not exist.

The payment_id provided is incorrect.

Fetch a Payment With ID

Use this endpoint to retrieve the details of a specific payment using its id.

Path Parameters

Unique identifier of the payment to be retrieved.

Response Parameters

Unique identifier of the payment.

Indicates the type of entity.

The payment amount in currency subunits. For example, for an amount of ₹1.00 enter 100.

The currency in which the payment is made. Refer to the list of

that we support.

The status of the payment. Possible values:

The payment method used for making the payment. Possible values:

Order id, if provided. Know more about

.

Description of the payment, if any.

Indicates whether the payment is done via an international card or a domestic one. Possible values:

The refund status of the payment. Possible values:

The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to ₹1.00.

Indicates if the payment is captured. Possible values:

Customer email address used for the payment.

Customer contact number used for the payment.

Fee (including GST) charged by Razorpay.

GST charged for the payment.

Error that occurred during payment. For example, BAD_REQUEST_ERROR.

Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.

The point of failure. For example, customer.

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.

The exact error reason. For example, incorrect_otp.

Contains user-defined fields, stored for reference purposes.

Timestamp, in UNIX format, on which the payment was created.

The unique identifier of the card used by the customer to make the payment.

Details of the card used to make the payment.

Show child parameters (9)

Details of the UPI payment received. Only applicable if method is upi.

Show child parameters (3)

The 4-character bank code which the customer's account is associated with. For example, UTIB for Axis Bank.

The customer's VPA (Virtual Payment Address) or UPI id used to make the payment. For example, gauravkumar@exampleupi.

The name of the wallet used by the customer to make the payment. For example, payzapp.

A dynamic array consisting of a unique reference numbers.

Show child parameters (3)

Errors

The API {key/secret} provided is invalid.

The API credentials passed in the API call differ from the ones generated on the Dashboard.

The id provided does not exist.

The payment_id provided is incorrect.

1

curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]

2

-X GET https://api.razorpay.com/v1/payments/pay_DG4ZdRK8ZnXC3k

2

"id": "pay_MT48CvBhIC98MQ",

7

"order_id": "order_MT47xgV5ApouIB",

9

"international": false,

10

"method": "netbanking",

12

"refund_status": null,

14

"description": "#MT47qgzX2EOko2",

19

"email": "gaurav.kumar@example.com",

20

"contact": "+919000090000",

25

"error_description": null,

30

  "bank_transaction_id": "6951370"

32

"created_at": 1692696719