cURL
curl --request GET \ --url https://api.example.com/v1/payments
Lister tous les paiements
GET /v1/payments
page
limit
status
curl "https://api.sahelpay.ml/v1/payments?page=1&limit=20&status=SUCCESS" \ -H "Authorization: Bearer sk_test_xxx"
{ "success": true, "data": { "payments": [ { "id": "txn_abc123", "status": "SUCCESS", "amount": 5000, "currency": "XOF", "created_at": "2025-12-18T16:45:00.000Z" } ], "pagination": { "page": 1, "limit": 20, "total": 150, "pages": 8 } } }