/stores/{storeId}/inventory/batchUp to 500 rows, each keyed by your SKU (else its barcode): a key the store already lists updates that listing with the fields you send; a new key creates one. A new listing needs its book (issueId, or a barcode we match to one, as the scanner does) and a price. Each row gets its own result: created, updated, unchanged (nothing to write), unmatched (the barcode didn't clearly match one book: candidates are in match) or failed, with why. Rows that fail don't stop the others. A row that doesn't match the schema refuses the whole request (400). Send an Idempotency-Key: a retry answers the first result. Counts against the daily bulk quota.
collector.upsertInventory()store:inventory:writeIdempotency-KeyX-Request-IdstoreIdstring (uuid)requiredobject
itemsarray of objectrequired1–500 items
skustringYour own stock-keeping code. One listing per SKU in a store.
1–80 characters
barcodestringThe digits under the bars, with the add-on: "75960608936900311", or spaced "759606 08936 9 00311". A UPC with its 2- or 5-digit add-on, an EAN-13 or an ISBN.
6–40 characters
issueIdstring (uuid)The catalog issue, when you know it. Otherwise the barcode is matched to the catalog.
editionIdstring (uuid) or nullThe edition of that issue: which variant it is (its standard version, or a variant cover or printing).
priceobjectThe asking price (Money).
amountCentsintegerrequired1–2000000000
currencystringrequiredISO 4217 code, e.g. USD.
quantityintegerCopies for sale (default 1).
0–100000
conditionobjectHow the copy is: only the fields you send change.
gradenumber or null0.5–10, or null when ungraded.
0.5–10
gradingCompanyenum or nullcgccbcspsapgxegshgaothercertNumberstring or nullThe slab’s cert number (needs gradingCompany).
at most 80 characters
labelTypestring or nullat most 40 characters
pageQualityenum or nullwhiteoff_white_to_whiteoff_whitecream_to_off_whitecreamlight_tantanbrittlesignedbooleansignaturesarray of stringat most 12 items
notesstring or nullCondition notes buyers read.
at most 2000 characters
shelfLocationstring or nullWhere it’s kept. Staff-only.
at most 120 characters
photosarray of stringStorage paths in the store-media bucket, under the store’s id.
at most 12 items
statusenumactive (default), hidden or archived.
activehiddenarchived200OKA result for each row, in order.
A result for each row of an upsert, in order.
createdintegerrequiredupdatedintegerrequiredunchangedintegerrequiredRows that matched a listing as it already was: nothing written.
unmatchedintegerrequiredNew rows whose barcode didn’t clearly match one book.
failedintegerrequiredresultsarray of objectrequiredindexintegerrequiredThe row’s position in items.
statusenumrequiredcreatedupdatedunchangedunmatchedfailedidstring (uuid) or nullrequiredlistingStatusenum or nullrequiredactivehiddensold_outarchivedHow the barcode was matched, for new rows without an issueId.
errorobject or nullrequiredunmatched, invalid_barcode, checksum_failed, duplicate_key, invalid_listing, identity_required, price_required, issue_not_found, edition_not_of_issue, issue_mismatch, ambiguous_sku, ambiguous_barcode, invalid_photos…
codestringrequireddetailstringrequiredinvalid_requestinvalid_jsoninvalid_idempotency_key
invalid_request: The query or body doesn’t match the schema (see errors[]).
invalid_json: The body isn’t JSON.
invalid_idempotency_key: The Idempotency-Key isn’t 1–255 visible ASCII characters.
unauthorized: Not signed in (no session or token, or an expired one).
not_found: Nothing at that address.
idempotency_in_progressstore_inactive
idempotency_in_progress: The first request with this key is still running.
store_inactive: The store is closed or suspended, so its books can’t be listed for sale.
payload_too_large: The body is over 4,194,304 bytes, this operation’s limit.
idempotency_key_reused: This key was used for a different request.
rate_limitedtemporarily_blockedquota_exceeded
rate_limited: Over the caller’s limit: the per-minute burst or the per-day quota (RateLimit headers; wait Retry-After seconds).
temporarily_blocked: Too many refused requests in a row: blocked for a while (Retry-After says how long).
quota_exceeded: Over this operation’s daily quota (the "bulk" bucket).
internal: Something went wrong on our side (quote the requestId).