PayCentral › Remboursements, décaissements et paiements tardifs
Bash · requête
curl https://api-paycentral.gabondunumerique.com/api/v1/payment/initiate \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Idempotency-Key: reservation-8841" \
-H "Content-Type: application/json" \
-d '{"amount": 500, "phone": "+23562123456", "merchant_reference": "RES-8841"}'
JSON · champs ajoutés à la réponse de statut et au webhook
{
"status": "success",
"failure_reason": null,
"expires_at": "2026-11-08T10:30:00.000000Z",
"late_confirmed": true,
"late_confirmed_at": "2026-11-08T10:42:11.000000Z",
"possible_duplicate": false,
"refunded_amount": "0.00"
}
POST
/payment/{transaction_id}/refundamount | number | ||
reason | string |
Bash · requête
curl https://api-paycentral.gabondunumerique.com/api/v1/payment/ID_DE_LA_TRANSACTION/refund \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Idempotency-Key: remboursement-8841" \
-H "Content-Type: application/json" \
-d '{"amount": 200, "reason": "Voyage annulé"}'
JSON · réponse 201
{
"success": true,
"refund": {
"id": "01a1b7ef-dff0-73eb-89eb-aa9c4a0964ab",
"transaction_id": "01a1b7ef-6a47-7395-9045-a9c99c41b2d4",
"environment": "sandbox",
"amount": "200.00",
"currency": "XAF",
"status": "completed",
"reason": "Voyage annulé",
"rejection_reason": null,
"processed_at": "2026-11-07T21:35:13.000000Z",
"created_at": "2026-11-07T21:35:13.000000Z"
},
"message": "Remboursement effectué."
}
GET
/payment/{transaction_id}/refundsPOST
/payout/initiateamount | number | ||
phone | string | ||
merchant_reference | string | ||
description, metadata, currency |
Bash · requête
curl https://api-paycentral.gabondunumerique.com/api/v1/payout/initiate \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Idempotency-Key: virement-2201" \
-H "Content-Type: application/json" \
-d '{"amount": 1000, "phone": "+24107123456", "merchant_reference": "PO-2201"}'
JSON · réponse 201
{
"success": true,
"payout": {
"id": "01a1b7ed-87d4-70fa-8bab-a3c47ebf9e32",
"provider": "airtel",
"environment": "sandbox",
"phone": "24107123456",
"amount": "1000.00",
"currency": "XAF",
"fees": "15.00",
"status": "processing",
"failure_reason": null,
"merchant_reference": "PO-2201",
"paid_at": null
},
"message": "[SIMULATION] Décaissement en cours de traitement."
}
GET
/payout/{payout_id}0000 | |
1111 | |
Bash · requête
curl https://api-paycentral.gabondunumerique.com/api/v1/payment/initiate \
-H "X-Api-Key: sk_sandbox_VOTRE_CLE" \
-H "Content-Type: application/json" \
-d '{"amount": 5000, "provider": "mastercard", "merchant_reference": "CMD-77", "redirect_url": "https://votresite.com/merci"}'
4242 4242 4242 4242 | |
4000 0000 0000 3220 | |
4000 0000 0000 0002 | |
4000 0000 0000 9995 | |
4000 0000 0000 0259 | |
4000 0000 0000 1976 | |
payment.success | ||
payment.failed | ||
payment.cancelled | ||
refund.completed | ||
refund.pending | ||
refund.rejected | ||
payout.success | ||
payout.failed | ||
dispute.opened | ||
dispute.won / dispute.lost |