Read the production control calendar
AI agents: read /llms.txt; add .md to any page URL. This page as Markdown: /reference/production-control/v1-production-control-filter.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 the orders scheduled in a date range, each with its jobs and their tasks: the data behind the Production Control page.
An order is included when its own production dates, or one of its jobs' dates, fall in the range or span it. Quotes are left out unless show_quote is true. Drafts are always left out. The whole range comes back at once, without paging.
Filters use dotted keys, one level each. Order filters choose orders; job and task filters also choose which jobs and tasks are listed inside each order.
key |
operator |
value |
|---|---|---|
order.status_id, job.status_id, task.status_id |
in, nin |
Status hash ids |
order.status_type, job.status_type, task.status_type |
in, nin |
start, pre_production, in_progress, end |
order.customer_id |
in, nin |
Customer hash ids |
order.assigned_users, job.assigned_users, task.assigned_users |
in, nin |
User hash ids |
order.tag |
in, nin |
Tag hash ids |
task.pipeline_id |
in, nin, eq |
Task preset hash ids |
order.is_rush, job.is_rush |
eq, neq |
true or false |
order.due_date, order.created_date, job.start_date, job.due_date, task.start_date, task.due_date |
eq, neq, gt, gte, lt, lte |
Days from today (UTC): 0 today, 7 a week ahead, -7 a week ago. Compared by date. |
order.due_date compares the order's customer due (in-hand) date; order.created_date compares when it was created.
For non-rush jobs send job.is_rush neq true: eq false returns the orders with empty jobs. Unknown order.* keys are ignored. Unknown job.* and task.* keys don't change which orders come back, but still filter the listed jobs or tasks (a field that doesn't exist empties the list unless the operator is neq or nin). Send real user hash ids: system-current-user is not understood when the listed jobs and tasks are filtered.
Business rules
start_dateandend_dateare required ISO 8601 dates; every filter needs akeyand anoperator.
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.
The last day of the range (ISO 8601). Counted to the end of that day, in UTC like
start_date.The first day of the range (ISO 8601). Counted from the start of that day. Send UTC (
Z): the day is taken from the date as written and any offset is dropped.filtersarray of objectsshow_quotebooleanInclude quotes.
- Default
false
- Default
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.
jobsarray of objectsThe order's jobs that match the
job.*filters.Fields of each item (10)
assigned_usersarray of objects- Same fields as
data[].assigned_users.
- Same fields as
due_datestring (date-time) | nullJob due date. ISO 8601 with offset, or null.
idstringThe job.
item_countnumber | nullnamestring | nullpipelinesarray of objectsIts tasks that match the
task.*filters.Fields of each item (8)
assigned_usersarray of objects- Same fields as
data[].assigned_users.
- Same fields as
due_datestring (date-time) | nullTask due date. ISO 8601 with offset, or null.
idstringThe task.
namestringpipeline_idstringThe task preset.
start_datestring (date-time) | nullTask 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_idstringThe task status.
scoped_idstringstart_datestring (date-time) | nullJob start. ISO 8601 with offset, or null.
statusobjectA status: label, kind and place in the list.
- Same fields as
data[].jobs[].pipelines[].status.
- Same fields as
status_idstringThe job status.
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.
- Same fields as
data[].jobs[].pipelines[].status.
- Same fields as
status_idstring | nullThe order status.
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.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
- A date is missing or not ISO 8601,
show_quoteisn't a boolean, or a filter lackskeyoroperator. - Fix
- Send both dates and complete filters.
Notes
- A wide range returns every matching order with all its jobs and tasks in one response. Keep ranges to a few weeks.
Related
- POSTList jobs in a date range
/v1/ api/ store/ {team_slug}/ job/ calendar - POSTList tasks in a date range
/v1/ api/ store/ {team_slug}/ work_pipeline/ calendar
