API ReferencePayments
Retrieve a payment
GET /v1/payments/{id} : fetch a payment's current state.
GET /v1/payments/{id}
Headers
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer sk_... |
Path params
| Param | Type | Notes |
|---|---|---|
id | string | Payment ULID |
Request
curl https://api.ouipay.africa/v1/payments/01M2S18... \
-H "Authorization: Bearer sk_test_..."Response 200
The payment object. For the durable
record: including failure details: retrieve the linked transaction via
GET /v1/transactions/{transaction_id}.
Errors
| HTTP | error.code | Cause |
|---|---|---|
| 404 | NOT_FOUND | No such payment |
| 403 | FORBIDDEN | Not your resource |