Skip to main content

Quote API

The Quote API allows you to get real-time conversion rates before creating a payment. This is useful for displaying the expected crypto amount to your users.

Get Quote

Returns the current conversion rate and calculated crypto amount for a given fiat amount, token, and network.
Authentication: Requires a Public Key (cp_pk_test_ or cp_pk_live_)

Request Body

Example Request

Response

Response Fields

How Rates Work

Local Currency Collection

When collectInUSD is false (default), the amount is treated as your local currency (NGN, GHS, KES, or ZAR based on your account country).
The API calculates: cryptoAmount = amount / rate

USD Collection

When collectInUSD is true, the amount is treated as USD regardless of your account’s country:
For USD collection, the crypto amount is calculated using the token’s USD market price.

Rate Validity

Rates are indicative and subject to change. The actual rate applied will be determined when the customer completes the checkout. For the most accurate pricing, direct customers to checkout promptly after displaying a quote.

Supported Token/Network Combinations

The available token/network combinations depend on your account’s country. See Types & Enums for the complete list.

Example: Nigerian Merchant

Error Responses