Request
Curl
Response
Success
Parameters
expand[]=payments.card optional
: string Use to expand the card payments made for an order.
Parameters
id
: string The unique identifier of the order.
entity
: string Name of the entity. Here, it is order.
amount
: integer The amount for which the order was created, in currency subunits. For example, for an amount of , enter 29500.
amount_paid
: integer The amount paid against the order.
amount_due
: integer The amount pending against the order.
currency mandatory
: string ISO code for the currency in which you want to accept the payment. The default length is 3 characters.
receipt
: string Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique.
status
: string The status of the order. Possible values:
created: When you create an order it is in thecreatedstate. It stays in this state till a payment is attempted on it.attempted: An order moves fromcreatedtoattemptedstate when a payment is first attempted on it. It remains in theattemptedstate till one payment associated with that order is captured.paid: After the successful capture of the payment, the order moves to thepaidstate. No further payment requests are permitted once the order moves to thepaidstate. The order stays in thepaidstate even if the payment associated with the order is refunded.
attempts
: integer The number of payment attempts, successful and failed, that have been made against this order.
notes
: json object Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”.
created_at
: integer Indicates the Unix timestamp when this order was created.
payments
: object Details of the payment.
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 enter 100.
currency
: string The currency in which the payment is made.
status
: string The status of the payment. Possible values:
createdauthorizedcapturedrefundedfailed
method
: string The payment method used for making the payment. Possible values:- card
-
netbanking -
wallet -
upi -
emiorder_id:stringOrder id, if provided. Know more about Orders.description:stringDescription of the payment, if any.international:booleanIndicates 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_status:stringThe refund status of the payment. Possible values:nullpartialfull
amount_refunded:integerThe amount refunded in currency subunits. For example, ifamount_refunded = 100, it is equal to .captured:booleanIndicates if the payment is captured.email:stringCustomer email address used for the payment.contact:stringCustomer contact number used for the payment.fee:integerFee (including tax) charged by us.tax:integerTax charged for the payment.error_code:stringError that occurred during payment. For example,BAD_REQUEST_ERROR.error_description:stringDescription of the error that occurred during payment. For example,Payment processing failed because of incorrect OTP.error_source:stringThe point of failure. For example,customer.error_step:stringThe 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:stringThe exact error reason. For example,incorrect_otp.notes:json objectContains user-defined fields, stored for reference purposes.created_at:integerTimestamp, in UNIX format, on which the payment was created.card_id:stringThe unique identifier of the card used by the customer to make the payment.wallet:stringThe name of the wallet used by the customer to make the payment. For example,payzapp.acquirer_data:arrayA dynamic array consisting of a unique reference numbers.rrn:stringA unique bank reference number provided by the banking partner when a refund is processed. This reference number can be used by the customer to track the status of the refund with the bank.authentication_reference_number:stringA unique reference number generated for RuPay card payments.bank_transaction_id:stringA unique reference number provided by the banking partner in case of netbanking payments.bank:stringThe 4-character bank code which the customer’s account is associated with. For example,UTIBfor HSBC Bank.upi:objectDetails of the UPI payment received. Applicable ifmethodisupi.payer_account_type:stringThe payment method used for making the payment. Possible values:bank_accountcredit_cardwallet
vpa:stringThe customer’s VPA (Virtual Payment Address) or UPI id used to make the payment. For example,gauravkumar@exampleupi.vpa:stringThe customer’s VPA (Virtual Payment Address) or UPI id used to make the payment. For example,gauravkumar@exampleupi.card:objectDetails of the card used to make the payment.id:stringThe unique identifier of the card used by the customer to make the payment.entity:stringThe name of the entity. Here, it iscard.name:stringName of the cardholder.last4:integerThe last 4 digits of the card number.network:stringThe card network. Possible values:-MasterCard -
Visa -
RuPay -
American Express -
Diners Club -
Maestro -
Unknowntype:stringThe card type. Possible values:creditdebitprepaidunknown
issuer:stringThe card issuer. The 4-character code denotes the issuing bank. This attribute will not be set for the card issued by a foreign bank.emi:booleanDetermines if card can be used for EMI payments.trueif EMI payments are supported on card.falseif EMI payments are not supported on card.sub_type:stringThe sub-type of the customer’s card. Possible values:-
customer -
businessKnow how to accept payments made by customers using corporate cards.
Errors
The API {key/secret} provided is invalid.- code: 4xx
- description: The API credentials passed in the API call differ from the ones generated on the Dashboard.
- solution: The API keys must be active and entered correctly with no whitespace before or after.