FX / Use cases
An exporter sells USD
Sell the dollars in your USD balance for pesos and pay your suppliers in Colombia with the same API.
An exporter holds dollars in its zulu USD balance and needs pesos for payroll and suppliers in Colombia. It sells USD for COP and pays out with the pesos.
The flow
- Quote USD→COP.
- Execute with
originAmount: the dollars it wants to sell. - When the conversion is
COMPLETED, the pesos are in its COP balance. - Pay out with
POST /v1/transfer, available in production.
1. Quote the sale
GET /v1/quotes
curl "https://sandbox.zulu.com.co/v1/quotes?from=USD&to=COP&settlementTerm=SAME_DAY" \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"factor is still COP per USD. Selling, the spread is subtracted from the mid rate: in the sandbox, 3,950.00 − 60 bps = 3,926.30.
2. Sell by the origin amount
cURL
curl https://sandbox.zulu.com.co/v1/transactions \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"quote": "EQ-USDXCOPX-261124150405-SBX3M", "originAmount": 1000}'At factor 3,926.30 (f₂ = 392,630), selling 1,000 USD gives round(100,000 × 392,630 / 10⁴) = 3,926,300 COP.
3. Wait for the pesos
The conversion stays IN_PROGRESS until its settlement date. Do not pay out before COMPLETED: until then the pesos are not in your balance.
/v1/transactions/{transactionId}Get a transactionSandbox · coming soon
4. Pay out
With the pesos in your balance, pay each beneficiary. This operation is already in production:
POST/v1/transferWithdraw COP balanceProduction
Read Payouts and method selection and the supplier payments use case.
| Limit | Value |
|---|---|
| USD side of a conversion | 1 – 1,000,000 USD |
| Life of a quote (single use) | 30 seconds |