Skip to content
API reference

List or sync your orders

GET
/v3/orders
curl --request GET \
--url 'https://api.hyperstream.dev/v3/orders?sort=updatedAt&cursor=1041' \
--header 'API-Revision: 0' \
--header 'X-API-Key: <X-API-Key>'

Your orders, in pages of up to 50, with the filters you pass. Repeat status to list orders in any of several.

  • sort=createdAt, the default: newest first. cursor is null after the last page. Stop only then: a page before it can come back empty.
  • sort=updatedAt: sync. Each page holds the orders that changed after the cursor, each once and in its current state, oldest change first. Keep the last cursor. You are caught up once a page comes back empty with the cursor you sent: ask again later. An empty page with a new cursor means ask again now. A cursor that can no longer be used answers 410 CURSOR_EXPIRED: sync again with no cursor, which returns every order in its current state. A cursor doesn’t expire with time. status can’t be used here, since an order that left the status would never be listed again.

Keep the sort and filters unchanged while paging.

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.

status
Any of:

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

Only orders in this status, or in any of the statuses given by repeating it. Not with sort=updatedAt.

account
string
>= 1 characters <= 320 characters

CAIP-10 account. Only orders in which it is the payer, the recipient or the refund account.

sendAsset
string
>= 1 characters <= 256 characters

CAIP-19 id. Only orders that send this asset.

receiveAsset
string
>= 1 characters <= 256 characters

CAIP-19 id. Only orders that receive this asset.

sort
string
default: createdAt
Allowed values: createdAt updatedAt

createdAt: newest first. updatedAt: oldest change first, each order once, in its current state: sync.

Example

updatedAt
cursor
string
>= 1 characters <= 128 characters

cursor from the previous page, with the same sort and filters.

Example

1041

A page of orders.

Media typeapplication/json

The caller’s orders, newest first or in order of last change.

object
orders
required
Array<object>

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+$/
cursor
required

Pass it back for the next page. Newest first, it is null after the last page. In order of last change it is never null: you are caught up once a page comes back empty with the cursor you sent, so keep it and ask again later. An empty page with a new cursor means ask again now.

string | null

Example

{
"orders": [
{
"id": "ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8",
"protocolId": "0x35dc8d390877c71baacadb4001eea0055804cfc306f599fbfc97c1d69d64d30a",
"version": 3,
"createdAt": "2026-08-17T20:48:20Z",
"updatedAt": "2026-08-17T20:49:05Z",
"status": "trading",
"outcome": null,
"liveAt": "2026-08-17T20:49:05Z",
"summary": {
"actionNeeded": null,
"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": "completed",
"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": "completed",
"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": [
{
"id": "deposit_receipt",
"tx": {
"chain": "eip155:42161",
"hash": "0xa37fc5f866fdd03a6443129b95f5a328eba3a36b0c4d68c467849e846775a04d"
},
"amount": {
"asset": {
"id": "eip155:42161/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"chain": "eip155:42161",
"symbol": "USDC",
"decimals": 6
},
"amount": "100000000"
},
"from": [
{
"chain": "eip155:42161",
"address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"
}
],
"observation": "final",
"at": "2026-08-17T20:48:40Z"
}
],
"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": true,
"reason": null,
"signer": {
"chain": "eip155:42161",
"address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"
},
"proof": {
"format": "eip191_cancel_proof",
"message": "Cancel Khalani order ord_3f9a1c2b7d4e5f60718293a4b5c6d7e8\nChain: eip155:42161\nRefund to: 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4"
}
}
},
"charges": null
}
],
"cursor": "1042"
}

VALIDATION_FAILED (including status with sort=updatedAt, a cursor from the other sort, or a query parameter the route doesn’t take), ACCOUNT_INVALID or UNSUPPORTED_ASSET.

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": "VALIDATION_FAILED",
"message": "status can't filter a list in order of last change",
"details": null,
"field": "status",
"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"
}

CURSOR_EXPIRED: a cursor the API can no longer use, such as one from another environment or from before a restore. Sync again with no cursor, which returns every order in its current state, and continue from the cursor it gives.

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": "CURSOR_EXPIRED",
"message": "This cursor can no longer be used; sync again with no cursor",
"details": null,
"field": "cursor",
"recovery": "restart_sync",
"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"
}

UPSTREAM_UNAVAILABLE: our storage is briefly unavailable. Send the same request 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": "UPSTREAM_UNAVAILABLE",
"message": "Storage is briefly unavailable; send the same request again",
"details": null,
"field": null,
"recovery": "retry",
"retryAfterSeconds": 1,
"requestId": "6f1d2c3b-4a5e-4f60-8718-293a4b5c6d7e"
}
Retry-After
integer

Seconds to wait.