Guides
Pay bills & airtime
Accept collection synchronously; catalogue fulfilment completes asynchronously.
Bill and airtime purchases are a two-leg flow (ADR 0020):
- Leg A — accept + collect (sync on your request):
POST /api/v1/services/ordersvalidates the catalog, locks a quote when required, creates the service order, and starts collection (InitiatePayment). The HTTP response means OuiPay accepted the order and started (or completed) collection intake — the same shape Flutterwave and MoMo use when a bill/airtime call returns pending. - Leg B — fulfil (async): After funds clear, OuiPay purchases from the biller (
FulfillServiceOrderJob). Delivery confirmation is not guaranteed on the create-order response.
What to expect on create
| Response signal | Meaning |
|---|---|
Order + payment pending / processing / requires_action | Accepted; finish customer action if needed; wait for webhook or poll |
Payment already completed on a wallet rail | Collection cleared; fulfilment still may be queued |
Terminal failed | Do not assume a second create is safe — use status/retry rules |
Do not treat “order created” as “airtime delivered.” Confirm fulfilment via order status, webhooks, or a later GET.
Webhooks and requery
Prefer webhooks for final state. If a callback is missed (MoMo sends once; Paystack guidance is verify server-side), poll transaction/order status. Platform requery sweeps are the server-side fallback — see Requery.
Idempotency
Pass a stable idempotency_key on create so network retries replay the same order. A customer “try again” after a retryable decline is a payment retry, not a duplicate create — see Idempotency.