SiteSwapDevelopers
Guides

Sync dealer stock (bulk)

Keep quantities on SiteSwap in step with your own inventory.

A dealer posts each product once, keeps the listing ids next to its own stock numbers, and then sends what is on hand, up to 100 listings a call.

curl -X POST "https://dev.siteswap.pro/api/v1/listings/stock" \
  -H "Authorization: Bearer ssk_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"items":[{"id":"1042","quantity":35},{"id":"1043","quantity":0}]}'

What a quantity means

quantity is what you have open to sell now. SiteSwap adds what is already promised to accepted offers, so a promise is never taken back.

  • 0 pauses the listing. A paused listing is not found by search.
  • A positive quantity never puts a paused listing live again: send POST /listings/{id}/status with active when you want it back.
  • Raising the quantity tells people with a matching saved search that it is back in stock.
  • Each line is checked on its own: a listing that is not yours, closed or removed fails that line only, with its reason.
SiteSwap API v1Support