Complete a payment that requires PIN or OTP verification
Post https://dashboard.mbiyo.africa/api/v1/merchant/transactions/{transaction_id}/finalize
Authorization* string
Pass your merchant API key as a bearer token in the request header
Content-Type* string
application/json
transaction_id* string
The transaction_id returned from the payin endpoint
otp* string
The PIN or OTP code provided by the customer (typically 4-6 digits)
curl -X POST "https://dashboard.mbiyo.africa/api/v1/merchant/transactions/CI-6789ABCDEF12345/finalize" \
-H "Authorization: Bearer YOUR_MERCHANT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"otp": "123456"
}'
{
"status": "success",
"message": "Transaction finalized successfully",
"data": null
}
{
"status": "failed",
"message": "Invalid OTP",
"data": null
}
| Country | Network | Auth Mode |
|---|---|---|
| Gambia (GM) | QMoney | pin |
| Gambia (GM) | APS | pin |