Checkout sessions

Retrieve a checkout session

GET/api/v1/checkout/sessions/{id}

Returns one of your sessions as it is now. Use it to confirm a payment before you give access or ship.

Authorization

bearerAuth
AuthorizationBearer <token>

An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

The session's ID.

Formatuuid

Header Parameters

FlexMalipo-Version?"2026-11-06"

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/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
{  "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"}