List Lulu products
const url = 'https://digize.com/api/v1/lulu/products';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/products \ --header 'x-api-key: <x-api-key>'The books Lulu prints that most people pick, as SKUs with what each is and the pages it takes, and the parts a SKU is made of (trim, ink, quality, binding, paper, cover finish; linen and foil for linen-wrap hardcovers). Lulu’s full list is a spreadsheet, so any SKU works; with podPackageId this checks one. Free: Lulu isn’t asked.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Only this trim’s, such as 0600X0900.
Only this trim’s, such as 0600X0900.
A SKU to check and spell out.
A SKU to check and spell out.
Checked against the SKU’s binding.
Checked against the SKU’s binding.
Responses
Section titled “Responses”Done
object
object
object
object
object
object
object
object
object
object
object
Example generated
{ "data": [ { "podPackageId": "example", "label": "example", "trim": "example", "trimLabel": "example", "ink": "example", "quality": "example", "binding": "example", "paper": "example", "finish": "example", "minPages": 1, "maxPages": 1 } ], "defaultPodPackageId": "example", "checked": { "podPackageId": "example", "label": "example", "problem": "example" }, "parts": { "trims": [ { "code": "example", "label": "example" } ], "inks": [ { "code": "example", "label": "example" } ], "qualities": [ { "code": "example", "label": "example" } ], "bindings": [ { "code": "example", "label": "example", "min": 1, "max": 1 } ], "papers": [ { "code": "example", "label": "example" } ], "finishes": [ { "code": "example", "label": "example" } ], "linens": [ { "code": "example", "label": "example" } ], "foils": [ { "code": "example", "label": "example" } ] }}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" }}