Payouts
Confirm payout
POST
/api/v1/pawapay/payouts/confirmSecond step — submits the verification code and, if correct, actually sends the payout to PawaPay.
Requires Authorization
ADMIN only
Payout confirm
Body parameters
pendingIdstringrequired | From POST /payouts/request-approval. |
codestringrequired | The verification code from the email. |
Possible errors
| 401 | UNAUTHORIZED | Code de vérification invalide. |
| 429 | TOO_MANY_REQUESTS | Trop de tentatives de vérification invalides. Veuillez patienter avant de réessayer. |
Notes
- Only one confirm can run at a time per admin — a second concurrent attempt is rejected rather than queued.
Request
curl --request POST \
--url https://api.swiftgoma.com/api/v1/pawapay/payouts/confirm \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"pendingId": "<pendingId>",
"code": "482913"
}'201Example response
{
"success": true,
"data": {
"payoutId": "pay_5e6f7a8b",
"status": "ACCEPTED",
"amount": "50.00",
"currency": "USD",
"recipient": {
"type": "MMO",
"accountDetails": {
"phoneNumber": "243812345678",
"provider": "MTN_MOMO_COD"
}
}
}
}