List print orders
const url = 'https://digize.com/api/v1/lulu/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/lulu/orders \ --header 'x-api-key: <x-api-key>'The print orders sent to Lulu, newest first, each with its books, where it is at Lulu, what Lulu charges and its tracking: all of them, one book’s, or one store order’s.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Done
object
object
The store order it prints, or null for books ordered on their own.
What Lulu’s job carries as external_id.
queued until it goes, sent once Lulu has the job, failed when it didn’t go or Lulu rejected it, cancelled once cancelled.
Sent to Lulu’s sandbox, which never prints.
Lulu’s print job id.
Lulu’s status: CREATED, UNPAID, PAYMENT_IN_PROGRESS, PRODUCTION_DELAYED, PRODUCTION_READY, IN_PRODUCTION, SHIPPED, DELIVERED, REJECTED, CANCELED or ERROR.
object
object
Lulu’s id for the line.
What Lulu said about the line’s files or a delay.
Example
{ "data": [ { "state": "queued" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}