List Printify orders
GET
/api/v1/printify/orders
const url = 'https://digize.com/api/v1/printify/orders';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/printify/orders \ --header 'x-api-key: <x-api-key>'The store orders sent to Printify to make and ship, the newest first, with where each is at Printify and what it costs there.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
orderId
required
string
number
required
integer
customer
required
string
total
required
integer
currency
required
string
placedAt
required
string format: date-time
state
required
queued until it goes, sent once Printify has it, failed when Printify refused it, cancelled once cancelled there.
string
printifyId
required
string | null
status
required
Printify’s own status, such as on-hold or in-production.
string | null
items
required
Units Printify makes for it.
integer
shipments
required
integer
error
required
string | null
updatedAt
required
string format: date-time
Example
{ "data": [ { "state": "queued" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}