# Purchase EPIN

## Purchase EPIN

<mark style="color:green;">`POST`</mark> `https://sagecloud.ng/api/v2/epin/purchase`

Network codes include MTN, AIRTEL, GLO, 9MOBILE.\
\
Service codes include MTNEPIN, AIRTELEPIN, GLOEPIN, 9MOBILEEPIN.

#### Headers

| Name          | Type   | Description            |
| ------------- | ------ | ---------------------- |
| Authorization | string | Check the Headers page |

#### Request Body

| Name                                        | Type   | Description                   |
| ------------------------------------------- | ------ | ----------------------------- |
| reference<mark style="color:red;">\*</mark> | string | A unique key generated by you |
| network<mark style="color:red;">\*</mark>   | string | The network code              |
| service<mark style="color:red;">\*</mark>   | string | The service code              |
| value<mark style="color:red;">\*</mark>     | string | Pin value. (100,200,500,1000) |
| quantity<mark style="color:red;">\*</mark>  | string | Number of PINS                |

{% tabs %}
{% tab title="200 Epin purchase successful.NOTE: status can be "success" ,"pending" or "failed"" %}

```
{
    "success": true,
    "status": "success",
    "message": "EPIN purchase successful",
    "reference": "hb7af67a8376",
    "data": [
        {
            "Amount": 100,
            "pin": "1093939828372654",
            "serial_number": "00000015250079968",
            "instruction": "Dial *555*PIN#, then Send"
        }
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://capitalsage.gitbook.io/sagecloud/airtime/purchase-epin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
