> For the complete documentation index, see [llms.txt](https://developers.klasha.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.klasha.com/~/revisions/H5FGFkMO860BT4FVTiB5/misc/transaction-status.md).

# Transaction Status

Verify a transaction.

To complete a charge, a transaction should be verified and a transaction reference must be supplied.

When verifying a transaction, the following should be checked:

* Confirm both the value of the payment and the destination currency are correct.
* Confirm the status of the transaction is successful.

A sample code of how to implement server-side validation:

<mark style="color:green;">`POST`</mark> `{{env_url}}/nucleus/tnx/merchant/status`

#### Request Body

| Name                                     | Type   | Description           |
| ---------------------------------------- | ------ | --------------------- |
| tnxRef<mark style="color:red;">\*</mark> | String | Transaction reference |

```
{
    "tnxRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae"
}
```

#### Response Body

{% tabs %}
{% tab title="200: OK " %}

```jsonl
{
    "txRef": "6e003f69-55e3-4117-aa7a-f4259ad227ae",
    "destinationCurrency": "NGN",
    "sourceAmount": 2500.000000,
    "sourceCurrency": "NGN",
    "status": "successful",
    "destinationAmount": 2500.000000,
    "customer": {
        "id": 6132,
        "name": Demo Tester,
        "email": "test@klasha.com",
        "phone": "09012332122",
        "createdAt": "2022-01-24 13:25:31",
        "updatedAt": "2022-01-24 13:25:31"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
   "status": "pending"
}
```

{% endtab %}
{% endtabs %}
