Create an order
const url = 'https://api.hyperstream.dev/v3/orders';const options = { method: 'POST', headers: { 'API-Revision': '0', 'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json' }, body: '{"option":"opt_eyJ2IjoxLC4uLn0","accounts":{"payer":{"chain":"eip155:42161","address":"0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"},"recipient":{"chain":"eip155:8453","address":"0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hyperstream.dev/v3/orders \ --header 'API-Revision: 0' \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "option": "opt_eyJ2IjoxLC4uLn0", "accounts": { "payer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "recipient": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" } } }'Creates the order an option describes, for the accounts you give, and returns it with the steps that fund it.
- EVM source:
payeris required and must send the deposit.refundTodefaults topayer. - Non-EVM source: no
payer, since anyone may send the transfer.refundTois required.
Zcash funding, recipients and refund accounts require transparent addresses. Unified and Sapling addresses are rejected. ZEC pairs cannot cancel early.
When early cancellation is available, refundTo signs cancels: an account one key controls, or on EVM a contract wallet
that signs through EIP-1271, such as a Safe. Not an exchange address.
An option makes one order, so an identical repeat is always safe: send one after a lost answer, or after an error whose
recovery is retry. If the first one created the order, you get it back, even after the quote expired: 200, or 201
when this request finished creating it. If creation reserved the option but did not finish, an identical repeat resumes
with the same IDs and original deadlines, even after quote expiry, while the original funding window remains open.
If no reservation was made, the quote must still be valid. 410 QUOTE_EXPIRED means the quote expired before reservation
or the reserved order’s funding window closed before creation finished. A repeat is identical when it names the same accounts, however it writes their
addresses, and leaving refundTo out is the same as giving its default; a Stellar M… address and its G… account
are different accounts. The same option with other accounts is a
409 QUOTE_USED once the option is reserved, whether creation is unfinished or completed: request a new quote.
Unfinished creations are hidden from order reads and lists; completed orders can be listed with GET /orders?account=….
A request that arrives while the first is still running gets 409 IDEMPOTENCY_IN_PROGRESS: send it
again after retryAfterSeconds.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The revision of v3 the request is built against. Without it, the revision that was current when your integration was set up. An unknown value is a 400 VALIDATION_FAILED naming API-Revision.
Request Bodyrequired
Section titled “Request Bodyrequired”object
An option id from /v3/quote, unchanged.
object
Receives the payout, on the destination chain.
object
CAIP-2 id of the account’s chain.
Example
{ "option": "opt_eyJ2IjoxLC4uLn0", "accounts": { "payer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "recipient": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" } }}Responses
Section titled “Responses”The order a repeat of the request made, as it is now.
One order in the chain-neutral model.
object
ord_… for a v3 order; the hex protocolId for an order built through /v2.
Keccak256(depositor, nonce): the id /v2 and the chain use.
Rises with every change to the order. Of two reads, keep the one with the higher version: two with the same version show the same order.
RFC 3339 UTC time.
RFC 3339 UTC time.
confirming: the deposit is seen and the order is publishing. trading: published, solvers can fill it. settling: trading ended. delivering: the hub has settled, and a leg can still be on its way. done: every leg delivered. expired: the order didn’t publish by fillBy, and routine polling can stop; a deposit that came for it shows as the NOT_PUBLISHED notice, and Khalani refunds it by hand. Once refunded, the order shows the refund in summary.refund, delivering and then done, or straight to done if delivery is already confirmed.
object
What Khalani is handling, to tell the user. Nothing for the user or the integrator to do.
object
Open list, e.g. DELIVERY_STUCK.
object
What the recipient is paid. Show it once its amount is above zero.
object
pending until the hub settles, in_flight while the leg is on its way, completed once it lands.
What comes back to refundTo. Show it once its amount is above zero.
object
pending until the hub settles, in_flight while the leg is on its way, completed once it lands.
object
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
CAIP-19 asset id.
CAIP-2 chain id.
The deadline the order is signed with.
How to fund the order. Steps stay pending until the order shows the deposit or publishes, so a step still listed may have been sent: send one again only if your own transaction failed.
object
What the step does: approve_reset clears a leftover allowance, approve sets the allowance, deposit makes the deposit and transfer pays a TRON, Stellar or Solana deposit address.
signature is reserved.
closed: funding closed at fundBy before the deposit showed, or Khalani couldn’t take a TRON, Stellar or Solana transfer (NOT_PUBLISHED). refresh_required and submitted are reserved.
CAIP-2 chain id.
Open list: payer, or anyone.
object
object
The payer: send the call from this account. A deposit from any other isn’t credited to the order and waits for a manual refund.
Wei sent with the call. A deposit’s is the relay fee when the order was created, plus the amount for a native coin: if the fee rises before it lands, it reverts.
Send the call with this gas limit.
object
For Solana, this is the wallet owner: derive the owner’s ATA for the asset’s mint under the standard SPL Token program, create it idempotently if absent (sender pays rent), and send one exact payment without memo, split or top-up. For Zcash, pay the exact amount in one transparent output, with no memo or OP_RETURN. Otherwise pay exactly this address, with no memo. A Stellar deposit address is a muxed M… address: a payment to its G… account, or one with a memo, is not credited.
object
CAIP-2 chain id.
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
object
object
CAIP-2 chain id.
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
CAIP-2 chain id.
detected and dropped are reserved.
RFC 3339 UTC time.
object
The solved intent.
When the hub solved it, or, when the hub gave no time, when Khalani saw it.
object
return is reserved.
The last three are reserved.
object
CAIP-2 chain id.
object
object
CAIP-2 chain id.
RFC 3339 UTC time.
Cancel requests made through this API: at most one per order.
object
pending until the order stops trading: then accepted if it stopped short of a full fill, or rejected, with ORDER_OVERTAKEN, if a full fill got there first.
object
CAIP-2 chain id.
RFC 3339 UTC time.
object
object
object
What signer signs with its wallet’s sign-message call, for POST /orders/{id}/actions: personal_sign for eip191_cancel_proof, TronWeb’s signMessageV2 for tip191_cancel_proof, and a SEP-53 call such as Freighter’s signMessage for sep53_cancel_proof. The same on every read.
Example
{ "id": "ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8", "protocolId": "0x35dc8d390877c71baacadb4001eea0055804cfc306f599fbfc97c1d69d64d30a", "version": 1, "createdAt": "2026-08-17T20:48:20Z", "updatedAt": "2026-08-17T20:48:20Z", "status": "awaiting_funding", "outcome": null, "liveAt": null, "summary": { "actionNeeded": { "kind": "send_transaction", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "steps": [ "approve", "deposit" ] }, "notices": [], "payout": { "amount": null, "status": "pending", "tx": null, "withoutTx": null }, "refund": { "amount": null, "status": "pending", "tx": null, "withoutTx": null }, "pollAfterSeconds": 15 }, "terms": { "send": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" }, "receiveAsset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "minRate": "0.99620254", "slippageBps": 0, "fundBy": "2026-08-17T21:28:20Z", "fillBy": "2026-08-17T21:48:20Z", "receive": { "asset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "amount": "99620254" }, "receiveMin": { "asset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "amount": "99620254" }, "flatFee": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "300000" } }, "accounts": { "payer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "recipient": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" }, "refundTo": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" } }, "steps": [ { "id": "approve", "type": "transaction", "status": "pending", "chain": "eip155:42161", "actor": "payer", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "instruction": { "format": "evm_call", "payload": { "chainId": 42161, "from": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "to": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "data": "0x095ea7b300000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000005f5e100", "value": "0", "gasLimit": "100000" }, "approval": { "spender": "0x1111111111111111111111111111111111111111", "amount": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" } }, "allowance": null } }, { "id": "deposit", "type": "transaction", "status": "pending", "chain": "eip155:42161", "actor": "payer", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "instruction": { "format": "evm_call", "payload": { "chainId": 42161, "from": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "to": "0x1111111111111111111111111111111111111111", "data": "0xf3125a1f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000005f5e100", "value": "100000000000000", "gasLimit": "250000" }, "approval": null, "allowance": { "spender": "0x1111111111111111111111111111111111111111", "amount": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" } } } } ], "receipts": [], "fills": [], "obligations": [ { "id": "payout", "kind": "payout", "status": "pending", "to": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" }, "amount": null, "evidence": [], "problem": null }, { "id": "refund", "kind": "refund", "status": "pending", "to": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "amount": null, "evidence": [], "problem": null } ], "invocations": [], "requirements": [], "actions": { "cancel": { "available": false, "reason": { "code": "NOT_LIVE", "message": "The order has not published yet", "details": null }, "signer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "proof": null } }, "charges": null}The new order, waiting for its funding steps.
One order in the chain-neutral model.
object
ord_… for a v3 order; the hex protocolId for an order built through /v2.
Keccak256(depositor, nonce): the id /v2 and the chain use.
Rises with every change to the order. Of two reads, keep the one with the higher version: two with the same version show the same order.
RFC 3339 UTC time.
RFC 3339 UTC time.
confirming: the deposit is seen and the order is publishing. trading: published, solvers can fill it. settling: trading ended. delivering: the hub has settled, and a leg can still be on its way. done: every leg delivered. expired: the order didn’t publish by fillBy, and routine polling can stop; a deposit that came for it shows as the NOT_PUBLISHED notice, and Khalani refunds it by hand. Once refunded, the order shows the refund in summary.refund, delivering and then done, or straight to done if delivery is already confirmed.
object
What Khalani is handling, to tell the user. Nothing for the user or the integrator to do.
object
Open list, e.g. DELIVERY_STUCK.
object
What the recipient is paid. Show it once its amount is above zero.
object
pending until the hub settles, in_flight while the leg is on its way, completed once it lands.
What comes back to refundTo. Show it once its amount is above zero.
object
pending until the hub settles, in_flight while the leg is on its way, completed once it lands.
object
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
CAIP-19 asset id.
CAIP-2 chain id.
The deadline the order is signed with.
How to fund the order. Steps stay pending until the order shows the deposit or publishes, so a step still listed may have been sent: send one again only if your own transaction failed.
object
What the step does: approve_reset clears a leftover allowance, approve sets the allowance, deposit makes the deposit and transfer pays a TRON, Stellar or Solana deposit address.
signature is reserved.
closed: funding closed at fundBy before the deposit showed, or Khalani couldn’t take a TRON, Stellar or Solana transfer (NOT_PUBLISHED). refresh_required and submitted are reserved.
CAIP-2 chain id.
Open list: payer, or anyone.
object
object
The payer: send the call from this account. A deposit from any other isn’t credited to the order and waits for a manual refund.
Wei sent with the call. A deposit’s is the relay fee when the order was created, plus the amount for a native coin: if the fee rises before it lands, it reverts.
Send the call with this gas limit.
object
For Solana, this is the wallet owner: derive the owner’s ATA for the asset’s mint under the standard SPL Token program, create it idempotently if absent (sender pays rent), and send one exact payment without memo, split or top-up. For Zcash, pay the exact amount in one transparent output, with no memo or OP_RETURN. Otherwise pay exactly this address, with no memo. A Stellar deposit address is a muxed M… address: a payment to its G… account, or one with a memo, is not credited.
object
CAIP-2 chain id.
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
object
object
CAIP-2 chain id.
object
object
CAIP-19 asset id.
CAIP-2 chain id.
Base units.
object
CAIP-2 chain id.
detected and dropped are reserved.
RFC 3339 UTC time.
object
The solved intent.
When the hub solved it, or, when the hub gave no time, when Khalani saw it.
object
return is reserved.
The last three are reserved.
object
CAIP-2 chain id.
object
object
CAIP-2 chain id.
RFC 3339 UTC time.
Cancel requests made through this API: at most one per order.
object
pending until the order stops trading: then accepted if it stopped short of a full fill, or rejected, with ORDER_OVERTAKEN, if a full fill got there first.
object
CAIP-2 chain id.
RFC 3339 UTC time.
object
object
object
What signer signs with its wallet’s sign-message call, for POST /orders/{id}/actions: personal_sign for eip191_cancel_proof, TronWeb’s signMessageV2 for tip191_cancel_proof, and a SEP-53 call such as Freighter’s signMessage for sep53_cancel_proof. The same on every read.
Example
{ "id": "ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8", "protocolId": "0x35dc8d390877c71baacadb4001eea0055804cfc306f599fbfc97c1d69d64d30a", "version": 1, "createdAt": "2026-08-17T20:48:20Z", "updatedAt": "2026-08-17T20:48:20Z", "status": "awaiting_funding", "outcome": null, "liveAt": null, "summary": { "actionNeeded": { "kind": "send_transaction", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "steps": [ "approve", "deposit" ] }, "notices": [], "payout": { "amount": null, "status": "pending", "tx": null, "withoutTx": null }, "refund": { "amount": null, "status": "pending", "tx": null, "withoutTx": null }, "pollAfterSeconds": 15 }, "terms": { "send": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" }, "receiveAsset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "minRate": "0.99620254", "slippageBps": 0, "fundBy": "2026-08-17T21:28:20Z", "fillBy": "2026-08-17T21:48:20Z", "receive": { "asset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "amount": "99620254" }, "receiveMin": { "asset": { "id": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "chain": "eip155:8453", "symbol": "USDC", "decimals": 6 }, "amount": "99620254" }, "flatFee": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "300000" } }, "accounts": { "payer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "recipient": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" }, "refundTo": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" } }, "steps": [ { "id": "approve", "type": "transaction", "status": "pending", "chain": "eip155:42161", "actor": "payer", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "instruction": { "format": "evm_call", "payload": { "chainId": 42161, "from": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "to": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "data": "0x095ea7b300000000000000000000000011111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000005f5e100", "value": "0", "gasLimit": "100000" }, "approval": { "spender": "0x1111111111111111111111111111111111111111", "amount": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" } }, "allowance": null } }, { "id": "deposit", "type": "transaction", "status": "pending", "chain": "eip155:42161", "actor": "payer", "executor": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "instruction": { "format": "evm_call", "payload": { "chainId": 42161, "from": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4", "to": "0x1111111111111111111111111111111111111111", "data": "0xf3125a1f000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000005f5e100", "value": "100000000000000", "gasLimit": "250000" }, "approval": null, "allowance": { "spender": "0x1111111111111111111111111111111111111111", "amount": { "asset": { "id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "chain": "eip155:42161", "symbol": "USDC", "decimals": 6 }, "amount": "100000000" } } } } ], "receipts": [], "fills": [], "obligations": [ { "id": "payout", "kind": "payout", "status": "pending", "to": { "chain": "eip155:8453", "address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2" }, "amount": null, "evidence": [], "problem": null }, { "id": "refund", "kind": "refund", "status": "pending", "to": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "amount": null, "evidence": [], "problem": null } ], "invocations": [], "requirements": [], "actions": { "cancel": { "available": false, "reason": { "code": "NOT_LIVE", "message": "The order has not published yet", "details": null }, "signer": { "chain": "eip155:42161", "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4" }, "proof": null } }, "charges": null}VALIDATION_FAILED, OPTION_INVALID (not issued to you, or changed), ACCOUNT_INVALID, ROLE_MISSING or UNSUPPORTED_PAIR (the pair stopped trading since the quote: request a new quote).
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "ROLE_MISSING", "message": "payer is required for an EVM source", "details": null, "field": "accounts.payer", "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}UNAUTHENTICATED: the X-API-Key header is missing.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "UNAUTHENTICATED", "message": "X-API-Key required", "details": null, "field": null, "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}FORBIDDEN: the key is unknown or inactive, or your terms can’t be used. It is about your account: don’t retry.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "FORBIDDEN", "message": "Unknown or inactive integrator", "details": null, "field": null, "recovery": "contact_support", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}QUOTE_USED (the option is reserved for other accounts, whether creation is unfinished or completed: request a new quote), REQUOTE_REQUIRED (the fees or the order’s deadlines changed since the quote) or IDEMPOTENCY_IN_PROGRESS (send it again after retryAfterSeconds).
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "QUOTE_USED", "message": "This quote is reserved for other accounts; request a new quote", "details": null, "field": "option", "recovery": "requote", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}QUOTE_EXPIRED: request a new quote.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "QUOTE_EXPIRED", "message": "The quote has expired; request a new one", "details": null, "field": "option", "recovery": "requote", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}AMOUNT_TOO_SMALL, ACCOUNT_NOT_ACTIVATED (a TRON account that never received TRX or a token) or ACCOUNT_NOT_READY (a Stellar account that can’t take the payment, or an EVM account whose code rejects a plain transfer of the native coin).
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "ACCOUNT_NOT_ACTIVATED", "message": "Not an activated TRON account: it must receive TRX or a token once before it can be paid", "details": null, "field": "accounts.recipient", "recovery": "fix_request", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}RATE_LIMITED: too many requests from your IP, or, on quote and create-order, from your integrator. Retry after retryAfterSeconds.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "RATE_LIMITED", "message": "Too many requests, retry later", "details": null, "field": null, "recovery": "retry", "retryAfterSeconds": 60, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}Headers
Section titled “Headers”Seconds to wait.
INTERNAL: an unexpected failure that sending the request again won’t fix. Contact Khalani with requestId.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "INTERNAL", "message": "Internal error", "details": null, "field": null, "recovery": "contact_support", "retryAfterSeconds": null, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}MAINTENANCE: order creation is paused. UPSTREAM_UNAVAILABLE, PRICE_UNAVAILABLE, NO_CAPACITY: a dependency, our storage or the market can’t serve the request now. Retry later.
Every v3 error, whatever the route.
object
Open list: handle a code you don’t know by its recovery.
VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.
object
object
The field at fault, as a dotted path.
Open list.
AMOUNT_TOO_SMALL’s and AMOUNT_TOO_LARGE’s details: the send.amount range that would quote.
object
ACTION_UNAVAILABLE’s details: why the action can’t run.
object
Open list: actions.cancel.reason.code, or ORDER_OVERTAKEN.
object
The request field at fault, as a dotted path.
What to do next, whatever the code: fix_request (change the request), requote (get a new quote), retry (send the same request again), read_order (read the order to see where it stands), restart_sync (sync again with no cursor) or contact_support (with requestId).
Example
{ "code": "MAINTENANCE", "message": "Order creation is paused for maintenance", "details": null, "field": null, "recovery": "retry", "retryAfterSeconds": 300, "requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"}Headers
Section titled “Headers”Seconds to wait.