Brivio API reference
Saft

Queue a SAF-T D406 generation on the worker (never rendered inline). 409 when the readiness pre-flight has blocking findings or a generation is already running; 503 when no worker is reachable. (scope: saft:write)

POST
/saft/generations

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Header Parameters

Idempotency-Key*string

Required. Retries with the same key replay the first response instead of starting a second job (24 h).

Lengthlength <= 200

Request Body

application/json
  1. body
fiscal_year_id*string
Formatuuid
variant?string
Default"annual"
Value in"annual""assets""stocks"
period_start?string

Stocks variant only; defaults to the fiscal year.

Formatdate
period_end?string

Stocks variant only; defaults to the fiscal year.

Formatdate

Response Body

OK

application/json
  1. response
data*
error*null
curl -X POST "https://example.com/saft/generations" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "fiscal_year_id": "571ccfed-38f5-41f9-9797-855116d7b59a"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",    "status": "pending"  },  "error": null}