Get Transaction Status Basic

This API allows the platform to fetch the status of a transaction intiated through a payment link/collect request/dynamic QR code.

🙌

Important Note

Please use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.

Overview

This API allows a platform to fetch the status of a transaction undertaken through any of the flows below.

Note: this API doesn't allow the platform to check the status of a transaction like a push transaction or a static QR.

Flow

This API is an alternative to the Terminal Transaction Status Callback/Webhook. The platform should use this only if a callback hasn't been acknowledged or transaction confirmation hasn't been received.

  1. The platform consumes this API to get the latest status of an initiated transaction using the Decentro transaction ID received from Generate payment link API, Generate Dynamic QR, or Issue collect request.
  2. In this API, Decentro relays the transaction status via the transaction_status field. The default status will always be 'PENDING' unless the payer authorizes a payment.
  3. In case multi attempt is enabled, checking the payment status will return the payment link status (SUCCESS, PENDING, EXPIRED).
  4. In case multi attempt is disabled, checking the payment status will return the payment link status (SUCCESS, PENDING, FAILED, EXPIRED).

To know the status of each attempt made by the payer, client can consume GTS advance.

API Endpoints

Below are the API endpoints to be used by the platform basis the environments.

Response Parameters

Below are the parameters propagated by Decentro in the response.

ParametersDescription
decentro_txn_idA unique transaction ID from Decentro for checking the transaction status, refund, etc.
api_statusStatus of the API hit. Note that this is not the status of the transaction.
messageAPI status message. Note that this is not about the status of the transaction.
response_keyResponse key documenting the status of the API hit and various errors as mentioned here.
transaction_statusThe status of the transaction can be one of the values - SUCCESS, FAILURE, PENDING, EXPIRED.
transaction_status_descriptionDescription message of the transaction status received.
bank_reference_numberThe unique transaction reference number from the bank partner.
npci_txn_idA unique transaction id generated by NPCI for each transaction.
transaction_authentication_timestampThe timestamp at which user entered the MPIN and authenticated the payment.
error_keyIndicates the entity responsible for failure. Applicable only in case of failed transaction.

Response keys

Below are the response keys propagated by Decentro in the response_key parameter, which cover all the scenarios a platform can encounter.

Please note that the below keys don't include transaction-related response keys since the transaction status is relayed only after the payer authorizes payment.

response keyMessage
error_no_transaction_foundThis transaction was not found in our system. If there was any debit, it would have already been reversed. Please retry the corresponding initiate payment transaction.
success_transaction_status_successfulUPI Transaction Status processed successfully (data.transaction status = success)
success_transaction_status_pendingUPI Transaction Status processed successfully (data.transaction status = pending)
success_transaction_status_failureUPI Transaction Status processed successfully (data.transaction status = failure)
success_transaction_status_expiredUPI Transaction Status processed successfully (data.transaction status = expired)
error_invalid_providerGiven transaction does not belong to the origianal provider.
error_provider_errorError while fetching transaction status from provider.
error_api_access_errorError while accessing the API. Please reach out to [email protected] for any queries.
error_authentication_requestError while authenticating the request.
error_unauthorized_requestUnauthorized request.
error_plan_not_configuredPlan not configured.
error_plan_not_foundPlan not found.
error_duplicate_transactionDuplicate transaction found.
success_refund_status_successfulUPI Refund Status processed successfully
success_refund_status_failureUPI Refund Status processed successfully
Language
Click Try It! to start a request and see the response here!