List books' print orders
GET
/api/v1/books/orders
const url = 'https://digize.com/api/v1/books/orders?stage=sending&offset=0&limit=50';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/books/orders?stage=sending&offset=0&limit=50' \ --header 'x-api-key: <x-api-key>'Print orders sent to Lulu with the workspace’s books in them (author copies and store orders, not test prints), newest first: all of them or one book’s, each with where it is at Lulu, what Lulu charges and its tracking.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”bookId
string
stage
string
offset
integer
limit
integer
Responses
Section titled “Responses”Done
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string
orderId
required
The store order it prints, if any.
string | null
externalId
required
What Lulu’s job carries as external_id.
string
state
required
string
stage
required
In a word: sending, printing (at Lulu), shipped, problem (rejected, unpaid or failed) or cancelled.
string
sandbox
required
boolean
jobId
required
string | null
status
required
Lulu’s own status.
string | null
statusMessage
required
string | null
shipping
required
object
name
required
string
organization
required
string | null
street1
required
string
street2
required
string | null
city
required
string
stateCode
required
string | null
postcode
required
string
countryCode
required
string
phone
required
string
email
required
string | null
shippingLevel
required
string
contactEmail
required
string
costs
required
estimates
required
test
required
boolean
error
required
string | null
createdBy
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
copies
required
integer
lines
required
Array<object>
object
id
required
string
bookId
required
string | null
buildId
required
string | null
orderLineId
required
string | null
title
required
string
podPackageId
required
string
quantity
required
integer
interiorUrl
required
string
coverUrl
required
string
lineId
required
string | null
status
required
string | null
message
required
string | null
cancellable
required
boolean
cancelling
required
boolean
total
required
number
Example
{ "data": [ { "state": "queued", "stage": "sending" } ]}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" }}