> For the complete documentation index, see [llms.txt](https://docs.patascore.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patascore.com/financial-education-1/payments/fetch-websocket-conversaction.md).

# Payment Status

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/payments/{payment_id}/status`

#### Path Parameters

| Name        | Type    | Description       |
| ----------- | ------- | ----------------- |
| payment\_id | integer | ID of the payment |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

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

```json
{
    "status": 200,
    "response_code": 0,
    "success": true,
    "errors": [],
    "message": "Payment status retrieved",
    "data": {
        "id": 46,
        "amount": 2.0,
        "status": "pending",
        "mpesa_reference": false,
        "subscription_type": "bundle",
        "course_ids": [
            11,
            12
        ],
        "payment_date": null,
        "failure_reason": false
    }
}
```

{% endtab %}

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

```json
{
    "status": 404,
    "message": "Payment not found"
}
```

{% endtab %}
{% endtabs %}
