---
updatedAt: 2026-03-30T08:12:29.000Z
---

# Query Token Details

This will show how the customer after tokenizing a card using 3DS can query for the token generated

### Request Parameters

| Parameter Name            | Type     | Description                                                                                    |
| :------------------------ | :------- | :--------------------------------------------------------------------------------------------- |
| service\_code             | `string` | Unique code identifier for the merchant's service in use as provided on the checkout platform. |
| merchant\_transaction\_id | `string` | Unique transaction ID identifying the transaction as given by the merchant.                    |

**Example**

```json
{
    "merchant_transaction_id": "{{merchant_transaction_id}}",
    "service_code": "{{service_code}}",
 }   
```

### Response Parameters

| Parameter Name              | Type         | Description                                                                       |
| :-------------------------- | :----------- | :-------------------------------------------------------------------------------- |
| status                      | JSONObject   | Contains status details                                                           |
| status.status\_code         | `string`     | For success will always be 200 and 0 For failed                                   |
| status. status\_description | `string`     | Describe the success or failed status given above                                 |
| results                     | `JSONObject` | contains the actual details to be returned                                        |
| results.token               | `string`     | returns the actual token generated if you did a generate token with 3DS request   |
| results.agreement\_id       | `string`     | This will give back the agreementID generated by the acquirer for the transaction |

**Example of Successful Response**

```json
{
    "status": {
      "status_code": 200,
    	"status_description": "Successfully processed request!"
    },
    "results": {
        "token": "9538573326597802",
        "agreement_id": "39267377884"
    }
}
```

**Example of Failed Responses**

```json
{
   "status": {
      "status_code": 404,
    	"status_description": "Token not available"
    },
    "results": {
        "token": null,
        "agreement_id": null,
        "acquirer_code": null,
        "acquirer_message": null,
        "merchant_transaction_id": "TestLayout0068"
    }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "direct-card-authorization",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api-approval.tingg.africa"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/checkout-api/query_token_details": {
      "post": {
        "description": "",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "operationId": "post_v3-checkout-api-query-token-details"
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```