201Successful Response
Schema: SuccessEnvelope_InvoiceDeferralResponse_
successbooleanmessagestringcodestringdataInvoiceDeferralResponse
/api/v1/deferred-revenue/invoices/{invoice_id}Route an invoice's revenue to Deferred Revenue and schedule it.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
invoice_idstringrequiredSchema: DeferInvoiceRequest
deferred_amount_centsintegerAmount routed to Deferred Revenue. Defaults to the invoice's revenue (total excluding sales tax); may not exceed it.
unitDeferralUnitEnumDeferralUnitEnumDenominator unit: months, hours or custom
methodDeferralMethodEnumDeferralMethodEnumstraight_line auto-populates every numerator; custom leaves them for the user and posts nothing until they are filled in.
period_countintegerrequiredNumber of monthly recognition periods
total_unitsnumber | stringDenominator quantity (e.g. 400 hours). Defaults to period_count for the months unit.
start_datestring · dateFirst recognition period (defaults to today's month)
revenue_ledger_namestringRevenue account the recognition entries credit. Defaults to the account the invoice itself booked revenue to.
periodsarray · DeferralPeriodInputOptional per-period numerators for a custom schedule. Length must match period_count when supplied.
notesstringSchema: SuccessEnvelope_InvoiceDeferralResponse_
successbooleanmessagestringcodestringdataInvoiceDeferralResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject