Skip to main content
Transactions API

Validate Transaction

PUT /transactions/validate

Validates a transaction.

 

Requires  the use of an Authorization Bearer Token  which is used to provide credentials that authenticate a user agent with a server, allowing access to a protected resource.

Request Body

custom_id

string

Idempotency key created to enable idempotent operations.

Example value:  ten_0521aadc-5fbd-4b3c-af0a-a4f4b8d6f20a

token

string
REQUIRED

The token identifier.

Example value:  tok_e49f110e-804c-4e23-8e9c-4d4fae4c7868

transaction_uuid

string
REQUIRED

The Transaction’s UUID.

Example value:  trx_422f0f81-5001-4cce-a229-242d9ab9960a

otp_value

string

The otp required to validate this transaction

POST /transactions/validate
curl --location 'https://api.druo.com/transactions/validate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--data '{
    "custom_id": "12345",
    "token": "tok_e49f110e-804c-4e23-8e9c-4d4fae4c7868",
    "transaction_uuid": "trx_422f0f81-5001-4cce-a229-242d9ab9960a",
    "otp_value": "23"
}'

Response Fields

uuid

string

The Transaction’s UUID.

Example value:  trx_422f0f81-5001-4cce-a229-242d9ab9960a

status

string

The Transaction’s status.

Example value:  SUCCESSFUL

Other values:  PROCESSING, SUCCESSFUL,
FAILEDCANCELED

decline_reason

string

The decline reason of Transaction.

Example value:  INSUFFICCIENT_FUNDS

Response
{
        "uuid": "trx_03518740-9898-423a-bfef-db0f10fa84cc",
        "status": "PENDING",
        "decline_reason": ""
}