> 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-modules-by-program-identifier.md).

# Make Payment

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/payments/stk-push`

#### Headers

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

#### Request Body

| Name                  | Type             | Description                       |
| --------------------- | ---------------- | --------------------------------- |
| paying\_phone\_number | string           | Phone number used to make payment |
| amount                | integer          | Amount to pay                     |
| course\_ids           | list of integers | A list of course ids to pay for   |

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

```json
{
    "status": 200,
    "response_code": 0,
    "success": true,
    "errors": [],
    "message": "STK push initiated successfully",
    "data": {
        "payment_id": 45,
        "amount": 1.0,
        "phone_number": "254742654803",
        "status": "pending",
        "message": "Success. Request accepted for processing",
        "merchant_request_id": "68b7-458a-a02b-cfbe240f00fe383201"
    }
}
```

{% endtab %}

{% tab title="401 Authentication Failed" %}

```json
{
  "status": 401,
  "response_code": 0,
  "success": false,
  "errors": [
    "No token provided"
  ],
  "message": "No token, Authorization denied"
}
```

{% endtab %}
{% endtabs %}
