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

Errors

An error is an HTTP status with an RFC 9457 problem body (application/problem+json):

{
  "type": "https://developer.jeton.com/errors/#destination_is_self",
  "title": "Destination is self",
  "status": 400,
  "detail": "The business destination is your own business. Move money between your own accounts with an own_account destination.",
  "code": "destination_is_self",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
Field What it is
code The stable, machine-readable reason. Branch on this.
status The HTTP status, repeated.
title A short label for the code.
detail Text written for a person, about this occurrence. It can change at any time and can be absent: show it or log it, never parse it.
type A link to the code's section on this page.
traceId Quote it when you contact Jeton support. Every response also carries it as the X-Request-Id header.
errors Only on validation_failed: one entry per field.

Handling an error

The status says what kind of answer it is, the code says which one:

Status Meaning What to do
400 The request was refused: it is not valid, or a business rule did not allow it. No money moved. Fix the request, or the situation the code names, and send it again under a new Idempotency-Key: the same key replays the same refusal. request_in_progress is the exception.
401 Authentication failed. Check your signing, as Signing requests shows.
404 There is no such resource for you. Check the id.
413 The request body is larger than the API accepts. Nothing was carried out. Send a smaller body.
429 Too many requests. Nothing was carried out. Wait, then send it again, as the code's section says.
500 Something failed on our side, or the outcome is not known yet. It is never a refusal. Retry. A request that moves money is retried with the same Idempotency-Key: you get what the first attempt made, never a second movement.

Every code the API answers with today has a section on this page. Like the enums it returns, the set can grow: a new code can appear with any status. Handle a code you do not know by its status, as the table above says, and log its code and traceId.

400: refused

validation_failed

The request does not meet the schema or a field's rules. errors lists every field at fault:

"errors": [
  { "field": "merchantReference", "code": "not_empty", "message": "…" }
]

field is where the value sits in your request, by its contract name: dot-separated for nested fields (destination.iban), a query parameter by its name (limit). A key you chose yourself, such as one in destination.additionalFields, is quoted as you sent it. field is request when the fault is the request as a whole: a body that is missing, is not valid JSON or is not sent as application/json.

code is the field's own reason: for example not_empty, minimum_length, maximum_length or regular_expression. An enum value you send that the API does not know is validation_failed too, except a payment's method (payment_method_not_enabled). So is a money value sent as a JSON number rather than a string. Fix the fields and send the request again.

idempotency_key_required

A request that moves money (POST /payments, /payouts, /transfers or /fx/exchanges) came without an Idempotency-Key header. Send one: a UUID is recommended.

idempotency_key_invalid

The Idempotency-Key is too long or has characters it may not have. It must be 1–255 printable ASCII characters, without spaces.

idempotency_key_reused

The key was used before for a different request: another method, path or body. A key keeps answering for the first request it was sent with, however long ago. Send a different request under a new key.

request_in_progress

The first request sent with this key has not finished yet. Wait for Retry-After (one second), then retry with the same key and the same request.

request_not_executed

A payout or transfer request was left unanswered and not retried for 15 minutes, and the platform settled it as never carried out. Nothing moved, and its merchantReference is free again. Every retry under that key gets this answer, so send the request again under a new key.

duplicate_merchant_reference

The merchantReference is already taken, and the request came under a new Idempotency-Key. A payment takes its reference for good, and so does an exchange once it executes, even one that fails. A payout or a transfer takes it while the movement holds it: a refused one frees it, as does an exchange refused while it is still being priced.

If you are retrying an earlier request, retry it with its original Idempotency-Key. To see what holds the reference, list with ?merchantReference= (GET /payments, GET /payouts, GET /transfers).

insufficient_funds

The account to debit does not have enough balance for this movement. Add funds, then send the request again. A refused payout or transfer frees its merchantReference. An exchange refused while it executes stays failed and keeps it, so the new attempt needs a new reference as well as a new key; one refused while it is still being priced leaves it free.

limit_exceeded

The movement would go over a limit. detail describes which. Send it again once the limit's period has passed, or send a smaller amount.

amount_below_minimum

The amount is below the minimum for this movement, or for this currency pair. Send a larger amount.

amount_below_fee

The amount does not cover the fee of this movement: nothing would be left to send. Send a larger amount.

fee_changed

The fee changed between pricing the movement and carrying it out, and nothing moved. Send the request again under a new Idempotency-Key; it is priced afresh.

temporarily_refused

The platform cannot carry out this movement right now, for a reason on its side that does not last, and nothing moved. Send the request again later under a new Idempotency-Key. A refused payout or transfer frees its merchantReference. An exchange refused while it executes stays failed and keeps it, so the new attempt needs a new reference as well as a new key; one refused while it is still being priced leaves it free. Unlike temporarily_unavailable, this is a refusal: no retry under the same key can go through.

declined

The platform declined the operation. The answer does not say why, and sending the same request again will not change it. If you think it is wrong, contact Jeton support with the traceId.

no_account_for_currency

You hold no account in the currency the request needs: for a payment, an account in its currency to credit; for a payout, transfer or exchange that does not name its source account, an account in the currency to debit. GET /accounts lists your accounts.

merchant_not_active

Your merchant account is not in a state that allows it to take payments or move money, or it is barred from this kind of movement. Contact Jeton support.

unsupported_currency

The currency, or the currency pair, is not supported for this operation.

payment_method_not_enabled

The payment's method is not enabled for you, or is not a method the API knows. GET /payment-methods lists the methods you can use.

payment_not_payable

The sandbox simulator could not pay the payment: its checkout has expired, it is already paid, or it is being paid.

payout_rail_unavailable

No payout rail can reach this bank beneficiary for you in this currency, or the instant route does not serve it. POST /payouts/requirements tells you before you pay.

beneficiary_country_required

The bank account of a bank_account payout is an account number, not an IBAN, so its country cannot be derived from it. Name destination.country.

iban_required_for_country

Payouts to this country in this currency need an IBAN; an account number cannot be paid there.

account_number_not_supported

This country cannot be paid to an account number in this currency. POST /payouts/requirements tells you what it takes.

payout_recipient_not_found

The individual named in a jeton_account payout did not resolve or cannot receive it: no such user, no active account in the payout currency, not an individual, or a user who cannot be paid. These are one answer on purpose. A business on Jeton is paid with a transfer (POST /transfers).

payout_network_unavailable

The network of a crypto_wallet payout is not an active network of the asset. GET /accounts/{accountId} lists the networks of a crypto account.

payout_network_required

The asset of a crypto_wallet payout is active on more than one network, and the payout does not name one. Name the network: some networks share an address format, and money sent on the wrong one is lost.

payout_invalid_wallet_address

The address of a crypto_wallet payout is not valid on its network. Nothing was priced or sent.

payout_failed

The payout was refused for a reason that has no code of its own. Like any refusal, it does not use up the merchantReference. If it happens again, contact Jeton support with the traceId.

fx_quote_expired

The quote has expired, has already been used, or is not known — or the exchange found it no longer holds. Get a new one with POST /fx/quotes.

fx_same_currency_not_allowed

The sell and buy currencies are the same.

fx_target_account_not_found

You hold no account in the buy currency. GET /accounts lists your accounts.

fx_account_currency_mismatch

A named account (sellAccountId or buyAccountId) is in another currency than the side it is named for.

fx_exchange_failed

The exchange, or its quote, was refused for a reason that has no code of its own. If it happens again, contact Jeton support with the traceId.

currency_mismatch

An account the request names is in another currency than the request needs: the destination account of an own_account transfer is not in the source account's currency; a payout's amount.currency is not the currency of the account it is paid from; or, for a sandbox deposit, amount.currency is not the account's currency.

destination_not_found

The business named in a business transfer did not resolve: no such business, it cannot receive, it has no account in the currency, or the owner e-mail is shared by several businesses. These are one answer on purpose. An individual on Jeton is paid with a payout (POST /payouts).

destination_is_self

The business destination is your own business. Move money between your own accounts with an own_account destination.

destination_is_source

The own_account destination is the account the transfer is debited from.

transfer_failed

The transfer was refused for a reason that has no code of its own. Like any refusal, it does not use up the merchantReference. If it happens again, contact Jeton support with the traceId.

request_refused

The request was refused for a reason that has no code of its own yet. Nothing moved. If it happens again, contact Jeton support with the traceId.

401: not authenticated

unauthorized

Every authentication failure gives this one answer: an unknown key, a bad signature, a timestamp more than 300 seconds off, a reused nonce, or an IP allowlist rejection. They look the same by design. Check the usual causes.

404: not found

not_found

There is no such resource for you. An id that does not exist and one that belongs to another merchant give the same answer, by design. A named account that is not yours is not_found too, and so is an id of an account's shape that names no account.

413: request too large

request_too_large

The request body is larger than 256 KB, the most the API accepts. It is answered before the request is authenticated, so the same answer comes whatever key and signature it carries, and nothing was carried out or recorded under its Idempotency-Key. Send a smaller body.

429: too many requests

rate_limit_exceeded

The API key went over its rate limit. Limits apply per key over a fixed one-minute window; GET /me reports yours, and every authenticated response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Wait for Retry-After seconds. Nothing was carried out and no Idempotency-Key was used up, so a request that moves money is retried with the same key.

payout_recipient_lookup_limited

Too many of this API key's payout recipients have failed to resolve lately. Payouts to jeton_account recipients are refused for the rest of the window, even to recipients that exist. Check the recipients you send, and send the payout again later under a new Idempotency-Key: the same key replays this answer.

destination_lookup_limited

Too many of this API key's business transfer destinations have failed to resolve lately. Transfers to businesses are refused for the rest of the window, even to businesses that exist. Check the destinations you send, and send the transfer again later under a new Idempotency-Key: the same key replays this answer.

500: our side

internal_error

Something failed unexpectedly, or the platform could not reach the store that guarantees a safe retry, and refused the request rather than run it without that guarantee. Retry; a request that moves money is retried with the same Idempotency-Key. For a payout or a transfer, ?merchantReference= on its list also finds it, if it was made.

temporarily_unavailable

A service the request needs could not be reached, or the outcome of a movement is not known yet. Retry; a request that moves money is retried with the same Idempotency-Key. A movement the platform refuses for now is answered temporarily_refused instead, and is sent again under a new key.