Payments

Preview the fee on a payment

GET/api/v1/payments/fees

Returns the fee on a payment of this kind and amount, without creating it, in the mode of your key. net is what the payment would do to your balance: positive for a collection, negative for a payout. The amount is checked against the smallest and largest amount of the network, as creating the payment would. Name the network when networks differ; the limits and fees of each are in your payment method settings.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

kind*string

COLLECTION to collect from a customer, DISBURSEMENT to pay out to one.

Value in

  • "COLLECTION"
  • "DISBURSEMENT"
amount*integer

The amount, greater than zero, as an integer in the currency's minor unit. TZS has no decimals, so 10000 is TZS 10,000.

Formatint64
currency*string

The three-letter currency code, upper case.

paymentMethodType?string

The payment method type. Only mobile_money so far, which is also the default.

Default"mobile_money"
network?string

The network to quote for: mpesa or mixx_by_yas. Leave it out only when every network has the same limits and fee; otherwise the answer is a 400 with the code parameter_missing.

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"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api-malipo.flex.co.tz/api/v1/payments/fees?kind=COLLECTION&amount=10000&currency=TZS&paymentMethodType=mobile_money&network=mpesa" \  -H "Authorization: Bearer <token>" \  -H "FlexMalipo-Version: 2026-11-06"
{  "kind": "DISBURSEMENT",  "currency": "TZS",  "amount": 10000,  "fee": 150,  "net": -10150}