Skip to content

Get Transaction ​

Reads the current state of a transaction by user_id and ref_id.

Endpoint ​

http
POST /v1/get_transaction
Content-Type: application/json
json
{
  "user_id": "user_00000001",
  "ref_id": "ref_00000001"
}

Parameters:

ParamTypeRequiredDefaultDescription
user_idstringYes—The user ID.
ref_idstringYes—The transaction reference ID.

Returns: GetTransactionResponse

Sample Request ​

bash
curl --location '<BASE_URL>/v1/get_transaction' \
  --header 'Authorization: ATV <ACCESS_ID>:<SIGNATURE>' \
  --header 'X-TV-Timestamp: <TIMESTAMP>' \
  --header 'Content-Type: application/json' \
  --data '{
    "user_id": "user_00000001",
    "ref_id": "ref_00000001"
  }'

Response ​

json
{
  "data": {
    "id": "69306e8a-68e3-43f6-97ae-02b8e7c356f7",
    "ref_id": "ref_00000001",
    "user_id": "user_00000001",
    "status": "VERIFIED"
  },
  "errors": []
}
FieldTypeDescription
data.idstringThe transaction unique ID.
data.ref_idstringThe transaction reference ID.
data.user_idstringThe user ID.
data.statusstringNOT_VERIFIED, VERIFIED or EXPIRED.
errorsarrayDetail of each failure. Empty on success.

Errors ​

CodeDescription
access_id_not_foundThe API key is incorrect.
transaction_invalid_requestInvalid transaction request.
internal_server_errorSome unexpected error occurs while processing the request.
CodeError codeDescription
401access_denied_exceptionYou are not authorized to perform the action.
500internal_server_errorSome unexpected error occurs while processing the request.

Next Steps ​

Developers