Skip to content
API reference

Create an order

POST
/v3/orders
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: payer is required and must send the deposit. refundTo defaults to payer.
  • Non-EVM source: no payer, since anyone may send the transfer. refundTo is 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.

API-Revision
string
Allowed values: 0

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.

Media typeapplication/json
object
option
required

An option id from /v3/quote, unchanged.

string
>= 1 characters <= 4096 characters
accounts
required
object
payer
Any of:
object
chain
required

CAIP-2 id of the account’s chain.

string
>= 1 characters <= 64 characters
address
required
string
>= 1 characters <= 256 characters
recipient
required

Receives the payout, on the destination chain.

object
chain
required

CAIP-2 id of the account’s chain.

string
>= 1 characters <= 64 characters
address
required
string
>= 1 characters <= 256 characters
refundTo
Any of:
object
chain
required

CAIP-2 id of the account’s chain.

string
>= 1 characters <= 64 characters
address
required
string
>= 1 characters <= 256 characters

Example

{
"option": "opt_eyJ2IjoxLC4uLn0",
"accounts": {
"payer": {
"chain": "eip155:42161",
"address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"
},
"recipient": {
"chain": "eip155:8453",
"address": "0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2"
}
}
}

The order a repeat of the request made, as it is now.

Media typeapplication/json

One order in the chain-neutral model.

object
id
required

ord_… for a v3 order; the hex protocolId for an order built through /v2.

string
protocolId
required

Keccak256(depositor, nonce): the id /v2 and the chain use.

string
/^0x[0-9a-f]{64}$/
version
required

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.

integer
createdAt
required

RFC 3339 UTC time.

string
updatedAt
required

RFC 3339 UTC time.

string
status
required

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.

string
Allowed values: awaiting_funding confirming trading settling delivering done expired
outcome
required
Any of:
string
Allowed values: none partial full
liveAt
required
Any of:

RFC 3339 UTC time.

string
summary
required
object
actionNeeded
required
Any of:
object
kind
required
Any of:
string
Allowed values: send_transaction send_transfer sign
executor
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
steps
required

The ids of the steps to run now, in order.

Array<string>
notices
required

What Khalani is handling, to tell the user. Nothing for the user or the integrator to do.

Array<object>
object
code
required

Open list, e.g. DELIVERY_STUCK.

string
params
required
object
key
additional properties
payout
required

What the recipient is paid. Show it once its amount is above zero.

object
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
status
required

pending until the hub settles, in_flight while the leg is on its way, completed once it lands.

string
Allowed values: pending in_flight completed
tx
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
withoutTx
required
Any of:
Any of:
string
Allowed values: sub_unit_amount tx_unknown
refund
required

What comes back to refundTo. Show it once its amount is above zero.

object
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
status
required

pending until the hub settles, in_flight while the leg is on its way, completed once it lands.

string
Allowed values: pending in_flight completed
tx
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
withoutTx
required
Any of:
Any of:
string
Allowed values: sub_unit_amount tx_unknown
pollAfterSeconds
required
Any of:
integer
> 0
terms
required
object
send
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receiveAsset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
minRate
required
Any of:

The least a full fill pays per token sent, in whole tokens, fees included.

string
/^\d+(\.\d+)?$/
slippageBps
required
integer
fundBy
required
Any of:

RFC 3339 UTC time.

string
fillBy
required

The deadline the order is signed with.

string
receive
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receiveMin
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
flatFee
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
accounts
required
object
payer
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
recipient
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
refundTo
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
steps
required

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.

Array<object>
object
id
required

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.

string
Allowed values: approve_reset approve deposit transfer
type
required

signature is reserved.

string
Allowed values: transfer transaction signature
status
required

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.

string
Allowed values: pending refresh_required submitted completed closed
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
actor
required

Open list: payer, or anyone.

string
executor
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
instruction
required
Any of:
object
format
required
string
Allowed value: evm_call
payload
required
object
chainId
required
integer
from
required

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.

string
to
required
string
data
required
string
value
required

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.

string
/^\d+$/
gasLimit
required

Send the call with this gas limit.

string
/^\d+$/
approval
required
Any of:
object
spender
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
allowance
required
Any of:
object
spender
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receipts
required
Array<object>
object
id
required
string
tx
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
from
required
Array<object>
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
observation
required

detected and dropped are reserved.

string
Allowed values: detected included final dropped
at
required

RFC 3339 UTC time.

string
fills
required
Array<object>
object
id
required

The solved intent.

string
at
required

When the hub solved it, or, when the hub gave no time, when Khalani saw it.

string
send
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receive
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
obligations
required
Array<object>
object
id
required
string
kind
required

return is reserved.

string
Allowed values: payout refund return
status
required

The last three are reserved.

string
Allowed values: pending in_flight completed superseded written_off voided
to
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
evidence
required
Array<object>
object
tx
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
at
required

RFC 3339 UTC time.

string
problem
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
invocations
required

Cancel requests made through this API: at most one per order.

Array<object>
object
id
required
string
kind
required
string
Allowed values: cancel
status
required

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.

string
Allowed values: pending accepted rejected
signer
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
at
required

RFC 3339 UTC time.

string
problem
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
requirements
required
Array<object>
object
id
required
string
code
required

Open list.

string
message
required
string
blocks
required

publication, settlement and delivery are sent; the others are reserved.

string
Allowed values: funding publication settlement delivery reconciliation closure
actionBy
required

Open list, e.g. khalani.

string
details
required
Any of:
object
key
additional properties
actions
required
object
cancel
required
object
available
required
boolean
reason
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
signer
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
proof
required
Any of:
object
format
required
Any of:
string
Allowed values: eip191_cancel_proof tip191_cancel_proof sep53_cancel_proof
message
required

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.

string
charges
required
Any of:
object
protocolFee
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/

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.

Media typeapplication/json

One order in the chain-neutral model.

object
id
required

ord_… for a v3 order; the hex protocolId for an order built through /v2.

string
protocolId
required

Keccak256(depositor, nonce): the id /v2 and the chain use.

string
/^0x[0-9a-f]{64}$/
version
required

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.

integer
createdAt
required

RFC 3339 UTC time.

string
updatedAt
required

RFC 3339 UTC time.

string
status
required

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.

string
Allowed values: awaiting_funding confirming trading settling delivering done expired
outcome
required
Any of:
string
Allowed values: none partial full
liveAt
required
Any of:

RFC 3339 UTC time.

string
summary
required
object
actionNeeded
required
Any of:
object
kind
required
Any of:
string
Allowed values: send_transaction send_transfer sign
executor
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
steps
required

The ids of the steps to run now, in order.

Array<string>
notices
required

What Khalani is handling, to tell the user. Nothing for the user or the integrator to do.

Array<object>
object
code
required

Open list, e.g. DELIVERY_STUCK.

string
params
required
object
key
additional properties
payout
required

What the recipient is paid. Show it once its amount is above zero.

object
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
status
required

pending until the hub settles, in_flight while the leg is on its way, completed once it lands.

string
Allowed values: pending in_flight completed
tx
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
withoutTx
required
Any of:
Any of:
string
Allowed values: sub_unit_amount tx_unknown
refund
required

What comes back to refundTo. Show it once its amount is above zero.

object
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
status
required

pending until the hub settles, in_flight while the leg is on its way, completed once it lands.

string
Allowed values: pending in_flight completed
tx
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
withoutTx
required
Any of:
Any of:
string
Allowed values: sub_unit_amount tx_unknown
pollAfterSeconds
required
Any of:
integer
> 0
terms
required
object
send
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receiveAsset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
minRate
required
Any of:

The least a full fill pays per token sent, in whole tokens, fees included.

string
/^\d+(\.\d+)?$/
slippageBps
required
integer
fundBy
required
Any of:

RFC 3339 UTC time.

string
fillBy
required

The deadline the order is signed with.

string
receive
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receiveMin
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
flatFee
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
accounts
required
object
payer
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
recipient
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
refundTo
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
steps
required

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.

Array<object>
object
id
required

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.

string
Allowed values: approve_reset approve deposit transfer
type
required

signature is reserved.

string
Allowed values: transfer transaction signature
status
required

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.

string
Allowed values: pending refresh_required submitted completed closed
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
actor
required

Open list: payer, or anyone.

string
executor
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
instruction
required
Any of:
object
format
required
string
Allowed value: evm_call
payload
required
object
chainId
required
integer
from
required

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.

string
to
required
string
data
required
string
value
required

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.

string
/^\d+$/
gasLimit
required

Send the call with this gas limit.

string
/^\d+$/
approval
required
Any of:
object
spender
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
allowance
required
Any of:
object
spender
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receipts
required
Array<object>
object
id
required
string
tx
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
amount
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
from
required
Array<object>
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
observation
required

detected and dropped are reserved.

string
Allowed values: detected included final dropped
at
required

RFC 3339 UTC time.

string
fills
required
Array<object>
object
id
required

The solved intent.

string
at
required

When the hub solved it, or, when the hub gave no time, when Khalani saw it.

string
send
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
receive
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
obligations
required
Array<object>
object
id
required
string
kind
required

return is reserved.

string
Allowed values: payout refund return
status
required

The last three are reserved.

string
Allowed values: pending in_flight completed superseded written_off voided
to
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
amount
required
Any of:
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/
evidence
required
Array<object>
object
tx
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
hash
required
string
at
required

RFC 3339 UTC time.

string
problem
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
invocations
required

Cancel requests made through this API: at most one per order.

Array<object>
object
id
required
string
kind
required
string
Allowed values: cancel
status
required

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.

string
Allowed values: pending accepted rejected
signer
required
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
at
required

RFC 3339 UTC time.

string
problem
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
requirements
required
Array<object>
object
id
required
string
code
required

Open list.

string
message
required
string
blocks
required

publication, settlement and delivery are sent; the others are reserved.

string
Allowed values: funding publication settlement delivery reconciliation closure
actionBy
required

Open list, e.g. khalani.

string
details
required
Any of:
object
key
additional properties
actions
required
object
cancel
required
object
available
required
boolean
reason
required
Any of:
object
code
required

Open list.

string
message
required
string
details
required
Any of:
object
key
additional properties
signer
required
Any of:
object
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
address
required
string
proof
required
Any of:
object
format
required
Any of:
string
Allowed values: eip191_cancel_proof tip191_cancel_proof sep53_cancel_proof
message
required

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.

string
charges
required
Any of:
object
protocolFee
required
object
asset
required
object
id
required

CAIP-19 asset id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}$/
chain
required

CAIP-2 chain id.

string
/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$/
symbol
required
string
decimals
required
integer
amount
required

Base units.

string
/^\d+$/

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).

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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).

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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).

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

Example

{
"code": "RATE_LIMITED",
"message": "Too many requests, retry later",
"details": null,
"field": null,
"recovery": "retry",
"retryAfterSeconds": 60,
"requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"
}
Retry-After
integer

Seconds to wait.

INTERNAL: an unexpected failure that sending the request again won’t fix. Contact Khalani with requestId.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

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.

Media typeapplication/json

Every v3 error, whatever the route.

object
code
required

Open list: handle a code you don’t know by its recovery.

string
message
required
string
details
required
Any of:
Any of:

VALIDATION_FAILED’s details when the request fails its schema: every field it got wrong.

object
issues
required
Array<object>
object
field
required

The field at fault, as a dotted path.

string
message
required
string
code
required

Open list.

string
field
required

The request field at fault, as a dotted path.

string | null
recovery
required

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).

string
Allowed values: fix_request requote retry read_order restart_sync contact_support
retryAfterSeconds
required
Any of:
integer
requestId
required
string

Example

{
"code": "MAINTENANCE",
"message": "Order creation is paused for maintenance",
"details": null,
"field": null,
"recovery": "retry",
"retryAfterSeconds": 300,
"requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"
}
Retry-After
integer

Seconds to wait.