On-demand detail fetch
When an invoice is synced in header-only mode (fetchDetails: false) and line items are later needed for exactly 1 invoice, call this endpoint to fetch the detail individually (instead of enabling details for the whole batch).
POST /invoices/{invoiceId}/fetch-detail
Example response (202)
{ "jobId": "9082aa10-1c2b-4d3e-8f90-abc123456789", "status": "queued", "invoiceId": "0de33a81-fd05-4a1b-9c94-116f62c56057" }
The system creates a high-priority request that logs into the tax portal and fetches the detail for exactly that invoice; once succeeded, call Invoice detail again to receive the items.
Billing
Each fetch-detail call always incurs 1 tax-portal call ⇒ is billed per invoice (detail factor ×1.5). See Pricing per API request.