Issue (if needed) and render the order's invoice for printing.One call for the merchant's "Print invoice" button, whatever the order's payment state: a cash-on-delivery order prints as due on delivery with the amount the courier collects; a paid one prints as paid. Rendered fresh every time — never from the R2 cache — because the payment stamp changes when the order is paid and a stale "due" on a paid order is exactly the wrong paper to hand a customer.Served inline so the browser opens its PDF viewer, where printing is one click; the store's own logo, not the platform's, heads the page.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.