Skip to content

getAccountsInScope

READ

The leaf accounts inside a report's account scope — the universe the per-report account multi-select filters within.

POST /api/v1/accounting/getAccountsInScope
curl -X POST '<your-host>/api/v1/accounting/getAccountsInScope' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "scope": "string"
  }'
Response
{
  "results": [
    {
      "id": "string",
      "number": "string",
      "name": "string"
    }
  ],
  "count": null
}

Parameters

ParameterType

Input schema

schema
{
  "type": "object",
  "properties": {
    "scope": {},
    "scrapAccountIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "scope"
  ]
}