Create Payment ID API

Create permanent payment IDs for secure collections.

# Create Payment ID API

Generate a unique permanent payment ID for use in making payments. Customers can make payments by dialing *203*paymentid#.

## Endpoint
- **Method**: POST
- **URL**: https://api.moolre.com/open/account/create

## Headers
| Header | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| X-API-USER | string | Yes | Your Moolre username. |
| X-API-PUBKEY | string | Yes | Your Public API Key. |

## Request Body
| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| type | integer | Yes | ID of the function. Must be 2. |
| phone | string | Yes | Phone number of the customer in +233 format (e.g., +233267606822). |
| name | string | Yes | Name of the Customer or a Unique ID. |
| currency | string | Yes | Currency of your account/wallet: GHS (Ghana Cedis) or NGN (Nigerian Naira). |
| amount | string | No | Optional preset payment amount. Omit it to create a Payment ID without a preset limit; when provided, it must be greater than 0. |
| externalref | string | No | Unique ID to identify the request. |
| accountnumber | string | Yes | Your Moolre Account Number. |

## Response (200 Success)
Payment ID generated.

```json
{
  "status": 1,
  "code": "AD14",
  "message": "Terminal Creation Successful",
  "data": {
    "paymentid": "08160984",
    "name": "Kofi Adeniyi",
    "qrcode": null
  },
  "go": null
}
```

Back to the Moolre AI documentation index