# Transaction Details

## Verify Transaction

<mark style="color:green;">`POST`</mark> `https://borderlesspaymentng.com/api/charge/validation`

#### Headers

| Name                                            | Type   | Description              |
| ----------------------------------------------- | ------ | ------------------------ |
| authorization<mark style="color:red;">\*</mark> | String | Bearer YOUR\_SECRET\_KEY |
| content-type<mark style="color:red;">\*</mark>  | String | application/json         |

#### Request Body

| Name                                        | Type   | Description                                               |
| ------------------------------------------- | ------ | --------------------------------------------------------- |
| reference<mark style="color:red;">\*</mark> | String | reference - the reference is passed in the Charge payload |
| orderid <mark style="color:red;">\*</mark>  | String | the order id which is returned in the api Charge          |

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

```json
{
  "data" : {
    "trxDetails" : {
        "status" : "approved",
        "trxRef" : "bac3juaiaa",
        "amount" : "10.00",
        "currency" : "USD",
        "transDate" : "2023-11-19 21:10:22"
    },
    "custDetails" : {
        "fullName" : "Kay Nguyen",
        "email" : "kaynguyen@gmail.com",
        "phone" : "1234567890",
    },
    "cardDetails" : {
        "cardType" : "VISA",
        "cardNumber" : "45678876512346789",
        "expiryDate" : "01/24"
    }
  }    
  "message": "success",
  "status": "success"
 }
```

{% endtab %}

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

```json
{
    "status":"failed",
    "message":"Bad Request"
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```json
{
    "status":"failed",
    "message":"Invalid Token"
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```json
{
    "message":"Transaction not found",
    "status":"failed"
}
```

{% endtab %}
{% endtabs %}
