Skip to content

A Lulu file check's result

GET
/api/v1/lulu/validations/{kind}/{id}
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.

kind
required
string
Allowed values: interior cover
id
required
string
>= 1 characters <= 40 characters

Done

Media typeapplication/json
object
id
required

Lulu’s id for the check, for lulu.validate.result.

string
kind
required
string
Allowed values: interior cover
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>
pageCount
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}