TEST documentation. Requests go to http://neobank-preprod-gateway/partner-api/v2.

FX

Quote an exchange and lock its rate

POST/fx/quotes

Prices selling sellAmount for buyCurrency and locks the rate until expiresAt (about 30 seconds). A crypto quote locks no rate (below) and can be executed until its expiresAt, up to 5 minutes. Execute it with POST /fx/exchanges and quoteId — once: a quote is single-use. Nothing moves and nothing is reserved; an unused quote simply lapses, so no Idempotency-Key is needed.

A crypto pair settles on an execution venue: its quote has rateLocked: false and the exchange fills at the venue's prices. Its quote is the venue's estimate with your spread applied: sell is the most the exchange sells, and rate prices buy against what it is estimated to cost — which can be less than sell, so sell × rate can be more than buy. When the exchange completes, its sell, buy, rate, fee and totalDebited are restated from what the venue filled, with your spread applied; what leaves your account never exceeds the quote's totalDebited.

Accounts: name sellAccountId / buyAccountId, or leave them out and your default account in that currency (isDefault: true on GET /accounts) is used — or the only one, when you hold just one. None in the sell currency is 400 no_account_for_currency, none in the buy currency 400 fx_target_account_not_found. A named account in another currency is 400 fx_account_currency_mismatch; one that is not yours is 404 not_found.

Authentication
ApiKeyAuth
Execution
synchronous

Request body application/jsonrequired

  • sellAmountobjectrequired
    What you sell. No more decimals than its currency has (and never more than 8).
    • valuestringrequired

      Example: 149.90

      pattern ^-?\d{1,18}(\.\d{1,18})?$

    • currencystringrequired
      ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

      Example: EUR

      pattern ^[A-Z0-9]{3,10}$

  • buyCurrencystringrequired
    ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

    Example: EUR

    pattern ^[A-Z0-9]{3,10}$

  • sellAccountIdstring
    Optional. Left out, your default account in the sell currency (isDefault) — or the only one.

    Example: acc_AAAAAAAAAAc

    pattern ^acc_[A-Za-z0-9_-]{11}$

  • buyAccountIdstring
    Optional. Left out, your default account in the buy currency (isDefault) — or the only one.

    Example: acc_AAAAAAAAAAc

    pattern ^acc_[A-Za-z0-9_-]{11}$

Responses

The quote.

Headers

  • X-Request-Idstring
    The request's trace id: the same value a problem body carries as traceId. Quote it when you contact support. A replayed response (Idempotent-Replayed: true) carries the replay's own; its body keeps the original request's traceId.
  • RateLimit-Limitinteger
  • RateLimit-Remaininginteger
  • RateLimit-Resetinteger
    Seconds until the window resets.

Schema application/json

  • idstringrequired
    Send as quoteId to POST /fx/exchanges. Single use.
  • sellMoneyrequired
    Decimal amount as a string — never a float, never minor units. An amount you send may carry no more decimal places than its currency has (and never more than 8); trailing zeros do not count, so 10.100 EUR is fine and 10.123 EUR is 400 validation_failed on amount.value. A value sent as a JSON number rather than a string is 400 validation_failed too. An amount the API returns is written with exactly as many decimal places as its currency has (at most 8): 10.10 EUR, never 10.1.
    • valuestringrequired

      Example: 149.90

      pattern ^-?\d{1,18}(\.\d{1,18})?$

    • currencystringrequired
      ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

      Example: EUR

      pattern ^[A-Z0-9]{3,10}$

  • buyMoneyrequired
    Decimal amount as a string — never a float, never minor units. An amount you send may carry no more decimal places than its currency has (and never more than 8); trailing zeros do not count, so 10.100 EUR is fine and 10.123 EUR is 400 validation_failed on amount.value. A value sent as a JSON number rather than a string is 400 validation_failed too. An amount the API returns is written with exactly as many decimal places as its currency has (at most 8): 10.10 EUR, never 10.1.
    • valuestringrequired

      Example: 149.90

      pattern ^-?\d{1,18}(\.\d{1,18})?$

    • currencystringrequired
      ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

      Example: EUR

      pattern ^[A-Z0-9]{3,10}$

  • ratestringrequired
    Units of the buy currency per unit of the sell currency. A string, never a float. On a fiat pair (rateLocked: true) it is the rate with your spread applied: buy = sell × rate. On a crypto pair (rateLocked: false) it is the venue's estimate with your spread applied: buy over what it is estimated to cost, which can be less than sell.

    Example: 0.8612

  • feeobjectrequired
    Charged on top of sell, in the sell currency.
    • valuestringrequired

      Example: 149.90

      pattern ^-?\d{1,18}(\.\d{1,18})?$

    • currencystringrequired
      ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

      Example: EUR

      pattern ^[A-Z0-9]{3,10}$

  • totalDebitedobjectrequired
    What leaves the sell account: sell + fee.
    • valuestringrequired

      Example: 149.90

      pattern ^-?\d{1,18}(\.\d{1,18})?$

    • currencystringrequired
      ISO 4217 code for fiat (EUR), asset ticker for crypto (USDT). Send it upper-case; a lower-case code is accepted and read upper-case.

      Example: EUR

      pattern ^[A-Z0-9]{3,10}$

  • sellAccountIdstringrequired
    Opaque account identifier. Treat as a string; never parse or construct it. One of this shape that names no account is answered as an account that is not yours: 404 not_found, or nothing on a list.

    Example: acc_AAAAAAAAAAc

    pattern ^acc_[A-Za-z0-9_-]{11}$

  • buyAccountIdstringrequired
    Opaque account identifier. Treat as a string; never parse or construct it. One of this shape that names no account is answered as an account that is not yours: 404 not_found, or nothing on a list.

    Example: acc_AAAAAAAAAAc

    pattern ^acc_[A-Za-z0-9_-]{11}$

  • rateLockedbooleanrequired
    True when the rate is held until expiresAt. False when it is not: crypto pairs fill at the venue's price, and rate is a guide.
  • expiresAtstring (date-time)required
    Until when the quote can be executed — about 30 seconds after it is made for a fiat pair, up to 5 minutes for a crypto pair.

    Example: 2026-09-18T10:15:30.123Z