Payment Entity🔗
For ease of understanding, the response for each request is shown on the right panel. The responses can be formatted in JSON.
The various parameters are explained below:
idstringUnique identifier of the payment.entitystringIndicates the type of entity.amountstringThe payment amount represented in smallest unit of the currency passed. For example, amount = 100 translates to 100 paise, that is ₹1 (default currency is INR).currencystringThe currency in which the payment is made. Refer to the list of international currencies that we support.statusstringThe status of the payment. Possible values:
-created
-authorized
-captured
-refunded
-failedbase_amountstringThe converted payment amount used to calculate fees and settlements. Represented in smallest unit of thebase_currency. This attribute is currently only present if thecurrencyis non-INR.base_currencystringThe conversion currency used to calculate fees and settlements. This currently defaults to INR, and is present only if thecurrencyis non-INR.methodstringThe payment method used for making the payment. Possible values:
-card
-netbanking
-wallet
-emi
-upiorder_idstringOrder ID, if provided. Know more about Orders API.description`stringDescription of the payment, if any.internationalbooleanIndicates whether the payment is done via an international card or a domestic one.refund_statusstringThe refund status of the payment. Possible values include:
-null
-partial
-fullamount_refundedintegerThe amount refunded in smallest unit of the currency passed.
For example, ifamount_refunded= 100, here 100 stands for 100 paise, which is equal to ₹1. INR is the default currency.capturedbooleanIndicates if the payment is captured.emailstringCustomer email address used for the payment.contactstringCustomer contact number used for the payment.feeintegerFee (including GST) charged by Razorpay.taxintegerGST charged for the payment.error_codestringError that occurred during payment. For example,BAD_REQUEST_ERROR.error_descriptionstringDescription of the error that occurred during payment. For example,Payment processing failed because of incorrect OTP.error_sourcestringThe point of failure. For example,customer.error_stepstringThe 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_reasonstringThe 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.