Report sales orders by issue date
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/reports/v1-report-sales-order.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.
POST/
Returns every sales order issued in the period, in full (v1 order shape), for your own reporting. Drafts and unsaved orders are left out.
Amounts are in thousandths, an older encoding (339750 is 339.75). An order's calc_* fields (calc_subtotal, calc_tax, calc_discount, calc_total) measure only what has been invoiced so far, and remain 0 until an invoice is created for the order. deposit_total is the deposit percentage ×1000, not an amount. See Money and quantities.
Business rules
- An order is in the period when its issue date is between
start_dateandend_date, inclusive.
Path parameters
Your team slug, shown as Team ID next to your API key in Profile.
- Example
your-team
- Example
Request body
application/json, required.
End of the period (ISO 8601), inclusive: send
23:59:59to include the whole last day. In UTC, likestart_date(an offset is dropped, not applied).Start of the period (ISO 8601), inclusive, to the second: send the start of the day. Send it in UTC (
Z): the date and time are compared with UTC as written and any offset is dropped, so2026-10-01T00:00:00-05:00means midnight UTC.
Response
200Successful response.
Fields of each item (36)
approval_statusstring | nullrequested,need-changes,approved, or null.assigned_usersarray of objectsPeople on the order.
Fields of each item (3)
avatar_urlstring | nullidstringThe user.
namestring
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 | nullInvoiced discount; 0 until invoiced. 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 | nullInvoiced line and shipping subtotal; 0 until the order is invoiced. 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 | nullInvoiced tax; 0 until invoiced. 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 | nullInvoiced total; 0 until the order is invoiced. 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) | nullCreated. ISO 8601 with offset, or null.
created_bystring | nullWho created it.
cust_due_datestring (date-time) | nullCustomer due date. ISO 8601 with offset, or null.
customerobject | nullThe customer, as in Get a customer.
customer_idstring | nullThe customer.
customer_po_numberstring | nullcustomer_portal_order_linkstring | nullCustomer portal link. It carries the customer's portal access: don't publish it.
customer_portal_payment_linkstring | nullCustomer portal payment page link, with the same access.
deposit_duestring (date-time) | nullDeposit due. ISO 8601 with offset, or null.
deposit_requiredbooleandeposit_totalinteger | number | string | nullThe deposit percentage ×1000:
50000is 50%. Not an amount.due_datestring (date-time) | nullProduction due date. ISO 8601 with offset, or null.
full_amount_duestring (date-time) | nullFull amount due. ISO 8601 with offset, or null.
idstringThe order.
is_quotebooleanis_rushbooleanissue_datestring (date-time) | nullIssue date. ISO 8601 with offset, or null.
namestring | nullobject_typestring | nullsales_orderorquote.paid_amountinteger | number | string | nullPaid so far. 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.payment_term_idstring | nullPayment term.
scoped_idstring | nullThe order number.
ship_due_datestring (date-time) | nullShip-by date. ISO 8601 with offset, or null.
start_datestring (date-time) | nullProduction start. ISO 8601 with offset, or null.
statusobjectA status: label, kind and place in the list.
Child fields (9)
colorstring | nullHex color.
customer_labelstringidstringThe status.
labelstringpipeline_idstringOnly on the statuses of a task preset (
rolepipeline): the task preset. Absent on other statuses.positionintegerIts place in the team's list: sort by it to find the next status.
rolestringWhich list it belongs to:
jobfor job statuses,pipelinefor the statuses of a task preset.- One of:
"order","quote","job","purchase_order","shipment","customer_message","pipeline"
- One of:
trashedbooleanThe status was deleted.
typestringThe kind of status:
start(Pending),pre_productionandin_progress(In Progress),end(Completed).- One of:
"start","pre_production","in_progress","end"
- One of:
status_idstring | nullThe order status.
tagsarray of objectsThe order's tags.
unique_keystring | nullwarehouse_idstring | nullWarehouse.
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.- When
- Your role lacks View Reports.
- Fix
- Ask the team owner to turn on View Reports for your permission group.
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.422The request was refused and changed nothing.
validation_failedlists what to fix inerror.fields; other codes name a business rule, explained inerror.message. A few checks answer with only{"message": "..."}. An operation that calls another service (a payment provider, a carrier, an accounting app) can answerconnect_timeout("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.- When
start_dateorend_dateis missing or not ISO 8601.- Fix
- Send both as ISO 8601 date-times.
Notes
- There is no paging: the whole period comes back in one response. Ask for a month or less at a time.
Related
- POSTReport quotes by issue date
/v1/ api/ store/ {team_slug}/ report/ quote - POSTReport payments and refunds
/v1/ api/ store/ {team_slug}/ report/ payment - POSTReport invoices of orders paid in full
/v1/ api/ store/ {team_slug}/ report/ tax
