<!-- Public page: https://payeast.app/developers/docs/#api-reference · version 2026-12-05 -->

# Merchant API reference

Base URL: `https://api.payeast.app/v1`. Sandbox: `https://dev.payeast.app/v1`. Use server-side HTTP Basic application credentials.

## Conventions

Send JSON over HTTPS. Amounts must be positive, with at most two decimals. Use an `Idempotency-Key` for charge creation and retain your order reference. Quote `X-PayEast-Request-Id` when contacting support. Do not fulfill an order until a verified successful result matches its expected amount, currency and reference.

## Rate limits

| Applies to | Limit |
|---|---|
| Live application | 300 requests a minute |
| Sandbox (test) application | **20 requests a minute and 100 a day** |
| `/v1/merchant/*` and `/v1/oauth/revoke`, per IP address | 120 a minute |

Over a limit the answer is `429 rate_limited`. Wait before retrying; do not retry in a tight loop. Limits are counted in fixed windows.

## `GET /v1/health`

Health check (no authentication)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | OK |

## `POST /v1/mandates`

A merchant app adds a customer by customer number. The customer gets a prompt and an e-mail to ACCEPT charges from the app; only an accepted customer can be charged. (Authenticated as the app.)

### Request fields

| Field | Required | Type | Details |
|---|---|---|---|
| `customer_number` | Yes | string |  |
| `reason` | Yes | string | What the customer is signing up for, shown to them minLength: 3. maxLength: 200. |
| `recurring` | No | boolean |  |
| `reference` | No | string | maxLength: 100. |

### Responses

| HTTP status | Meaning |
|---|---|
| `201` | Mandate pending acceptance |
| `401` | Missing, invalid, expired or revoked token |
| `409` | declined_recently |
| `422` | Unknown customer number, no wallet in that currency, etc. |
| `429` | too_many_requests_for_customer |

## `GET /v1/mandates/{id}`

Read a mandate of your app (status pending, active, declined or revoked)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | Mandate |
| `404` | No such object for this connection |

## `POST /v1/mandates/qr`

A merchant app asks for a link QR code to show its customer. The customer scans it with PayEast's Scan and accepts; no customer number is needed. The code works once and expires after 5 minutes. (Authenticated as the app.)

### Request fields

| Field | Required | Type | Details |
|---|---|---|---|
| `reason` | Yes | string | minLength: 3. maxLength: 200. |
| `recurring` | No | boolean |  |
| `reference` | No | string | maxLength: 100. |

### Responses

| HTTP status | Meaning |
|---|---|
| `201` | A QR code to show. Draw qr_url as a QR code. |
| `401` | Missing, invalid, expired or revoked token |
| `403` | not_a_merchant_app |
| `429` | rate_limited |

## `GET /v1/mandates/qr/{id}`

Read a link QR code of your app. status is pending, approved, declined or expired; when approved it carries the mandate_id and the customer_number.

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | QR status |
| `404` | No such object for this connection |

## `POST /v1/charges`

The APP charges a customer who accepted it (POST /mandates), by customer number (authenticated as the app). Autopay up to the customer's own limit, otherwise a phone prompt approved with PIN + 2FA; unusual charges always ask. 409 customer_not_linked if they have not accepted.

### Request fields

| Field | Required | Type | Details |
|---|---|---|---|
| `customer_number` | Yes | string |  |
| `amount` | Yes | number |  |
| `currency` | Yes | string |  |
| `description` | No | string | maxLength: 200. |
| `reference` | No | string | maxLength: 100. |
| `return_url` | No | string |  |
| `expires_in` | No | integer | minimum: 60. maximum: 86400. default: 900. |

### Responses

| HTTP status | Meaning |
|---|---|
| `201` | Payment of kind charge, status requires_approval, requires_second_factor true |
| `400` | Invalid request |
| `401` | Missing, invalid, expired or revoked token |
| `409` | Idempotency conflict, not cancellable, or app not configured |
| `422` | Unknown customer number, no wallet in that currency, etc. |
| `429` | too_many_prompts or too_many_pending_approvals |

## `GET /v1/charges/{id}`

Read a charge of your app (authenticated as the app)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | Payment |
| `404` | No such object for this connection |

## `POST /v1/charges/{id}/cancel`

Withdraw a charge that is still waiting for approval (the customer's prompt disappears)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | Payment |
| `409` | Idempotency conflict, not cancellable, or app not configured |

## `GET /v1/merchant/payments`

Every payment of YOUR APP with PayEast's transaction ids, for reconciliation (authenticated as the app)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | List |
| `401` | Missing, invalid, expired or revoked token |

## `GET /v1/merchant/disputes`

The disputes about payments YOUR APP charged (authenticated as the app, not a customer)

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | List |
| `401` | Missing, invalid, expired or revoked token |

## `GET /v1/merchant/disputes/{id}`

Retrieve one of your app's disputes

### Responses

| HTTP status | Meaning |
|---|---|
| `200` | Dispute |
| `404` | No such object for this connection |

## `POST /v1/merchant/disputes/{id}/respond`

Your app replies to a dispute (the customer is notified; never moves money)

### Request fields

| Field | Required | Type | Details |
|---|---|---|---|
| `text` | Yes | string | minLength: 2. maxLength: 2000. |
| `evidence_urls` | No | array |  |

### Responses

| HTTP status | Meaning |
|---|---|
| `201` | The dispute, now merchant_responded |
| `400` | Invalid request |
| `401` | Missing, invalid, expired or revoked token |
| `404` | No such object for this connection |
| `409` | Idempotency conflict, not cancellable, or app not configured |

## Response fields

Download the [OpenAPI specification](/downloads/payeast-openapi.yaml) for complete request and response schemas.

## Developer support

Contact [support@payeast.app](mailto:support@payeast.app).
