SiteSwapDevelopers
API reference: Listings

Update stock in bulk

POSThttps://dev.siteswap.pro/api/v1/listings/stock

Sets the quantity of up to 100 of your listings in one call, for a dealer that keeps stock in its own system. Each line is checked on its own: a quantity below what is promised to accepted offers is refused for that line only. Raising a quantity tells saved searches the listing is back in stock.

Needs the listings:write scope.

Needs an API key or sign-in token in Authorization: Bearer or X-API-Key. Authentication

Body

itemsobject[]required
One line per listing
items[].idstringrequired
The listing's id
items[].quantitynumberrequired
The new total quantity. 0 pauses the listing

Responses

200OK
400bad_request, key_in_url or invalid_json: the request could not be read
401missing_key or invalid_key: no key, or a key that is not valid or was revoked
403key_pending, key_declined, scope_missing, terms_required or account_unavailable: see Errors
404not_found: nothing here that you may see
413too_large: the body is over 256 KB
429rate_limited or daily_quota: wait for Retry-After seconds

Response fields

idstringrequired
okbooleanrequired
quantitynumber | nullrequired
statusstring | nullrequired
errorstring | nullrequired
Why this line was refused
SiteSwap API v1Support