{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/magistry-io/json-schema/magistry-io-post-api-v1-finance-exports-request-schema.json",
  "title": "PostApiV1FinanceExportsRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/magistry-io-openapi-generated.yml#/components/schemas/PostApiV1FinanceExportsRequest",
  "type": "object",
  "properties": {
    "entity_id": {
      "type": "string",
      "description": "The entity, one of those this app was granted (GET /api/v1/finance/entities lists them). In a GET query string `entity` is accepted too."
    },
    "format": {
      "type": "string",
      "description": "What to produce."
    },
    "fiscal_year_id": {
      "type": "string",
      "description": "The fiscal year of a year-bound export (GET /api/v1/finance/periods lists them)."
    },
    "year": {
      "type": "integer",
      "description": "Instead of `fiscal_year_id`: the calendar year the fiscal year starts in."
    },
    "idempotency_key": {
      "type": "string",
      "description": "Same as the `Idempotency-Key` header; give one of the two."
    },
    "layout": {
      "type": "string",
      "description": "`jaarwerk`: the tool the package is laid out for (default `rgs_csv`)."
    },
    "document": {
      "type": "string",
      "description": "`annual`: the concept jaarrekening, or the concept of the deposit version (default `concept`)."
    },
    "view": {
      "type": "string",
      "description": "`report`: which report."
    },
    "file_type": {
      "type": "string",
      "description": "`report`: the file it is written as."
    },
    "from_period_id": {
      "type": "string",
      "description": "`report`: the first period of the range (default: the fiscal year's first)."
    },
    "to_period_id": {
      "type": "string",
      "description": "`report`: the last period of the range; needs `from_period_id`."
    },
    "kind": {
      "type": "string",
      "description": "`audit`: the change feed, the trial balance, or every entry wit"
    }
  },
  "required": [
    "entity_id",
    "format"
  ]
}