Overview
Upload a PDF invoice document and attach it directly to a debt using the debt’s stable encrypted API ID. This endpoint is intended for the two-step flow: create or update the debt first, then upload the invoice PDF for that debt.Authentication
Requires a valid OAuth 2.0 access token with theinvoice_documents:write scope. The legacy debts:write scope is also accepted during the transition.
Example Request
curl
Success Response
Errors
400- Missing file, invalid upload, non-PDF file, or file too large403- Missing scope or invoice documents feature is not enabled404- Debt not found or not accessible409- The debt already has an invoice document andreplace_manualwas not set