# Initiate Payment API

Initiate a payment request from a customer.

## Endpoint
`POST https://api.moolre.com/open/transact/payment`

## Headers
| Name | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| X-API-USER | string | Yes | Username |
| X-API-PUBKEY | string | Yes | Public Key |

## Request Parameters
| Name | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| type | integer | Yes | Must be 1. |
| channel | string | Yes | Channel ID. |
| amount | string | Yes | Amount. |
| payer | string | Yes | Payer ID (Phone). |
| externalref | string | Yes | Reference. |

## Responses
### 200 - Success
Payment initiated.

```json
{
  "status": 1,
  "code": "TR099",
  "data": "uuid-123"
}
```

