Customers

List a customer's credit grants

GET/api/v1/customers/{id}/credit-grants

Returns the credit you granted to this customer, of both scopes, 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.

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 customer's ID.

Formatuuid

Query Parameters

limit?integer

How many grants to return, 1 to 100. A value outside that range is brought inside it.

Formatint32
Default20
cursor?string

The nextCursor from the previous page. Leave it out for the first page.

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

application/json

curl -X GET "https://api-malipo.flex.co.tz/api/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/credit-grants?limit=20" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
{  "data": [    {      "id": "3b0f6c1e-52d4-4f0a-8f43-1c2d9a7e6b10",      "customerId": "7d5c1a2e-9b3f-4c8a-a1d2-6e4f8b0c3d57",      "amount": 5000,      "currency": "TZS",      "reason": "Apology for the late invoice",      "expiresAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "appliesTo": "invoice",      "prices": [        "9a3c5e7f-1b2d-4c6e-8f0a-2b4d6f8a0c1e"      ],      "priority": 50,      "category": "promotional",      "effectiveAt": "2019-08-24T14:15:22Z",      "metadata": {        "property1": "string",        "property2": "string"      },      "source": "merchant",      "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f"    }  ],  "hasMore": true,  "nextCursor": "eyJjIjoiMjAyNi0wOS0yOFQwOToxNTozMFoiLCJpIjoiMGI2ZiJ9.x7Qm"}