Payout
Confirm payout
POST
/api/v1/mbiyopay/payout/confirmSecond step — submits the verification code and, if correct, sends the payout to MbiyoPay.
Requires Authorization
ADMIN only
Payout confirm
Body parameters
pendingIdstringrequired | From POST /payout/request-approval. |
codestringrequired | The verification code from the email. |
Possible errors
| 403 | MBIYOPAY_KYC_REQUIRED | Approbation KYC requise pour les paiements sortants en production. |
| 400 | MBIYOPAY_INSUFFICIENT_BALANCE | Solde MbiyoPay insuffisant pour ce paiement sortant. |
Request
curl --request POST \
--url https://api.swiftgoma.com/api/v1/mbiyopay/payout/confirm \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"pendingId": "<pendingId>",
"code": "482913"
}'201Example response
{
"success": true,
"data": {
"orderId": "SWG-OUT-1a2b3c4d5e6f7890",
"transactionId": "txn_9c8d7e6f",
"status": "pending",
"amount": 50,
"currency": "USD",
"network": "airtel",
"countryCode": "CD",
"beneficiary": "Aline Mapendo"
}
}