Skip to Content
Indexify
Trading

Transaction history

GET
/api/transaction_history.php

Retrieve the authenticated user's transaction history, a single transaction detail, or a transaction summary. The specific operation is selected via the action query parameter.

Authorization

ApiKeyAuth
headerX-API-KEY<token>

API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.

Query Parameters

action?string

The history action to perform.

Default"list"
Value in"list""detail""summary"
offset?integer

Pagination offset (action=list only).

Range0 <= value
Default0
limit?integer

Number of transactions to return (action=list only).

Range1 <= value <= 100
Default20
type?string

Filter by transaction type (action=list only).

Value in"buy""sell""deposit""withdrawal"
status?string

Filter by transaction status (action=list only).

Value in"PENDING""PROCESSING""SUCCESS""FAILED""PARTIAL"
stack_id?integer

Filter by stack ID (action=list only). Cannot be combined with token_address.

token_address?string

Filter by token address (action=list only). Cannot be combined with stack_id.

order_id?string

Order ID to look up (action=detail only, required for detail).

Response Body

Successful response. Shape depends on action.

application/json
  1. response
transactions?array<>
pagination?
Example Request
curl -X GET 'https://api.indexify.finance/api/transaction_history.php'
Example Response
{  "transactions": [    {      "order_id": "string",      "stack_id": 0,      "transaction_type": "buy",      "status": "PENDING",      "usdc_amount": 0,      "expected_amount": 0,      "sell_percentage": 0,      "slippage": 0,      "creator_fee": 0,      "platform_fee": 0,      "created_at": "string",      "updated_at": "string",      "parent_order_id": "string",      "retry_attempt": 0,      "partial_completion_action": "string",      "is_company_stack": true,      "asset": {        "type": "string",        "name": "string",        "slug": "string",        "symbol": "string",        "address": "string",        "image_url": "string",        "archived": true      },      "tokens": [        {}      ],      "transaction_hash": "string",      "from_wallet": "string",      "to_wallet": "string",      "block_slot": 0    }  ],  "pagination": {    "offset": 0,    "limit": 0,    "total_count": 0,    "has_more": true,    "has_previous": true,    "page": 0,    "total_pages": 0  }}