Preview the fee on a payment
/api/v1/payments/feesReturns 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 An access token from POST /api/v1/oauth/token, sent as Authorization: Bearer <token>.
In: header
Query Parameters
COLLECTION to collect from a customer, DISBURSEMENT to pay out to one.
Value in
- "COLLECTION"
- "DISBURSEMENT"
The amount, greater than zero, as an integer in the currency's minor unit. TZS has no decimals, so 10000 is TZS 10,000.
int64The three-letter currency code, upper case.
The payment method type. Only mobile_money so far, which is also the default.
"mobile_money"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
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¤cy=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}