Quote a collection
Price a pay-in before initiating it. Returns what the customer pays (local) and what you receive (USD), with the rate and itemised fees. Indicative — rates move; the firm amount is set when you initiate.
Body·
required
application/json
- Type: numberamountrequired
Amount, interpreted per
amount_type. - Type: stringcountryrequired
Corridor country.
- Type: stringcurrencyrequired
Local currency the customer pays.
- Type: "source" or "destination"enumamount
_type source(default) =amountis the local amount the customer pays;destination=amountis the USD you want credited.
Responses
- application/json
- 400
Invalid quote parameters
- 401
Missing or invalid API key
Request Example for post/v1/collections/quote
curl https://devapi.spendfigo.com/v1/collections/quote \
--request POST \
--header 'Content-Type: application/json' \
--header 'x-api-key: YOUR_SECRET_TOKEN' \
--data '{
"country": "NG",
"currency": "NGN",
"amount": 50000,
"amount_type": "source"
}'
{
"code": 200,
"message": "Request successful",
"data": {
"type": "collection",
"usd": {
"amount": 100.5,
"currency": "USD"
},
"local": {
"amount": 158200,
"currency": "NGN",
"country": "NG"
},
"exchange_rate": {
"pair": "USD/NGN",
"rate": 1582
},
"fees": {
"platform_fee": 0.5,
"provider_fee": 0,
"total_fee": 0.5,
"currency": "USD"
}
}
}