List invoices (v1)
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/invoices/v1-invoice-index.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.
GET/
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). No filters or sort: only page; the order isn't guaranteed.
Each row is a summary: number, order, customer, dates, deposit, totals (calc_total and the other calc_* fields are in thousandths, an older encoding: 12.50 is 12500; see Money and quantities), paid_amount, is_paid and PDF links (they carry their own access token).
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
Query parameters
pageintegerThe page to read. The page size is the team's list page size setting (50 unless the team changed it).
- Default
1 - Minimum 1
- Example
1
- Default
Request body
This operation takes no request body.
Response
200Successful response.
Fields of each item (28)
billing_addressobject | nullAn address.
Child fields (10)
address1string | nulladdress2string | nullcitystring | nullcountrystring | nullcountry_codestring | nullidstringThe address.
labelstring | nullpostcodestring | nullstatestring | nullstate_codestring | null
calc_delivery_totalinteger | number | string | nullShipping. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.calc_deposit_totalinteger | number | string | nullDeposit amount. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.calc_discountinteger | number | string | nullDiscount. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.calc_subtotalinteger | number | string | nullSubtotal. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.calc_taxinteger | number | string | nullTax. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.calc_totalinteger | number | string | nullTotal. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.created_atstring (date-time)customerobject | nullThe customer (the full customer record).
customer_idstring | nullThe customer.
customer_namestring | nulldeposit_duestring (date-time) | nullDeposit due. ISO 8601 with offset, or null.
deposit_requiredboolean | integer | nullfull_amount_duestring (date-time) | nullFull amount due. ISO 8601 with offset, or null.
idstringThe invoice.
is_paidbooleanorder_cust_due_datestring (date-time) | nullOrder customer due date. ISO 8601 with offset, or null.
order_idstringThe order.
order_issue_datestring (date-time) | nullOrder issue date. ISO 8601 with offset, or null.
order_namestring | nullorder_object_typestring | nullorder_quotebooleanorder_scoped_idstring | nullThe order number.
order_ship_due_datestring (date-time) | nullOrder ship-by date. ISO 8601 with offset, or null.
paid_amountinteger | number | string | nullAllocated payments. Thousandths, an older encoding:
12500is 12.50. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (1234.5is 1.2345), or as a string ("1234.5") when you sendX-Yoprint-Decimal-Format: exact-v1. See Money and quantities.pdf_urlarray of objectsPDF links (with their own access token): the standard invoice PDF first (
url,is_custom: false), then one entry per enabled custom invoice template (label,type,description,url, theshow_in_*flags,is_custom: true).Fields of each item (5)
descriptionstringis_custombooleanlabelstringtypestringurlstring
scoped_idstring | nullThe invoice number.
shipping_addressobject | nullAn address.
- Same fields as
data[].billing_address.
- Same fields as
paginationobjectChild fields (6)
Links to the neighbouring pages:
previousandnext, each present only when that page exists. An empty list,[], when there is only one page.
Errors
401The API key is missing or wrong (
unauthenticated).403You are not allowed to do this.
api_access_not_in_plan: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only{"message": "Insufficient Permission"}. Other refusals use the error envelope, withunauthorizedoruser_is_not_authorized.404Not found.
page_not_found: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's.code: null, with a message that starts "No query results for": there is no record with that id.
Notes
- The response is one page with
pagination. The page size is the team's list page size setting (50 unless the team changed it);per_pageis not read. Sendpage(from 1) in the body or the query string for later pages.
Related
- POSTFilter invoices
/v2/ api/ store/ {team_slug}/ v2/ invoice/ filter - GETGet an invoice (v1)
/v1/ api/ store/ {team_slug}/ invoice/ {hash_id}
