/holdsAsk the store to set copies of a listing aside. The store accepts or declines within 48 hours; an accepted hold keeps the book aside for the store’s hold days.
collector.requestHold()holds:writeIdempotency-KeyX-Request-Idobject
listingIdstring (uuid)requiredquantityinteger1–50 · default 1
messagestring or nullat most 1000 characters
201CreatedThe hold request.
object
invalid_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).
idempotency_in_progresslisting_unavailablestore_unavailablestore_closedholds_unavailabletoo_many_holdsinvalid_quantityown_store
idempotency_in_progress: The first request with this key is still running.
listing_unavailable: The book isn’t listed, or not enough copies are left.
store_unavailable: The store isn’t taking requests right now.
store_closed: The store has closed.
holds_unavailable: The store isn’t taking holds right now.
too_many_holds: The caller has too many open holds.
invalid_quantity: Hold between 1 and 50 copies, no more than are listed.
own_store: The book is in the caller’s own store.
payload_too_large: The body is over 1,048,576 bytes, this operation’s limit.
idempotency_key_reused: This key was used for a different request.
rate_limitedtemporarily_blocked
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).
internal: Something went wrong on our side (quote the requestId).