OuiPay
API ReferencePayments

Retrieve a payment

GET /v1/payments/{id} : fetch a payment's current state.

GET /v1/payments/{id}

Headers

HeaderRequiredValue
AuthorizationyesBearer sk_...

Path params

ParamTypeNotes
idstringPayment 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

HTTPerror.codeCause
404NOT_FOUNDNo such payment
403FORBIDDENNot your resource

On this page