Refunds

List refunds

GET/api/v1/refunds

Returns your refunds, newest first, one page at a time. Pass payment to see the refunds of one payment. While hasMore is true, pass nextCursor as cursor to get the next page. Treat the cursor as an opaque string, and pass the same payment on every page of one walk through the list.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

payment?string

Only the refunds of the payment with this ID.

Formatuuid
limit?integer

How many refunds 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

curl -X GET "https://api-malipo.flex.co.tz/api/v1/refunds?limit=20" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
{  "data": [    {      "id": "6d2b1f4e-3c55-4e0a-b1c6-0f6a9d7e5a21",      "status": "pending",      "payment": "0b6f3c1e-8f2a-4a51-9a57-6d1f0c2b7e93",      "amount": 4000,      "fee": 1500,      "currency": "TZS",      "reason": "requested_by_customer",      "livemode": false,      "createdAt": "2026-09-29T08:00:00Z"    }  ],  "hasMore": true,  "nextCursor": "eyJjIjoiMjAyNi0wOS0yOFQwOToxNTozMFoiLCJpIjoiMGI2ZiJ9.x7Qm"}