Skip to content

List the tenant's orders, newest first

GET
/v1/orders
curl --request GET \
--url 'https://api.pixonaut.app/v1/orders?page=1&pageSize=50&sort=submitted&order=asc' \
--header 'Authorization: Bearer <token>'

Operation ID: orders.list

printId narrows the list to one print’s orders, designId to the orders of every print of one design, externalRef to the orders placed under your own reference, matched exactly, printshop to the orders sent to one printshop connection, status to any of several statuses, blankId to one blank’s orders and variant to one variant’s, submittedFrom and submittedTo to the orders submitted between them, and q to the orders whose own reference, id or recipient’s name starts with it; given several, an order must match all of them. sort=updated lists by when each order last changed, and order=asc the earliest first. counts says how many orders each status holds under the other filters.

page

The page to read, from 1; the first when left out.

integer
default: 1 >= 1 <= 100000

The page to read, from 1; the first when left out.

pageSize
integer
default: 50 >= 1 <= 200
printId

Only the orders of this print: its id, as list_prints returns it. The answer’s total is then how many orders that print has.

string
>= 1 characters <= 200 characters

Only the orders of this print: its id, as list_prints returns it. The answer’s total is then how many orders that print has.

designId
string
>= 1 characters <= 200 characters
externalRef
string
>= 1 characters <= 256 characters
printshop

Only the orders sent to this printshop connection: its id, as list_printshops returns it.

string
>= 1 characters <= 200 characters

Only the orders sent to this printshop connection: its id, as list_printshops returns it.

status
Any of:
string

Only the orders in any of these statuses: repeat it, or separate them with commas (failed,outcome_unknown).

blankId

Only the orders of this blank, whichever variant.

string
>= 1 characters <= 200 characters

Only the orders of this blank, whichever variant.

variant

Only the orders of this variant: its ref.

string
>= 3 characters <= 200 characters

Only the orders of this variant: its ref.

submittedFrom

Only orders submitted at or after this time, in epoch milliseconds.

integer | null
<= 9007199254740991

Only orders submitted at or after this time, in epoch milliseconds.

submittedTo

Only orders submitted at or before this time, in epoch milliseconds.

integer | null
<= 9007199254740991

Only orders submitted at or before this time, in epoch milliseconds.

q

Only the orders whose own reference, id or recipient’s name starts with this text, case aside. Never logged.

string
<= 200 characters

Only the orders whose own reference, id or recipient’s name starts with this text, case aside. Never logged.

sort

By when each order was submitted (the default) or last updated.

string
Allowed values: submitted updated

By when each order was submitted (the default) or last updated.

order

desc, the latest first, unless asc asks for the earliest.

string
Allowed values: asc desc

desc, the latest first, unless asc asks for the earliest.

A page of orders

Media typeapplication/json
object
counts
required

How many orders each status holds under every filter but status, every status named.

object
awaiting_prints
number
cancelled
number
failed
number
held
number
outcome_unknown
number
printed
number
queued
number
shipped
number
submitted
number
orders
required
Array<object>
object
adapter
required
string
blank
required

The blank blankId names, as it reads now; null as blankId is.

object
name
required
string
optionAxes
required

Its option axes, in order: how a variant’s options read, such as Color then Size.

Array<string>
variants
required

How many variants it has, retired ones included.

number
blankId
required

The blank the order’s prints are on; null for prints on no blank, or an order placed before it was recorded.

string | null
delivery
required

The order’s latest address change, made with PATCH /v1/orders/{id}/delivery after the order was sent; null for an order whose address never changed.

object
at
required

When the change was made.

number
state
required

What the printshop made of the change: sending while it is being told, accepted, refused (the order keeps the address the printshop has), or carried when what the printshop had not been sent yet carries the new address, so nothing extra was sent.

string
words
required

The printshop’s own answer to a refused change; null otherwise.

string | null
designId
required

The design the lead print was made from.

string
externalOrderRef
required
string | null
externalRef
required
string | null
>= 1 characters <= 256 characters
failureKind
required

Why Pixonaut failed the order rather than its printshop, as a refusal code: print_failed (a print of it could not be made; lastError names it), prints_timed_out (its prints were not finished within three hours of placing it), or the refusal an order waiting for its prints met when it was handed on, such as technique_not_offered. null for an order its printshop refused, or one not failed.

string | null
hold
required

Why the order is held, while it is; null for an order not held. A held order is accepted and not handed to its printshop until the month resets with room for it or the workspace upgrades.

object
limit
required

The plan’s monthly order limit the order met.

integer
periodEnd
required

When the month resets (ISO 8601, UTC): the latest the order is released, if the new month has room for it.

string
reason
required

Why it is held: monthly_order_limit, the workspace has placed the orders its plan includes this month. Show a reason you do not know as held without one, never as a failure.

string
id
required
string
lastCheckedAt
required
number | null
lastError
required
string | null
personalDataErasedAt
required
number | null
printId
required

The order’s lead print: the first of printIds, and the only one of an order of one print.

string
printIds
required

Every print the order holds, the lead first: the prints of one item, each in its own placement on its blank.

Array<string>
prints
required

printIds with each print’s design, placement and file.

Array
Any of:
object
designId
required
string
designRevision
required

The revision of the design the print was made from: GET /v1/designs/{id}/revisions/{revision}/image draws it.

number
placementFields
required

The placement fields the printshop was sent for this print, from its position there; null for an order placed before they were recorded.

Array<object> | null
object
name
required
string
source
required

Where the value came from: the variant’s (or position’s) own, the field’s default, or nothing, sent empty.

string
value
required
string
placementId
required

The placement on its blank the print’s design was committed for; null for a design with no blank, or one committed before placements were recorded.

string | null
printId
required
string
printedAs
required

Where on the item the print goes, by the name the order’s printshop knows it by (its Printed as), recorded when the order was placed; null for a print on no blank, or an order placed before it was recorded.

string | null
spotOutput
required

Which of this print’s files the printshop was sent; null while the order waits for its prints (awaiting_prints).

string | null
status
required

Where the print has got to: created while it renders, which an order in awaiting_prints waits for, then completed, or failed.

string
printshopAsPlaced
required

The printshop as it was when the order was placed: its name and kind (adapter). null for an order placed before it was recorded.

object
adapter
required
string
name
required
string
printshopConnectionId
required
string | null
printshopName
required
string | null
quantity
required
integer
> 0 <= 2147483647
recipient
required

Who the order is for: its customer. When shipTo is set, the order ships there and the customer is who it is finally for.

object
email

The recipient’s email address, for the carrier’s notices.

string format: email
<= 254 characters
name
required

The recipient’s name as a parcel label carries it, a person’s or a company’s. Up to 200 characters.

string
>= 1 characters <= 200 characters
phone

The recipient’s phone number as the customer gave it, with the country code when it has one.

string
>= 1 characters <= 50 characters
replacedByOrderId
required

The order submitted to replace this one, which names it as replacesOrderId; null for none.

string | null
replacesOrderId
required

The failed order this one was submitted to replace; null for an order that replaces none.

string | null
shipTo
required

The workspace’s saved address the order ships to, as it was when the order was placed; null for an order that ships to its customer’s address. Its printshop is handed this address, and erasing the order’s personal data leaves it.

object
address
required
object
city
required

The city or town.

string
>= 1 characters <= 100 characters
company

The company of a business address, which the parcel goes to; the recipient is who receives it.

string
>= 1 characters <= 200 characters
country
required

The country as a two-letter ISO 3166-1 code in capitals, such as SE or US.

string
/^[A-Z]{2}$/
line1
required

The first line of the street address: street and number.

string
>= 1 characters <= 200 characters
line2

The second line of the address: an apartment, floor or c/o.

string
>= 1 characters <= 200 characters
postalCode

The postal code as the country writes it, such as 111 22 or SW1A 1AA. Left out where the country has none; a printshop that needs one refuses the order postal_code_required.

string
>= 1 characters <= 20 characters
region

The state, province or county, where the country uses one.

string
>= 1 characters <= 100 characters
name
required

What the address is called in the workspace, such as Warehouse: unique there, case aside, and the name a parcel sent there is addressed to. Up to 200 characters.

string
>= 1 characters <= 200 characters
savedAddressId
required

The saved address the order ships to, by id. It may have been changed or removed since; name and address are what the order was placed with.

string
shippingAddress
required

The customer’s address. Where the order ships, unless shipTo is set.

object
city
required

The city or town.

string
>= 1 characters <= 100 characters
company

The company of a business address, which the parcel goes to; the recipient is who receives it.

string
>= 1 characters <= 200 characters
country
required

The country as a two-letter ISO 3166-1 code in capitals, such as SE or US.

string
/^[A-Z]{2}$/
line1
required

The first line of the street address: street and number.

string
>= 1 characters <= 200 characters
line2

The second line of the address: an apartment, floor or c/o.

string
>= 1 characters <= 200 characters
postalCode

The postal code as the country writes it, such as 111 22 or SW1A 1AA. Left out where the country has none; a printshop that needs one refuses the order postal_code_required.

string
>= 1 characters <= 20 characters
region

The state, province or county, where the country uses one.

string
>= 1 characters <= 100 characters
spotOutput
required
string | null
status
required
string
submittedAt
required
number
tenantId
required
string
tracking
required
object
carrier

Who carries it, such as DHL.

string
>= 1 characters <= 100 characters
number
required

The shipment’s tracking number.

string
>= 1 characters <= 100 characters
url

Where the shipment is followed: an https address.

string format: uri
<= 2048 characters
updatedAt
required
number
variant
required

The variant as it was when the order was placed: its options and the variant fields its printshop was sent. A later edit of the variant does not change it.

object
fields
required

Each declared field, in the printshop’s order, as it was sent.

Array<object>
object
name
required
string
source
required

Where the value came from: the variant’s (or position’s) own, the field’s default, or nothing, sent empty.

string
value
required
string
options
required
object
key
additional properties
string
ref
required
string
variantRef
required

The variant the order names; null as blankId is.

string | null
page
required
number
pageSize
required
number
total
required
number

Examples

Exampleexample

Example

{
"counts": {
"awaiting_prints": 0,
"cancelled": 0,
"failed": 0,
"held": 0,
"outcome_unknown": 0,
"printed": 0,
"queued": 1,
"shipped": 0,
"submitted": 1
},
"orders": [
{
"adapter": "custom",
"blank": {
"name": "Classic tee",
"optionAxes": [
"Color",
"Size"
],
"variants": 12
},
"blankId": "blank_classic_tee",
"delivery": null,
"designId": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"externalOrderRef": null,
"externalRef": "WEB-10482-1",
"failureKind": null,
"hold": null,
"id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
"lastCheckedAt": 1791886505000,
"lastError": null,
"personalDataErasedAt": null,
"printId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"printIds": [
"c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f"
],
"prints": [
{
"designId": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"designRevision": 1,
"placementFields": [
{
"name": "pos",
"source": "own",
"value": "FR"
}
],
"placementId": "front",
"printId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"printedAs": "Front",
"spotOutput": "process",
"status": "completed"
}
],
"printshopAsPlaced": {
"adapter": "custom",
"name": "Nordic Print Works"
},
"printshopConnectionId": "0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"printshopName": "Nordic Print Works",
"quantity": 25,
"recipient": {
"email": "[email protected]",
"name": "Alexandra Lind",
"phone": "+44 7700 900123"
},
"replacedByOrderId": null,
"replacesOrderId": null,
"shipTo": null,
"shippingAddress": {
"city": "London",
"country": "GB",
"line1": "12 High Street",
"line2": "Floor 2",
"postalCode": "SW1A 1AA"
},
"spotOutput": "process",
"status": "queued",
"submittedAt": 1791886447000,
"tenantId": "acme",
"tracking": null,
"updatedAt": 1791886505000,
"variant": {
"fields": [
{
"name": "colorCode",
"source": "own",
"value": "WHT"
},
{
"name": "sizeCode",
"source": "own",
"value": "M"
}
],
"options": {
"Color": "White",
"Size": "M"
},
"ref": "v_3f9a1c2b7d4e8a01"
},
"variantRef": "v_3f9a1c2b7d4e8a01"
},
{
"adapter": "custom",
"blank": {
"name": "Classic tee",
"optionAxes": [
"Color",
"Size"
],
"variants": 12
},
"blankId": "blank_classic_tee",
"delivery": null,
"designId": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"externalOrderRef": null,
"externalRef": "WEB-10483-1",
"failureKind": null,
"hold": null,
"id": "a7b8c9d0-e1f2-4a3b-9c4d-5e6f7a8b9c0d",
"lastCheckedAt": null,
"lastError": null,
"personalDataErasedAt": null,
"printId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"printIds": [
"c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f"
],
"prints": [
{
"designId": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"designRevision": 1,
"placementFields": [
{
"name": "pos",
"source": "own",
"value": "FR"
}
],
"placementId": "front",
"printId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"printedAs": "Front",
"spotOutput": "process",
"status": "completed"
}
],
"printshopAsPlaced": {
"adapter": "custom",
"name": "Nordic Print Works"
},
"printshopConnectionId": "0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
"printshopName": "Nordic Print Works",
"quantity": 1,
"recipient": {
"email": "[email protected]",
"name": "Alexandra Lind"
},
"replacedByOrderId": null,
"replacesOrderId": null,
"shipTo": null,
"shippingAddress": {
"city": "London",
"country": "GB",
"line1": "12 High Street",
"line2": "Floor 2",
"postalCode": "SW1A 1AA"
},
"spotOutput": "process",
"status": "submitted",
"submittedAt": 1791887047000,
"tenantId": "acme",
"tracking": null,
"updatedAt": 1791887047000,
"variant": {
"fields": [
{
"name": "colorCode",
"source": "own",
"value": "WHT"
},
{
"name": "sizeCode",
"source": "own",
"value": "M"
}
],
"options": {
"Color": "White",
"Size": "M"
},
"ref": "v_3f9a1c2b7d4e8a01"
},
"variantRef": "v_3f9a1c2b7d4e8a01"
}
],
"page": 1,
"pageSize": 50,
"total": 2
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, forbidden, feature_disabled, workspace_suspended

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: invalid_query

Media typeapplication/json
object
error
required
string

Examples

Exampleinvalid_query

invalid_query

{
"error": "invalid_query"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors