Retrieve a customer's credit balance
/api/v1/customers/{id}/balanceReturns the credit this customer has with you, per currency, split into refundable credit (money the customer paid), promotional credit (credit you granted that pays invoices) and usage credit (credit you granted that pays only the usage of metered prices). Refundable and promotional credit make up the balance that pays the customer's invoices. Only currencies the customer has credit in appear. Amounts are in the currency's minor unit.
Authorization
bearerAuth An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Path Parameters
The customer's ID.
uuidHeader 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/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/balance" \ -H "Authorization: Bearer <token>" \ -H "FlexMalipo-Version: 2026-11-06"{ "balances": { "property1": { "refundable": 10000, "promotional": 0, "usage": 0 }, "property2": { "refundable": 10000, "promotional": 0, "usage": 0 } }}