MTN payment status
Poll MTN and return the order status for a reference you own.
GET
/payment/mtn/status/:referenceAPIAuthentication:Bearer token
Authorization: Bearer <token>Security requirement: 403 CSRF Protection
Direct server-to-server calls authenticated via Bearer tokens do not require CSRF headers. If you instead invoke mutation endpoints from a web browser using cookie-based sessions, you must include the following header:
X-Requested-With: XMLHttpRequestPath params
| Field | Type | Required | Description |
|---|---|---|---|
reference | string | Required | transactionReferenceId from the collect response. |
Response fields
| Field | Type | Presence | Description |
|---|---|---|---|
transactionReferenceId | string | Always returned | Same reference you polled. |
orderId | string | Always returned | Ziba Pay order id. |
status | string | Always returned | OrderStatus: PENDING, PROCESSING, COMPLETED, FAILED, CANCELLED, EXPIRED, or REVERSED. |
providerStatus | string | Always returned | Status used for this sync. On an already-final order this is the stored order status. |
alreadyFinalized | boolean | Optional | True when the order was already terminal and was not changed. |
Status codes
| HTTP Status | Meaning |
|---|---|
| 200 | Status payload. |
| 401 | No merchant session. |
| 404 | { error: "Payment not found" } when the reference is missing or belongs to another merchant. |