Skip to main content
GET
/
v1
/
payments
/
{id}
Récupérer un paiement
curl --request GET \
  --url https://api.example.com/v1/payments/{id}

Récupérer un paiement

Récupère les détails d’un paiement existant.

Endpoint

GET /v1/payments/{id}

Paramètres

ParamètreTypeDescription
idstringID du paiement (txn_xxx)

Exemple

curl https://api.sahelpay.ml/v1/payments/txn_abc123 \
  -H "Authorization: Bearer sk_test_xxx"

Réponse

{
  "success": true,
  "data": {
    "id": "txn_abc123def456",
    "status": "SUCCESS",
    "amount": 5000,
    "currency": "XOF",
    "provider": "ORANGE_MONEY",
    "provider_ref": "OM123456789",
    "customer_phone": "+22370123456",
    "client_reference": "order_123",
    "metadata": {
      "order_id": "order_123"
    },
    "created_at": "2025-12-18T16:45:00.000Z",
    "updated_at": "2025-12-18T16:50:00.000Z"
  }
}

Statuts

StatutDescription
PENDINGEn attente de paiement
SUCCESSPaiement confirmé
FAILEDPaiement échoué
EXPIREDDélai expiré
CANCELLEDAnnulé par le client