> For the complete documentation index, see [llms.txt](https://docs.pretium.co.ke/pretium/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pretium.co.ke/pretium/api-reference/kenya/collect.md).

# Collect

```
POST {{uri}}/kes/collect
```

#### Body Request

***

| name            | type    | description                                   |
| --------------- | ------- | --------------------------------------------- |
| shortcode       | string  | Customer's phone number                       |
| amount          | integer | Amount to collect                             |
| mobile\_network | string  | Mobile money network i.e Safaricom, or Airtel |
| callback\_url   | url     | URL to receive payment notification           |

{% tabs %}
{% tab title="200 - Success" %}

```
{
    "code": 200,
    "message": "Prompt sent",
    "data": {
        "status": "PENDING",
        "transaction_code": "DDM6D",
        "message": "Success! Processing payment..."
    }
}
```

{% endtab %}

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

```
{
   "code": 400,
   "message": "Failed - Bad Request"
}
```

{% endtab %}
{% endtabs %}
