Calculate transaction fees
Collections
Transaction fee quote
Calculate the fee amount, payable amount, and fee bearer before a transaction.
POST
Calculate transaction fees
This route calculates fees server-side before launching a collection or disbursement.
You can identify the service with
serviceId, service_id, provider, serviceCode, or service_code.
For a direct API application, the fee bearer comes from the authenticated application configuration or the internal X-SP-Fee-Bearer header.
For a plugin, send origin: "PLUGIN" and provide feeBearer in the payload or query string. The payload has priority.
When
feeBearer is CUSTOMER, payableAmount includes fees. When feeBearer is MERCHANT, merchantNetAmount indicates the merchant net amount after fees.Authorizations
JWT Bearer emis par Mysoleas Identity Cloud. Format: Bearer <access_token>.
Query Parameters
Prioritaire seulement pour les flux plugin lorsque le payload ne fournit pas feeBearer.
Available options:
CUSTOMER, MERCHANT Body
application/json
Example:
10000
Example:
"XAF"
Example:
1
Example:
1
Example:
"mtn_cmr"
Available options:
APPLICATION, PLUGIN Example:
"APPLICATION"
Example:
"CHECKOUT"
Available options:
CUSTOMER, MERCHANT Example:
"CUSTOMER"
Example:
true
Available options:
COLLECTION, DISBURSEMENT Example:
"COLLECTION"
