A Lulu file check's result
GET
/api/v1/lulu/validations/{kind}/{id}
const url = 'https://digize.com/api/v1/lulu/validations/interior/example';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/validations/interior/example \ --header 'x-api-key: <x-api-key>'Where a file check lulu.validate.interior or lulu.validate.cover started is: done once Lulu has finished, ok when the file is fine, errors saying what’s wrong when it isn’t. Free.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”kind
required
string
id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
Lulu’s id for the check, for lulu.validate.result.
string
kind
required
string
sourceUrl
required
string
status
required
VALIDATING or NORMALIZING while Lulu works, VALIDATED or NORMALIZED once the file is fine, ERROR when it isn’t.
string | null
done
required
boolean
ok
required
boolean
errors
required
Array<string>
validPodPackageIds
required
For an interior: the SKUs it fits, when Lulu says.
Array<string>
Example
{ "kind": "interior"}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" }}