Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).
Creates a USD↔COP quote that expires after 30 seconds and serves a single conversion (POST /v1/transactions). factor is always COP per USD: buying USD (COP→USD) it includes zulu's spread, and so does selling them (USD→COP). The term (SAME_DAY, NEXT_DAY, SECOND_DAY) sets the settlement date; SAME_DAY only until 13:00 under REAL hours. In the sandbox the rate is synthetic: not a real quote.
Authentication
Request
Query parameters
- Origin currency (the one you hand over).
fromstringrequiredValues
- COPColombian peso (whole pesos).
- USDUS dollar (up to 2 decimals).
- Destination currency (the one you receive).
tostringrequiredValues
- COPColombian peso (whole pesos).
- USDUS dollar (up to 2 decimals).
- Settlement term (default
settlementTermstringoptionalSAME_DAY).Values
- SAME_DAYSettles the same business day (before the 13:00 cutoff).
- NEXT_DAYSettles the next business day.
- SECOND_DAYSettles on the second business day.
Default: "SAME_DAY"
Responses
200Quote issued.
Body
- Quote id (30 characters):
quotestringrequiredEQ-{ORIGIN}{DESTINATION}-{YYMMDDHHMMSS}-{client}{2}. Send it toPOST /v1/transactions.Example: "EQ-COPXUSDX-261124150405-SBX7Q" - Expires 30 seconds after it was issued; single use.
expiresAtstring (date-time)requiredExample: "2026-11-24T15:04:35.123Z" - One side of the quote.
fromobjectrequiredShow 2 fields
- Country of the currency.
countrystringrequiredValues
- COLColombia (ISO 3166-1 alpha-3).
- USAUnited States (ISO 3166-1 alpha-3).
- Currency.
currencyobjectrequiredShow 2 fields
- Currency code.
codestringrequiredValues
- COPColombian peso (whole pesos).
- USDUS dollar (up to 2 decimals).
- Decimals of the currency (COP 0, USD 2).
decimalsintegerrequiredExample: 0
- One side of the quote.
toobjectrequiredShow 2 fields
- Country of the currency.
countrystringrequiredValues
- COLColombia (ISO 3166-1 alpha-3).
- USAUnited States (ISO 3166-1 alpha-3).
- Currency.
currencyobjectrequiredShow 2 fields
- Currency code.
codestringrequiredValues
- COPColombian peso (whole pesos).
- USDUS dollar (up to 2 decimals).
- Decimals of the currency (COP 0, USD 2).
decimalsintegerrequiredExample: 0
- COP per USD, with 2 decimals. Synthetic in the sandbox: the workspace mid rate ± the term's spread.
factornumberrequiredExample: 3973.7 - Always
factorFormulastringrequiredCOP/USD.Always "COP/USD"Example: "COP/USD" - Quoted term.
settlementTermstringrequiredValues
- SAME_DAYSettles the same business day (before the 13:00 cutoff).
- NEXT_DAYSettles the next business day.
- SECOND_DAYSettles on the second business day.
- Business day it settles (Bogotá).
settlementDatestring (date)requiredExample: "2026-11-24"
400Invalid request: the body is not JSON, a field has another type or fails its validation.
401The access token is missing, invalid or expired.
403The `X-API-Key` is missing, invalid or does not match the token.
404The resource does not exist.
422The operation can not be processed; nothing is recorded.
429Too many requests: wait the seconds in `Retry-After`.
500Internal error.
Errors
The exact causes this operation can answer, from the error catalog. Compare error and the HTTP status; the cause text is stable but meant for people.
| HTTP | error | cause | Description |
|---|---|---|---|
| 400 | BadRequestApiError | error in struct validation | One or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed. |
| 404 | NotFoundApiError | rate "%s->%s" not found | There is no rate configured for that currency pair. |
| 422 | UnprocessableEntityApiError | the fx market is closed | The FX market is closed (REAL hours: 08:05–15:30 on Bogotá business days). The sandbox defaults to ALWAYS_OPEN. |
| 422 | UnprocessableEntityApiError | SAME_DAY settlement is not available after %s | After the cutoff SAME_DAY is not available; quote NEXT_DAY or SECOND_DAY. |
Also, like every authenticated endpoint: 401 Unauthorized, 403 Forbidden, 429 Too Many Requests (with Retry-After) and 500.
Examples
Buy USD with COP, same day200
Request
curl "https://sandbox.zulu.com.co/v1/quotes?from=COP&to=USD" \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 200
{
"quote": "EQ-COPXUSDX-261124150405-SBX7Q",
"expiresAt": "2026-11-24T15:04:35.123Z",
"from": {
"country": "COL",
"currency": {
"code": "COP",
"decimals": 0
}
},
"to": {
"country": "USA",
"currency": {
"code": "USD",
"decimals": 2
}
},
"factor": 3973.7,
"factorFormula": "COP/USD",
"settlementTerm": "SAME_DAY",
"settlementDate": "2026-11-24"
}Sell USD for COP, same day200
Request
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"Response 200
{
"quote": "EQ-USDXCOPX-261124150405-SBX3M",
"expiresAt": "2026-11-24T15:04:35.123Z",
"from": {
"country": "USA",
"currency": {
"code": "USD",
"decimals": 2
}
},
"to": {
"country": "COL",
"currency": {
"code": "COP",
"decimals": 0
}
},
"factor": 3926.3,
"factorFormula": "COP/USD",
"settlementTerm": "SAME_DAY",
"settlementDate": "2026-11-24"
}The same currency on both sides400
Request
curl "https://sandbox.zulu.com.co/v1/quotes?from=COP&to=COP" \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 400
{
"error": "BadRequestApiError",
"cause": "error in struct validation",
"values": {
"from": "failed validation on the \"not_equal_to\" tag with value required \"To\"",
"to": "failed validation on the \"not_equal_to\" tag with value required \"From\""
}
}No currencies400
Request
curl https://sandbox.zulu.com.co/v1/quotes \
-H "Authorization: Bearer $ZULU_ACCESS_TOKEN" \
-H "X-API-Key: $ZULU_API_KEY"Response 400
{
"error": "BadRequestApiError",
"cause": "error in struct validation",
"values": {
"from": "failed validation on the \"required\" tag",
"to": "failed validation on the \"required\" tag"
}
}