Payment methods

Switch a network on or off

PUT/api/v1/payment-methods/{network}

Switches a mobile money network on or off in the mode of your key. Creating a payment to a number on a switched-off network is refused with 422 payment_method_unactivated. A network that is not available to your account cannot be switched.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

network*string

The network: mpesa or mixx_by_yas.

Value in

  • "mpesa"
  • "mixx_by_yas"

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"

Request Body

application/json

A network's new setting.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://api-malipo.flex.co.tz/api/v1/payment-methods/mpesa" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06" \  -H "Content-Type: application/json" \  -d '{    "enabled": false  }'
{  "type": "mobile_money",  "network": "mpesa",  "available": true,  "enabled": true,  "limits": [    {      "operation": "collection",      "currency": "TZS",      "minimum": 500,      "maximum": 5000000,      "pricing": {        "percent": 0,        "fixed": 0      }    }  ]}