Skip to main content
GET
/
exchanges
/
usd-amount
curl -X GET "https://api.chipipay.com/v1/exchanges/usd-amount?currencyAmount=250&currency=MXN" \
  -H "Authorization: Bearer sk_prod_xxxx" \
  -H "x-api-key: pk_xxxx"
13.42
curl -X GET "https://api.chipipay.com/v1/exchanges/usd-amount?currencyAmount=250&currency=MXN" \
  -H "Authorization: Bearer sk_prod_xxxx" \
  -H "x-api-key: pk_xxxx"
13.42

Notes

  • The response is a plain number, not wrapped in an object.
  • Exchange rates are fetched in real-time. The rate may change between calls.
  • Supported currencies: MXN (Mexican Peso), USD (US Dollar).

Authorizations

Authorization
string
header
required

Bearer token — use your secret key (sk_prod_xxx) for server-side calls, or the user's JWT for client-side calls

x-api-key
string
header
required

Your Chipi public API key (pk_xxx)

Query Parameters

currencyAmount
number
required

The amount in the source currency

currency
enum<string>
required

The source currency code Fiat currency code

Available options:
MXN,
USD

Response

The equivalent USD amount

The converted USD amount

Example:

13.42