REST API
cURL
curl --request GET \ --url https://api.example.com/v1/checkouts \ --header 'Authorization: Bearer <token>'
{ "sessions": [ { "id": "cs_ci_123456789", "status": "created", "amount": 5000, "currency": "XOF", "user_phone": "+22507987654", "payment_id": "ORDER_123", "description": "<string>", "created_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z", "failure_reason": "<string>", "transaction_fee": 25 } ], "total_count": 123, "has_more": true, "next_offset": 123 }
POST /v1/checkouts
{ "amount": 1000, "currency": "usd", "payment_method_types": ["card"] }
{ "id": "cs_test_123", "amount": 1000, "currency": "usd", "status": "created" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Retrieve all checkout operations (failed, sucess)
created
pending
processing
completed
failed
expired
cancelled
Sessions
Show child attributes