Status codes
Common cases
401 after it was working
401 after it was working
Your token expired (~1h TTL). Clear it, call
/generate-token again, and retry the request once. Cache the new token until expiresAt.Customer can't hold a wallet or loan
Customer can't hold a wallet or loan
The customer isn’t
ACTIVE. Run the KYC onboarding flow: submit documents, then PATCH .../activate. Activation may require manual review.submit-payment returned 400
submit-payment returned 400
Bridge verified the payment on the gateway and the amount didn’t match (or the
gatewayReference wasn’t found yet). Confirm the collection completed and the amount matches before resubmitting.Every recipe shows the
401 → re-token → retry path inline, so you rarely hit these by surprise.