Get transaction
Load one payment by numeric id, including its order, for the signed-in merchant.
GET
/transactions/:idAPIAuthentication: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 |
|---|---|---|---|
id | number | Required | Internal payment row numeric ID. |
Response fields
| Field | Type | Presence | Description |
|---|---|---|---|
status | string | Always returned | success |
data.payment.id | number | Always returned | Internal numeric payment row ID. |
data.payment.amount | number | Always returned | Payment amount. |
data.payment.status | string | Always returned | Stored payment status (e.g., PENDING, COMPLETED). |
data.payment.method | string | Always returned | Payment channel: MTN, AIRTEL, or TRANSACTPAY. |
data.payment.orderId | string | Always returned | Associated order reference identifier. |
data.payment.userId | string | Always returned | Merchant account ID. |
data.payment.createdAt | string | Always returned | Timestamp payment row was recorded. |
Status codes
| HTTP Status | Meaning |
|---|---|
| 200 | { status: "success", data: { payment } }, including the associated order. |
| 400 | { status: "fail", message: "Invalid payment id" } when the id is not an integer. |
| 401 | No merchant session. |
| 404 | { status: "fail", message: "Payment not found" } when the id is missing or belongs to another merchant. |