# USSD

Accept payments directly from your customers local bank account through ussd payment channel.

#### How it works

1. To initiate a USSD payment, make a request to the USSD payments service with the `payments/initiates` endpoint.
2. When the request is made you are expected to get a dial code.
3. Customer completes transactions using the USSD spring and dial code generate
4. [Verify the payment](https://doc.seerbit.com/integration/verify-transaction)

{% tabs %}
{% tab title="Authentication" %}

```java
curl -X POST
https://seerbitapi.com/api/v2/payments/initiates
-H 'Content-Type: application/json' 
-H 'Authorization: Bearer {token}
```

{% endtab %}

{% tab title="Request" %}

```
{
    "publicKey":"BPTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
    "amount":"100",
    "fullName": "Eddie roli",
    "mobileNumber": "08087522256",
    "email":"eddie@gmail.com",
    "currency": "NGN",
    "country": "NG",
    "paymentReference": "dsffererer",
    "callbackUrl": "http://www.checkout.parallexpay.com",
    "redirectUrl": "http://www.checkout.parallexpay.com",
    "paymentType": "USSD",
    "bankCode":"044"
    }

```

{% endtab %}

{% tab title="Response" %}

```
{
    "status": "SUCCESS",
    "data": {
        "code": null,
        "payments": {
            "paymentReference": "dsffererer",
            "linkingReference": "SABI724622561618580872054",
            "providerreference": "8206",
            "ussdDailCode": "*901*000*8206#"
        },
        "message": null
    }
}
```

{% 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://doc.usepay4it.com/payment-method/ussd.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.
