Release/Capture API

This API is under development. Details will be added once the APIs are signed off in staging/QA.

Overview

This API will allow a platform to Release or Capture a payment attempt that is currently on "HOLD".

Flow

Below is the flow for using the Release/Capture API.

  1. The platform will trigger the Release/Capture API by passing any one of the following transaction identifiers in the request payload:
    1. original_attempt_transaction_id
    2. original_transaction_id
    3. original_reference_id
  2. If the action specified by the platform was 'CAPTURE', our system will update the status of the payment attempt as “SUCCESS“ and map the action as “CAPTURED“.
    1. The transaction amount will be settled with the platform in the next eligible settlement cycle
  3. If the action specified by the platform was 'RELEASE', our system will update the status of the payment attempt as “SUCCESS“ and map the action as RELEASED“
    1. The transaction amount will be refunded to the source account of the payer
  4. The Transaction Status Callback and Account Balance Callback will be sent after the action, specified by the platform, was successfully performed.
    1. In case of "RELEASED" transactions, the platform will receive an additional Transaction Status and Account Balance callback against the Refund transaction which was initiated by our system.

Key Points

API Endpoints

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


Response Parameters

ParametersDescription
decentro_txn_idA unique transaction ID from Decentro for this action request
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 mentioned here.
dataThe JSON object containing the details of the 'action' performed by the platform.
decentro_txn_idValue corresponding to the original_transaction_id. It is the Decentro Transaction ID received in the initiate collect request/ generate payment link/ generate QR API response.
transaction_statusThe Status of the Payment Request
attempt_decentro_txn_idValue corresponding to the original_attempt_transaction_id. It is the Attempt Decentro Transaction ID received in the Transaction Status Callback or GTS Advance response.
action_statusSpecifies if the action was successfully performed or not.
action_status_descriptionMessage associated with the action status.
attempt_statusThe updated payment attempt status.
original_bank_reference_numberThe unique transaction reference number from the bank partner mapped to payment attempt.

Response Keys

Response KeyMessage
success_transaction_release_successTransaction released successfully
success_transaction_release_pendingTransaction release is in pending. Please check after sometime
success_transaction_release_failedTransaction release is failed. Please re-initiate the release.
success_transaction_capture_successTransaction captured successfully
error_transaction_not_on_holdThe specified transaction or transaction attempt is not on HOLD.
error_transaction_capture_failedTransaction capture is failed. Please re initiate the capture.
error_invalid_consumer_urn_valueInvalid value entered for consumer_urn.
error_invalid_reference_idReference URL is not of type string
error_duplicate_reference_idDuplicate Request Reference ID
error_malformed_requestMalformed request detected.
error_unsanitized_valuesUnsanitized values detected for key(s): purpose_message. Kindly sanitize the corresponding values by removing special characters such as . @ # $ % ^ & * ! ; : ' " ~ ` ? = + ) ( and retry.
error_missing_reference_idRequest reference id cannot be null or empty. Hint: reference_id (string)
error_missing_consumer_urnconsumer_urn cannot be null or empty.
error_missing_action_valueEither release or capture has to be passed.
error_invalid_credentialsInvalid authentication credentials
error_missing_credentialsNo API key found in request
error_invalid_client_credentialsAuthentication failed. Please use valid Client ID and Client Secret.
error_empty_client_secretClient Secret cannot be empty. Hint: client_secret (string)
error_company/account_disabledUPI Credit transactions are disabled for the company/account.
Body Params
string
required

A unique ID assigned by the user for this transaction.

string

The Decentro Transaction ID received in the initiate collect request/ generate payment link/ generate QR API response.

string

The Attempt Decentro Transaction ID received in the Transaction Status Callback or GTS Advance response.

string

Pass the value as ‘CAPTURE’ if you want us to settle the transaction amount or as 'RELEASE' if you want us to refund the transaction amount.

string

The Reference ID passed by you in the initiate collect request/ generate payment link/ generate QR API request.

Headers
string
required
string
required
string
Responses

Response body

Language