Defer an invoice

POST/api/v1/deferred-revenue/invoices/{invoice_id}

Route an invoice's revenue to Deferred Revenue and schedule it.

Operation ID: defer_invoice_api_v1_deferred_revenue_invoices__invoice_id__post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

invoice_idstringrequired

Request body

deferred_amount_centsinteger

Amount routed to Deferred Revenue. Defaults to the invoice's revenue (total excluding sales tax); may not exceed it.

unitDeferralUnitEnumDeferralUnitEnum

Denominator unit: months, hours or custom

methodDeferralMethodEnumDeferralMethodEnum

straight_line auto-populates every numerator; custom leaves them for the user and posts nothing until they are filled in.

period_countintegerrequired

Number of monthly recognition periods

total_unitsnumber | string

Denominator quantity (e.g. 400 hours). Defaults to period_count for the months unit.

start_datestring · date

First recognition period (defaults to today's month)

revenue_ledger_namestring

Revenue account the recognition entries credit. Defaults to the account the invoice itself booked revenue to.

periodsarray · DeferralPeriodInput

Optional per-period numerators for a custom schedule. Length must match period_count when supplied.

notesstring

Responses

201Successful Response

successboolean
messagestring
codestring
dataInvoiceDeferralResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

409Conflict - Resource already exists

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject