PDF Generation
POST /wp-json/api/v2/create-pdf generates the PDF of the shared POP payload.
What you need
- a valid
datapayload;data.pdfextends the payload only for rendering (billing, shipping, logo, header, footer) — it does not replace the common fiscal data - if present on both sides,
tax_regimemust match the account’s - email delivery requires
data.pdf.email_invoicewith at least one recipient into(max 3)
Output
- default: streamed PDF
- with
data.pdf.email_invoice: JSON (not the file stream)
Email delivery
to— primary recipients, visible to each otherbcc— silent copy (max 3), not visible toto; when used, the response includesbcc_toalongsidesent_to- to send an internal copy without exposing it to the customer, use
bcc— do not add the address toto