# Get transaction status

This endpoint retrieves the details of a specific payment by providing the payment ID in the endpoint URL.

#### <mark style="color:green;">GET:</mark>/v1/payment/:payment\_reference

**Params**

| Name               | Type   | Description                                                        |
| ------------------ | ------ | ------------------------------------------------------------------ |
| payment\_reference | string | The payment reference that was generated when initializing payment |

#### Headers

| Name       | Type   | Description              |
| ---------- | ------ | ------------------------ |
| public-key | string | Your Vesicash public key |
| secret-key | string | Your Vesicash secret key |

#### Response

The response will be in JSON format and will have the following schema:

````
```json
{
    "status": "success",
    "code": 200,
    "message": "success",
    "data": {
        "id": "",
        "amount": 143,
        "type": "payment",
        "method": "mobilemoney",
        "status": "pending",
        "currency": "ZMW",
        "reference": "",
        "business_id": "",
        "created_at": "2024-11-06T10:14:31.888324Z",
        "environment": "test",
        "redirect_url": "http://www.google.com",
        "email": "user@example.com",
        "customer_first_name": "",
        "customer_last_name": "",
        "phone_number": ""
    }
}
```
````
