Skip to content

Add a listing

POST
/api/v1/books/listings
curl --request POST \
--url https://digize.com/api/v1/books/listings \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "bookId": "example", "store": "store", "kind": "print", "label": "example", "url": "https://example.com", "externalId": "example", "price": 1, "currency": "example", "status": "draft", "checklist": [ "example" ] }'

Records where a book sells: Amazon (KDP), IngramSpark, the Lulu Bookstore or another store, for its print book or ebook, one per store and format. Those stores have no API, so the author fills it in from the export’s checklist; marking it live (which needs its address) publishes the book. The workspace’s own store’s listings come from selling it there.

Needs the books:write permission.

Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
bookId
required
string
>= 1 characters <= 64 characters
store
required
string
Allowed values: store lulu amazon ingramspark other
kind
required
string
Allowed values: print ebook
label

For other: the store’s name, such as Kobo.

string
<= 60 characters
url
Any of:
string format: uri
<= 2000 characters
externalId
Any of:
string
<= 40 characters
price
Any of:
integer
<= 100000000
currency

Left out, the workspace’s.

string
>= 3 characters <= 3 characters
status
string
Allowed values: draft live
checklist

The checklist steps done, by id.

Array<string>
<= 20 items

Done

Media typeapplication/json
object
id
required
string
bookId
required
string
store
required

store the workspace’s own, lulu the Lulu Bookstore, amazon (KDP), ingramspark, or other.

string
Allowed values: store lulu amazon ingramspark other
kind
required
string
Allowed values: print ebook
label
required

Another store’s own name.

string
storeLabel
required
string
url
required
string | null
externalId
required

Its ID there: an ASIN at Amazon, the ISBN at IngramSpark.

string | null
price
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
currency
required
string
status
required

live once readers can buy it there: the book is published.

string
Allowed values: draft live
productId
required
string | null
exportKey
required
string | null
checklist
required

The checklist steps ticked off.

Array<string>
steps
required

The store’s checklist.

Array<object>
object
id
required
string
title
required
string
detail
required
string
done
required
boolean
liveAt
required
Any of:
string format: date-time
createdAt
required
string format: date-time
updatedAt
required
string format: date-time

Example

{
"store": "store",
"kind": "print",
"status": "draft"
}

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"
}
}

A request with the same Idempotency-Key is still running (conflict).

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 Idempotency-Key was used with a different request.

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"
}
}