Requery
Refresh transaction state when webhooks miss or the sync path returned pending/unknown.
OuiPay’s sync path accepts an operation and may return pending / processing / unknown without waiting for the provider to finish (ADR 0020). Final state arrives via webhook or status requery — the same fallback MTN MoMo and Paystack recommend when callbacks are missed or one-shot.
Platform sweeps (payments:requery-stale, ouipay:requery-unknown-service-orders) run that recovery server-side. Integrators should still refresh their own view after timeouts.
To refresh a transaction after a webhook or a timeout, call:
curl https://api.ouipay.africa/api/v1/external/transactions/01M2S18... \
-H "Authorization: Bearer sk_test_..."Use the returned status as source of truth. If status is unknown, keep
polling or wait for a later transaction.status_changed webhook — do not
assume failure, and do not create a second payment or biller purchase for
the same intent.