Skip to main content
POST
Recalculate invoices

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Body

application/json

The invoices to recalculate: exactly one of invoiceIds, which names them, and invoiceDate, which selects them by their invoice date.

invoiceIds
string<uuid>[]
required

The unique identifiers of the invoices to recalculate, from 1 to 10000, each one once.

Required array length: 1 - 10000 elements
invoiceDate
object

The invoice date period to recalculate. The period cannot span more than 1 month.

Response

The recalculation has been enqueued.

total
number
required

How many invoices were enqueued for recalculation. It leaves out a locked invoice, an invoice without a billing cycle, an id that names no invoice of the tenant, and each invoice of an invoice allocation group after the first.

capped
boolean
required

Whether Aira enqueued only part of the invoices. It is always false for invoiceIds, because the request names at most 10000 invoices. With invoiceDate, it is true when the period holds more than 10000 invoices that Aira can recalculate, because Aira then enqueues only the first 10000, and the rest need a narrower period.