COLLECTIONS
Quote a collection
POSThttps://production.dutchapi.co/v1/collections/quote
Returns the Dutch API fee for a mobile money collection, the amount that lands in your wallet, and the currently available amount range.
🔒Send the project API key as a Bearer token and your Business ID with this call.
Body Params
amountnumberrequired
Amount the payer will be asked to approve, in the local currency.
currencystringrequired
Local currency, for example XAF.
countrystringoptional
ISO country code. Defaults to the country of the currency.
markupPercentnumberoptional
Your markup, percent of the amount.
markupFixednumberoptional
Your fixed markup in the request currency.
Responses
{
"amount": 10000,
"currency": "XAF",
"fees": {
"currency": "XAF",
"rule": "percentage",
"ruleDetail": "2% of the amount",
"dutchFee": 200,
"markup": 100,
"totalFee": 300
},
"you_receive": 9800,
"min": 500,
"max": 500000,
"indicative": true
}
{
"error": "valid_amount_required",
"message": "amount must be a positive number."
}
Errors
| Status | error | Meaning |
|---|
| 400 | valid_amount_required | amount must be a positive number. |
| 422 | collection_not_priced | There is no published collection rate for that country or method. |
| 422 | amount_below_minimum | The amount is under the published minimum. |