Explorer

Get order history

Fetch all the orders of the user, which includes the history of tokens sent and received.

GET
/api/oc/v1/orders

Authorization

AuthorizationRequiredBearer <token>

In: header

Query Parameters

pageinteger

Page number

sizeinteger

Number of items per page

intent_idstring

Intent id of the order.

intent_typestring

Intent type of the order.

statusstring

Status of the order.

curl -X GET "https://sandbox-api.okto.tech/api/oc/v1/orders?page=1&size=10&intent_id=%3Cstring%3E&intent_type=TOKEN_TRANSFER&status=SUCCESSFUL" \
  -H "Authorization: Bearer <token>"

Fetched

{
  "status": "success",
  "data": {
    "count": 1,
    "items": [
      {
        "downstream_transaction_hash": [
          "0xb30aacea6ee3883939255195172a62110b02aeb03dc590e0cd4d878995bc958b"
        ],
        "transaction_hash": [
          "0x1378f79faffa6ff1242c5d4ebdbc8fffc4bdbc44723cb63041d54fc67c671f97"
        ],
        "status": "SUCCESSFUL",
        "intent_id": "21260b29-2e72-4337-b494-c69d62dd3c92",
        "intent_type": "TOKEN_TRANSFER",
        "network_name": "OKTO_DEVNET",
        "caip_id": "eip155:24879",
        "details": {
          "amount": "164060000",
          "networkId": "eip155:137",
          "recipientWalletAddress": "0x08a51013e6db8CE4594e0F9c0D13c96772d24336",
          "tokenAddress": ""
        },
        "reason": "",
        "block_timestamp": 1738761051000
      }
    ]
  }
}