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
  • Amount, interpreted per amount_type.

  • Corridor country.

  • Local currency the customer pays.

  • source (default) = amount is the local amount the customer pays; destination = amount is the USD you want credited.

Responses

  • application/json
  • Invalid quote parameters

  • 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"
    }
  }
}