# Verify Payments

{% hint style="info" %}
Our system will send an **http GET request** to your callback URL using your transaction reference as a  value to the query key: *reference.*

You should listen to the ***reference** query in your callbacks*
{% endhint %}

<mark style="color:blue;">`GET`</mark> `{{base_url}}/payment/:reference`

{% hint style="info" %}
Fields with <mark style="color:red;">\*</mark> are required
{% endhint %}

#### Path Parameters

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

#### Headers

| Name                                            | Type   | Description                  |
| ----------------------------------------------- | ------ | ---------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer {{your\_secret\_key}} |

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

```json
{
    "status": true,
    "message": "Transaction Retrieved Successfully",
    "data": {
        "reference": "edonbetter47u",
        "transaction_id": "edonbeta4u-CUS_BMW4WD2022-001",
        "amount": 9364760,
        "fee": 280943,
        "currency": "NGN",
        "success": true,
        "customer": {
            "name": "Ciroma Alade",
            "email": "ciroma@alade.com",
            "phone": "08101234567"
        },
        "products": [
            {
                "name": "Cooling Refrigerator",
                "amount": 1092000,
                "description": "Twin Door; Green Colour"
            },
            {
                "name": "TV",
                "amount": 8000000,
                "description": "32 inches made in China"
            }
        ],
        "metadata": {
            "location": "Abuja"
        },
        "authorization": {
            "card_type": "visa",
            "first_six": "408412",
            "last_four": "2787",
            "expiry": "09/25"
        }
    }
}
```

{% endtab %}

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

```json
{
    "success": false,
    "error": "Error in request",
    "message": "reference not found"
}
```

{% endtab %}
{% endtabs %}
