Invoices

Download a receipt

GET/api/v1/invoices/{id}/payments/{paymentId}/receipt

Returns the receipt of one payment on one of your invoices as a PDF file. The receipt carries the number shown as receiptNumber in the invoice's payments list, the merchant name, what the payment paid and what is still to pay. Mobile money receipts show the network, the customer's masked number and the network's transaction code. The document is in English.

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

Formatuuid
paymentId*string

The payment's ID, the id of an item in the invoice's payments list.

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/pdf

application/json

application/json

application/json

application/json

curl -X GET "https://api-malipo.flex.co.tz/api/v1/invoices/497f6eca-6276-4993-bfeb-53cbbbba6f08/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08/receipt" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
"string"