Skip to main content
GET
Fetch a Payment

Authorizations

Authorization
string
header
required

Use your Razorpay Key ID as the username and Key Secret as the password.

Path Parameters

id
string
required

The unique identifier of the payment to retrieve.

Example:

"pay_DJkTfWoJ5ZFPce"

Response

The payment details.

A Razorpay Payment object representing a payment transaction.

id
string

Unique identifier for the payment.

Example:

"pay_DJkTfWoJ5ZFPce"

entity
string

Entity type, always payment for payment objects.

Example:

"payment"

amount
integer

The payment amount in the smallest currency sub-unit (e.g., paise for INR).

Example:

50000

currency
string

The ISO 4217 currency code for the payment.

Example:

"INR"

status
enum<string>

The current status of the payment.

Available options:
created,
authorized,
captured,
refunded,
failed
Example:

"captured"

order_id
string

The unique identifier of the order associated with this payment.

Example:

"order_IluGWxBm9U8zJ8"

method
enum<string>

The payment method used for this transaction.

Available options:
card,
netbanking,
wallet,
upi,
emi
Example:

"upi"

captured
boolean

Indicates whether the payment has been captured. true if the payment is captured.

Example:

true

description
string

A brief description of the payment.

Example:

"Payment for order #1001"

email
string

The email address of the customer who made the payment.

Example:

"john.doe@example.com"

contact
string

The phone number of the customer who made the payment.

Example:

"+919876543210"

created_at
integer

Unix timestamp (in seconds) at which the payment was created.

Example:

1595491108