Transaction Enquiry [v3]
This API will get the latest status of the order and associated transactions.
- The API supports an input of
transaction_id
,order_id
orinvoice_id
- If you provide an
order_id
orinvoice_id
you can get more than one transactions that are associated with the order or invoice
Request Body required
This is the Nimbbl provided transaction_id. You would have received this when you initiated a payment and subsequently in other API responses as well. You need to either provide the transaction_id
or the invoice_id
or the order_id
.
This is the Nimbbl provided order_id. You would have received this when you created an order. You need to either provide the transaction_id
or the invoice_id
or the order_id
This is your unique reference used for creating an order. You need to either provide the transaction_id
or the invoice_id
or the order_id
- 200
- 4XX
- 5XX
When the transaction enquiry request is processed, the response will be as below
Schema
- Array [
- payment
- full_refund
- partial_refund
- Netbanking
- Wallet
- UPI
- Credit Card
- Debit Card
- Prepaid Card
- Credit Card EMI
- Debit Card EMI
- Netbanking
- Wallet
- UPI
- Credit Card
- Debit Card
- Prepaid Card
- Credit Card EMI
- Debit Card EMI
- Netbanking
- Wallet
- UPI
- Credit Card
- Debit Card
- Prepaid Card
- Credit Card EMI
- Debit Card EMI
- ]
- Array [
- ]
transaction object[] required
The list of transactions associated with the order_id
or invoice_id
as provided in the request. If the request contained a transaction_id
then this list will contain only a single transaction
This is the type of the transaction
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
The transaction_id of the payment transaction
The type of transaction being processed
Possible values: [new
, pending
, failed
, succeeded
, reversing
, reversed
]
The status of the payment transaction
A message reflecting the status of the transaction
This is the signature generated at Nimbbl using the access_secret
provided to you. You should validate the genuineness of the Nimbbl response by generating a signature and comparing it with the one received from Nimbbl
failure_reason object nullable
If the payment has failed, you can get the reason for failure from this object
This is the error_code generated by Nimbbl
This is a customer friendly message that can be displayed to your consumer or shared by your customer service agent to the customer
This explains to your team how to recover from the error
This field suggests whether a retry should be allowed for the customer using the same payment mode.
This is the payment partner through which the payment has been processed
This is the transaction reference generated by the payment partner
The amount of the transaction, formatted according to the payment service provider's specific rounding
The currency in which the transaction was processed
Any additional charges applicable to the transaction, formatted according to the payment service provider's specific rounding
Discount applied to the transaction through offers
Identifier for the offer applied to the transaction
Version of the signature used for validation
The payment partner responsible for processing the payment
The payment acquirer managing the transaction
Possible values: [Netbanking
, Wallet
, UPI
, Credit Card
, Debit Card
, Prepaid Card
, Credit Card EMI
, Debit Card EMI
]
Specifies the payment mode used in the transaction
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The wallet name received in response for Wallet payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The UPI ID for the transaction
The UPI holder's name
The UPI application name used
Instrument used for UPI payment
Flow type for UPI payment (e.g., Intent, Collect, QR)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
This is the bank or acquirer reference number for the payment. Only available for succeeded payment.
emi object
The code of the issuer.
Possible values: [standard
, no_cost
, low_cost
]
The type of subvention.
The network code of the card.
The amount of each installment.
The interest discount.
The cashback amount.
This is the number of EMI installments.
Possible values: [daily
, weekly
, monthly
]
This is the frequency of payments
processing_fee_data object
The processing fee.
This tells us whether the GST is exclusive.
The interest amount.
The interest rate.
The subvented interest rate.
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
The transaction_id of the refund transaction
Possible values: [new
, pending
, failed
, success
]
The status of the refund transaction
A message reflecting the status of the refund transaction
This is the refund_request_id provided in the refund request
failure_reason object nullable
If the refund has failed, you can get the reason for failure from this object
This is the error_code generated by Nimbbl
This is a customer friendly message that can be displayed to your consumer or shared by your customer service agent to the customer
This explains to your team how to recover from the error
This field suggests whether a retry should be allowed.
This is the payment partner through which the refund has been processed
This is the refund transaction reference generated by the payment partner
The type of transaction, such as full-refund
The amount of the refund transaction, formatted according to the payment service provider’s rounding
The currency in which the refund transaction was processed
Any additional charges applied to the refund transaction
Discount applied to the transaction through offers
Identifier for the offer applied to the refund transaction
Version of the signature used for validation
The payment partner responsible for processing the refund
Possible values: [Netbanking
, Wallet
, UPI
, Credit Card
, Debit Card
, Prepaid Card
, Credit Card EMI
, Debit Card EMI
]
Specifies the payment mode used in the transaction
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The wallet name received in response for Wallet payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The UPI ID for the transaction
The UPI holder's name
The UPI application name used
Instrument used for UPI payment
Flow type for UPI payment (e.g., Intent, Collect, QR)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
This is the bank or acquirer reference number for the refund. Only available for succeeded refunds, though not available in real time. Your customer can provide this reference number to their bank to check if refund is yet to be credited in their account
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
The transaction_id of the refund transaction
Possible values: [new
, pending
, failed
, success
]
The status of the refund transaction
A message reflecting the status of the refund transaction
This is the refund_request_id provided in the refund request
failure_reason object nullable
If the refund has failed, you can get the reason for failure from this object
This is the error_code generated by Nimbbl
This is a customer friendly message that can be displayed to your consumer or shared by your customer service agent to the customer
This explains to your team how to recover from the error
This field suggests whether a retry should be allowed.
This is the payment partner through which the refund has been processed
This is the refund transaction reference generated by the payment partner
The type of transaction, such as full-refund
The amount of the refund transaction, formatted according to the payment service provider’s rounding
The currency in which the refund transaction was processed
Any additional charges applied to the refund transaction
Discount applied to the transaction through offers
Identifier for the offer applied to the refund transaction
Version of the signature used for validation
The payment partner responsible for processing the refund
Possible values: [Netbanking
, Wallet
, UPI
, Credit Card
, Debit Card
, Prepaid Card
, Credit Card EMI
, Debit Card EMI
]
Specifies the payment mode used in the transaction
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The bank name received in response for Netbanking payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The wallet name received in response for Wallet payment mode
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
The UPI ID for the transaction
The UPI holder's name
The UPI application name used
Instrument used for UPI payment
Flow type for UPI payment (e.g., Intent, Collect, QR)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Type of card input (e.g., merchant_network_token, nimbbl_token_id, card_pan)
Issuer of the credit card
Type of card (e.g., Credit, Debit, Prepaid)
Card network (e.g., Visa, Mastercard)
Masked card number, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Card expiry date, required only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Cardholder's name, applicable only if card_input_type
is 'card_pan' or 'merchant_network_token' (if applicable)
Network token, applicable only if card_input_type
is 'merchant_network_token' (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
sub_payment_mode object
This object will contain the details of the sub-payment mode according to the selected payment mode
Code of the card issuer for EMI
Code of the card network for EMI
Card input type for EMI (e.g., merchant_network_token, nimbbl_token_id)
Masked card for EMI
Cardholder's name for EMI
Type of subvention (e.g., low_cost, no_cost)
Amount of each EMI installment
Discount applied on interest
Cashback amount for EMI
EMI tenure
EMI frequency
processing_fee_data object
Processing fee amount
Indicates if GST is exclusive
Interest amount for EMI
Interest rate for EMI
Subvented interest rate for EMI
Network token, applicable only if card_input_type
is 'merchant_network_token' within an EMI transaction (if applicable)
Nimbbl token ID, applicable only if card_input_type
is 'nimbbl_token_id' within an EMI transaction (if applicable)
This is the bank or acquirer reference number for the refund. Only available for succeeded refunds, though not available in real time. Your customer can provide this reference number to their bank to check if refund is yet to be credited in their account
The time in seconds it took for the transaction to be completed
order object required
The details of the order that is linked with the order_id
or invoice_id
or transaction_id
passed in the request
This is the Nimbbl generated unique order_id for your invoice_id
This is your internal unique reference identifier for this order
Possible values: [new
, pending
, completed
, lapsed
]
This is the status of the order
custom_attributes object[] nullable
The array of custom attributes created along with the create order
The key that you have created as a custom parameter with the create order request
The value that you have ascribed to the key as a custom parameter with the create order request
currency_conversion object nullable
This object is sent only if the transaction currency was changed. This object will have all the details related to currency conversion.
This is the currency code in ISO-4217 format in which the order was initiated
This is the currency code in ISO-4217 format in which the order will be processed in
This is the exchange rate used to convert amounts from original currency to converted currency
Possible values: [ALTERNATE_CURRENCY_CONFIG
]
This is the reason for currency conversion
This is the amount_before_tax
received when the order was initiated
This is the tax
when the order was initiated, if not received will be set to 0
This is the total_amount
received when the order was initiated
refund_details object nullable
This field will only come when the order_status is completed
. This object will have all the refund details for the order.
This is the currency code in ISO-4217 format in which the refund will be initiated
This is the amount which is available for refund
This is the amount which has been already refunded successfully
This is the maximum refundable amount available for the order
{
"transaction": [
{
"transaction_type": true,
"completion_time": 35,
"nimbbl_transaction_id": "string",
"payment_status": "failed",
"message": true,
"nimbbl_signature": null,
"failure_reason": {
"nimbbl_error_code": true,
"nimbbl_consumer_message": true,
"nimbbl_merchant_message": true,
"retry_allowed": true
},
"payment_partner": "Razorpay",
"psp_transaction_id": true,
"transaction_amount": true,
"transaction_currency": "INR",
"additional_charges": true,
"offer_discount": true,
"offer_id": "offer_123456",
"signature_version": "v2",
"processing_payment_partner": true,
"payment_acquirer": "AXIS",
"payment_mode": "Netbanking",
"payment_arn": "payment_arn_12345",
"emi": {
"issuer_code": "BOI",
"subvention_type": "standard",
"card_network_code": "visa",
"installment_amount": 300,
"interest_discount": 0,
"cashback_amount": 0,
"tenure": 3,
"frequency": "daily",
"processing_fee_data": {
"fee": 0.1,
"gst_exclusive": true
},
"interest_amount": 50,
"interest_rate": 12,
"subvented_interest_rate": 12
},
"sub_payment_mode": {
"bank_name": "Axis Bank"
},
"refund_status": "failed",
"refund_request_id": "ref_req_12345",
"refund_arn": "ref_arn_12345"
}
],
"order": {
"nimbbl_order_id": "o_9yo5wxlLlbJGK6dp",
"invoice_id": "inv_asjjeibdhakk49hnek3",
"status": "completed",
"custom_attributes": [
{
"key": "name",
"value": "Diana"
}
],
"currency_conversion": {
"original_currency": "USD",
"converted_currency": "INR",
"exchange_rate": 83.72,
"conversion_reason": "ALTERNATE_CURRENCY_CONFIG",
"original_amount_before_tax": 11.94,
"original_tax": 2.15,
"original_total_amount": 14.09
},
"refund_details": {
"refundable_currency": "INR",
"available_refundable_amount": 1180,
"refunded_amount": 0,
"total_refundable_amount": 1180
}
}
}
When the transaction enquiry request is not processed, the response will be as below
Schema
error object
This is the error_code generated by Nimbbl
This is a customer friendly message that can be displayed to your consumer
This explains to your team how to recover from the error
{
"error": {
"nimbbl_error_code": "INVALID_REQUEST_PARAMETER",
"nimbbl_consumer_message": "Sorry, your payment cannot be processed due to a technical error. Please try again after some time.",
"nimbbl_merchant_message": "There is an input validation error, please check the payload of your request."
}
}
When there is a problem on the server, the response will be as below
Schema
error object
This is the error_code generated by Nimbbl
This is a customer friendly message that can be displayed to your consumer
This explains to your team how to recover from the error
{
"error": {
"nimbbl_error_code": "INVALID_REQUEST_PARAMETER",
"nimbbl_consumer_message": "Sorry, your payment cannot be processed due to a technical error. Please try again after some time.",
"nimbbl_merchant_message": "There is an input validation error, please check the payload of your request."
}
}