invoices
invoices

Preview Invoice Pdf

Render a PDF from unsaved form data — for live split-pane preview.

post/api/v1/invoices/preview-pdf

Request

  • Base URL: https://api.peil.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.peil.app/api/v1/invoices/preview-pdf
  • Auth: OAuth 2 (password, token URL /api/v1/auth/jwt/login)

Request body

invoice_numberstring
client_idinteger nullable
client_namestring nullable
client_addressstring nullable
invoice_datestring date nullable
period_startstring date nullable
period_endstring date nullable
due_datestring date nullable
subtotalnumber
vat_ratenumber nullable
vat_amountnumber nullable
total_amountnumber nullable
total_hoursnumber
reverse_chargeboolean nullable
notesstring nullable
payment_referencestring nullable
template_fieldsobject nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.