Skip to main content
POST
Update Policy Invoices

Authorizations

Authorization
string
header
required

API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.

Path Parameters

companyId
string<uuid>
required

Company identifier

policyId
string<uuid>
required

Policy identifier

Body

application/json

A fully explicit, detached policy-invoice batch. Existing invoices not named in voidInvoices are kept. The complete kept-plus-created set must conserve every bound component of the policy's current pricing contract.

incurredDate
string<date>
required

Explicit recognition date for non-scheduled creates. It is never inferred from a transaction effective date or the server clock.

voidInvoices
object[]
required
creates
object[]
required

Response

The resulting policy invoice set.

journalIds
string<uuid>[]
required

Journal ids emitted in execution order (voids, then creates).

invoices
object[]
required

All non-deleted policy invoices after the batch, voided rows included.

scheduledDates
object
required

Sparse map from invoice id to its installment recognition date.