Skip to content
developers

FX

Quote a conversion

GET/v1/quotesSandbox · coming soon

Base URL
Sandboxhttps://sandbox.zulu.com.co/v1
Not in production yet: it arrives with this same signature. Try it in the sandbox.

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

Authorization: Bearer <access_token> (401 when missing or expired) and X-API-Key (403 when missing or not matching).

Request

Query parameters

  • fromstringrequired
    Origin currency (the one you hand over).

    Values

    • COPColombian peso (whole pesos).
    • USDUS dollar (up to 2 decimals).
  • tostringrequired
    Destination currency (the one you receive).

    Values

    • COPColombian peso (whole pesos).
    • USDUS dollar (up to 2 decimals).
  • settlementTermstringoptional
    Settlement term (default SAME_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
    • quotestringrequired
      Quote id (30 characters): EQ-{ORIGIN}{DESTINATION}-{YYMMDDHHMMSS}-{client}{2}. Send it to POST /v1/transactions.
      Example: "EQ-COPXUSDX-261124150405-SBX7Q"
    • expiresAtstring (date-time)required
      Expires 30 seconds after it was issued; single use.
      Example: "2026-11-24T15:04:35.123Z"
    • fromobjectrequired
      One side of the quote.
      Show 2 fields
      • countrystringrequired
        Country of the currency.

        Values

        • COLColombia (ISO 3166-1 alpha-3).
        • USAUnited States (ISO 3166-1 alpha-3).
      • currencyobjectrequired
        Currency.
        Show 2 fields
        • codestringrequired
          Currency code.

          Values

          • COPColombian peso (whole pesos).
          • USDUS dollar (up to 2 decimals).
        • decimalsintegerrequired
          Decimals of the currency (COP 0, USD 2).
          Example: 0
    • toobjectrequired
      One side of the quote.
      Show 2 fields
      • countrystringrequired
        Country of the currency.

        Values

        • COLColombia (ISO 3166-1 alpha-3).
        • USAUnited States (ISO 3166-1 alpha-3).
      • currencyobjectrequired
        Currency.
        Show 2 fields
        • codestringrequired
          Currency code.

          Values

          • COPColombian peso (whole pesos).
          • USDUS dollar (up to 2 decimals).
        • decimalsintegerrequired
          Decimals of the currency (COP 0, USD 2).
          Example: 0
    • factornumberrequired
      COP per USD, with 2 decimals. Synthetic in the sandbox: the workspace mid rate ± the term's spread.
      Example: 3973.7
    • factorFormulastringrequired
      Always COP/USD.
      Always "COP/USD"Example: "COP/USD"
    • settlementTermstringrequired
      Quoted term.

      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.
    • settlementDatestring (date)required
      Business day it settles (Bogotá).
      Example: "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.

HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.
404NotFoundApiErrorrate "%s->%s" not foundThere is no rate configured for that currency pair.
422UnprocessableEntityApiErrorthe fx market is closedThe FX market is closed (REAL hours: 08:05–15:30 on Bogotá business days). The sandbox defaults to ALWAYS_OPEN.
422UnprocessableEntityApiErrorSAME_DAY settlement is not available after %sAfter 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"
  }
}