Mark Invoice Uncollectible

View as Markdown
Mark an invoice as uncollectible (write-off). Previously the backend supported this transition (used internally by the dunning end-behavior flow) but the route was not exposed for manual write-offs. This endpoint surfaces it for AR cleanup, IRS-compliant bad-debt write-offs, and customer-specific concessions. Allowed source states: OPEN, PAST_DUE. Other states return 422. Requirements: - Invoice must be in OPEN or PAST_DUE state. - DRAFT / PARTIALLY_PAID / PAID / VOID / UNCOLLECTIBLE invoices are rejected. Returns: - The invoice with UNCOLLECTIBLE status.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

external_idstringRequired
account_idstringRequired

Response

Successful Response
idstring
customer_idstring
statusenum
currencyenum
ISO 4217 currency codes.
subtotal_amount_atominteger or null
tax_amount_atominteger or null
total_amount_atominteger or null
due_amount_atominteger or null
paid_amount_atominteger or null
remaining_amount_atominteger or null
issued_atdatetime
due_datedatetime or null
descriptionstring or null
metadatamap from strings to any or null
created_atdatetime
updated_atdatetime
applied_balance_amount_atominteger or nullOptional
total_discount_amount_atominteger or nullOptional
period_startdatetime or nullOptional
period_enddatetime or nullOptional
collection_methodenumOptional
custom_fieldsmap from strings to any or nullOptional

Custom field values. Only included when expand=custom_fields is specified.

itemslist of objectsOptional
invoice_numberinteger or nullOptional
billing_reasonenum or nullOptional
subscription_idstring or nullOptional
payment_method_idstring or nullOptional
invoice_pdf_urlstring or nullOptional
receipt_pdf_urlstring or nullOptional
hosted_invoice_urlstring or nullOptional

Errors

422
Unprocessable Entity Error