PDFs

Generate Customer Invoice

Generate an invoice PDF for a customer based on their billing contract.

This endpoint generates an invoice PDF for the specified customer using their billing contract. If contract_id is provided, uses that specific contract; otherwise uses the most recent active contract.

Args:

  • customer_id: The customer ID
  • contract_id: Optional specific contract ID to generate invoice for
  • invoice_date: Optional invoice date in ISO format (defaults to current date)
  • due_date: Optional due date in ISO format (defaults to invoice_date + 30 days)
  • hide_due_date: Optional flag to hide due date on invoice (defaults to False)

Returns:

  • PDF file as application/pdf
get/pdfs/invoice/{customer_id}

Path parameters

customer_idstring uuid required

Query parameters

contract_idstring uuid nullable
invoice_datestring nullable
due_datestring nullable
hide_due_dateboolean

Response

Successful Response

{"stackTrail":"paths:/pdfs/invoice/{customer_id}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.