Invoices
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/invoices.md. Index of every page and the rules for every call: /llms.txt. Guides and concepts in one file: /llms-full.txt. OpenAPI: /openapi.json.
Invoices bill some or all of a sales order or quote. One order can have many; with Auto Invoice on, YoPrint automatically keeps one invoice updated to match the order's lines and shipping fees. Payments recorded on the order are allocated to its invoices.
Learn more: Invoices and payments · Invoice an order
11 operations
- POSTCreate an invoice for a sales order
/Creates an invoice for an order, optionally with its lines in the same call.v2/ api/ store/ {team_slug}/ v2/ sales_order/ {unique_key}/ invoice - POSTFilter invoices
/Returns one page of your team's invoices that match the filters, newest first unless you sort.v2/ api/ store/ {team_slug}/ v2/ invoice/ filter - GETList the invoices of a sales order
/Returns the invoices of an order with their lines.v2/ api/ store/ {team_slug}/ v2/ sales_order/ {unique_key}/ invoice - POSTList invoice lines for export
/Returns the invoice lines that come from order lines, one row per line, as JSON inv1/ api/ store/ {team_slug}/ sales_order/ invoices/ export_all_sales_order_invoice_item data, for a date range. - POSTList invoices for export
/Returns invoice rows as JSON inv1/ api/ store/ {team_slug}/ sales_order/ invoices/ export_list data, one per invoice, for a date range: the invoice CSV export's columns plus a few more. - GETGet an invoice
/An invoice bills some or all of a sales order (or quote).v2/ api/ store/ {team_slug}/ v2/ invoice/ {unique_key} - PUTUpdate an invoice
/Changes an invoice's header (number, issue date, addresses) and, in the same save, its lines, its tax and the order of its lines.v2/ api/ store/ {team_slug}/ v2/ invoice/ {unique_key} - PUTChange the tax on an invoice
/Sets, changes or removes an invoice's tax line.v2/ api/ store/ {team_slug}/ v2/ invoice/ {unique_key}/ tax-selection - DELETEDelete an invoice
/Deletes an invoice and its lines.v2/ api/ store/ {team_slug}/ v2/ invoice/ {unique_key} - POSTDownload invoices as one PDF
/Returns one PDF with up to 100 invoices, made while you wait (v1/ api/ store/ {team_slug}/ invoice/ export_pdf <date and time> - invoices.pdf, shown inline). - POSTExport invoices as CSV
/Downloads a CSV file of invoices.v1/ api/ store/ {team_slug}/ sales_order/ invoices/ export
Legacy and internal (4)
Prefer the operations above. Legacy operations name their replacement; internal ones are built for YoPrint's own apps.
- GETList invoices (v1)Legacy · deprecated
/Returns one page of your team's invoices of saved, non-draft sales orders and quotes (invoices of deleted, draft or autosaved orders, and deleted invoices, are left out).v1/ api/ store/ {team_slug}/ invoice - GETGet an invoice (v1)Legacy · deprecated
/Returns one invoice by its hash id.v1/ api/ store/ {team_slug}/ invoice/ {hash_id} - PUTChange an invoice number (v1)Legacy · deprecated
/Sets only the invoice number (v1/ api/ store/ {team_slug}/ invoice/ {hash_id} scoped_id); nothing else on the invoice can change here. - PATCHChange an invoice number (v1) (same as PUT)Legacy · deprecated
/Sets only the invoice number (v1/ api/ store/ {team_slug}/ invoice/ {hash_id} scoped_id); nothing else on the invoice can change here.
