List checkout sessions
/api/v1/checkout/sessionsReturns your sessions, newest first, one page at a time. While hasMore is true, pass nextCursor as cursor to get the next page. Treat the cursor as an opaque string. A cursor is bound to the status filter it was issued with.
Authorization
bearerAuth An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Query Parameters
How many sessions to return, 1 to 100. A value outside that range is brought inside it.
int3220The nextCursor from the previous page. Leave it out for the first page.
Only sessions with this status: open, complete or expired.
Header Parameters
The API version to use for this request, a date such as 2026-11-06. Without it the request uses your default version for the mode of your key. An unknown version answers 400 api_version_invalid.
Value in
- "2026-11-06"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api-malipo.flex.co.tz/api/v1/checkout/sessions?limit=20&status=open" \ -H "Authorization: Bearer <token>" \ -H "FlexMalipo-Version: 2026-11-06"{ "data": [ { "id": "0b6f3a52-6c1e-4f0a-8d2e-5a1c9e7b4d10", "mode": "payment", "status": "open", "livemode": false, "currency": "TZS", "amountTotal": 24000, "customerDetails": { "name": "string", "email": "string", "phone": "string" }, "clientReferenceId": "order-1042", "metadata": { "property1": "string", "property2": "string" }, "successUrl": "string", "cancelUrl": "string", "expiresAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "lineItems": [ { "name": "string", "unitAmount": 12000, "quantity": 0, "adjustableQuantity": { "minimum": 0, "maximum": 0 }, "amount": 24000 } ], "customer": "5b0c6a0e-1f0d-4f6b-8a5e-0d8f6c1f2a33", "subscriptionId": "9c1d7e44-2a3b-4c5d-8e6f-7a8b9c0d1e2f", "invoiceId": "3d2c1b0a-9f8e-4d7c-a6b5-c4d3e2f1a0b9", "maxPeriods": 3, "carriedAmount": 300, "creditApplied": 2000, "lines": [ { "kind": "string", "description": "string", "amount": 0, "usageQuantity": 0, "unitAmountDecimal": "string", "usagePeriodStart": "2019-08-24T14:15:22Z", "usagePeriodEnd": "2019-08-24T14:15:22Z" } ], "amountDue": 13000, "brandId": "3f2b8c1e-6a4d-4e0b-9d71-5c8a2b7e4f10", "url": "https://pay.example.com/s/0b6f3a52-6c1e-4f0a-8d2e-5a1c9e7b4d10#Zm9v" } ], "hasMore": true, "nextCursor": "eyJjIjoiMjAyNi0wOS0yOFQwOToxNTozMFoiLCJpIjoiMGI2ZiJ9.x7Qm"}