---
updatedAt: 2026-05-27T02:53:47.000Z
agentTools:
  projectIndex: https://docs.exchange.coinjar.com/llms.txt
---

# List account lines

The lines returned are sorted by date, with the most recent lines first. Responses are paginated to 100 items and the pagination cursor can be found in the response header.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Trading REST API",
    "description": "CoinJar Exchange Trading API",
    "version": "1.0.0"
  },
  "paths": {
    "/accounts/{number}/lines": {
      "get": {
        "summary": "List account lines",
        "tags": [
          "Account"
        ],
        "description": "The lines returned are sorted by date, with the most recent lines first. Responses are paginated to 100 items and the pagination cursor can be found in the response header.",
        "security": [
          {
            "bearer_auth": []
          }
        ],
        "parameters": [
          {
            "name": "number",
            "in": "path",
            "example": "STG100000652AUD",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Provide cursor from X-CJX-Cursor response header to fetch the next page, leave blank to fetch the first page.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns list of transaction lines",
            "headers": {
              "X-CJX-Cursor": {
                "schema": {
                  "type": "integer"
                },
                "description": "Cursor of the next page"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_lines",
                  "example": [
                    {
                      "code": "settlement",
                      "amount": "-293.90",
                      "balance": "2487.24",
                      "metadata": {
                        "tid": "114812938"
                      },
                      "created_at": "2022-09-05T02:15:47.000Z"
                    },
                    {
                      "code": "charge",
                      "amount": "-12.96",
                      "balance": "2781.14",
                      "metadata": {
                        "category": "fee",
                        "invoice_number": "INV20220404AUD000006"
                      },
                      "created_at": "2022-04-05T01:00:13.000Z"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Invalid token"
          },
          "404": {
            "description": "Account not found"
          },
          "422": {
            "description": "Invalid cursor"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.exchange.coinjar.com/"
    },
    {
      "url": "https://api.exchange.coinjar-sandbox.com/"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "account_lines": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/account_line"
        }
      },
      "account_line": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "balance": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "properties": {
              "transfer_uuid": {
                "type": "string"
              },
              "tid": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "invoice_number": {
                "type": "string"
              }
            }
          },
          "created_at": {
            "type": "string"
          }
        }
      }
    }
  }
}
```