Versioning

How the API changes, and how you choose when your integration moves.

The API's major version is part of every path: /api/v1. Inside it, the API has dated versions, such as 2026-11-06. The newest is 2026-11-06.

A change that could break your code ships only under a new dated version. Your integration keeps the version it has until you move it.

Which version a request uses

A request uses the first of these that applies:

  1. The version in the FlexMalipo-Version request header, for that request only.
  2. Your default version for the mode of your key. It is carried by the access token, so a change shows in tokens you get after it.
  3. The newest version.
curl "https://api-malipo.flex.co.tz/api/v1/payments" \
  -H "Authorization: Bearer <token>" \
  -H "FlexMalipo-Version: 2026-11-06"

Every response has a FlexMalipo-Version header with the version it was made with. A version that does not exist is refused with 400, the code api_version_invalid and param set to FlexMalipo-Version.

Test and live mode each have their own default.

What can change within a version

These additions reach every version without a new date, and without notice:

  • New endpoints.
  • New optional request fields and parameters.
  • New fields in responses.
  • New values in fields that list values, such as status, failureCode or event types.
  • New webhook event types. An endpoint subscribed to * starts receiving them.
  • New error codes and new expand[] paths.

Write your client to ignore an unknown field, and to skip an unknown value or treat it as a failure, never to crash on it.

What needs a new version

These ship only under a new dated version:

  • Removing or renaming a field, a value or an endpoint.
  • Changing what a field means, or its type.
  • Making an optional parameter required.
  • Answering an existing case with a new error status.

Move your default version

You change your default version in the dashboard, for test mode and for live mode separately. Only an owner or an admin of your team can do it. Test the new version first: upgrade test mode, run your integration, then upgrade live mode.

  • An upgrade moves the mode to the newest version. It cannot go to any other version.
  • For 72 hours after an upgrade you can roll the mode back to the version it had before. A rollback works once. After 72 hours, or after the rollback, there is nothing to roll back to and the request is refused with 400 and the code api_version_rollback_unavailable.
  • Access tokens you got before the change keep their old version until they expire, which is within five minutes.

To try a version without changing your default, send FlexMalipo-Version on your test calls.

Webhook endpoints

A webhook endpoint has its own apiVersion. It is the version you give when you create the endpoint, or else the version of the request that created it. Its events are written in that version, and each event carries it as apiVersion. Changing your default version does not change your endpoints. Update the endpoint's apiVersion to move it. See Webhooks.

On this page