SiteSwapDevelopers
API reference: Listings

Pause, reopen or close a listing

POSThttps://dev.siteswap.pro/api/v1/listings/{id}/status

Pauses a listing, puts it live again, or closes it for good. In a closed marketplace a listing can only be closed.

Needs the listings:write scope.

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

Path parameters

idstringrequired
The listing's id

Body

status"active" | "paused" | "closed"required
closed cannot be undone

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
The listing's id
urlstringrequired
The listing on SiteSwap
marketplacestringrequired
The marketplace key
kind"have" | "need"required
have for something offered, need for something wanted
deal"sale" | "trade" | "both"required
Marketplaces with trades: for sale, for trade or either; sale everywhere else
status"active" | "paused" | "closed"required
Only active listings are found by search; your own can be paused or closed
titlestringrequired
descriptionstringrequired
categoryobjectrequired
category.idstringrequired
category.slugstringrequired
category.namestringrequired
materialstring | nullrequired
The material or type, or the name typed under Other
brandstring | nullrequired
The brand or maker
product_linestring | nullrequired
The product line
colorstring | nullrequired
The color
modelstring | nullrequired
The model
quantityobjectrequired
quantity.totalnumberrequired
Listed in all
quantity.opennumberrequired
Still open: not promised to an accepted offer and not handed over
quantity.unitstringrequired
quantity.basisstringrequired
measured or estimated
priceobjectrequired
price.modelstringrequired
fixed, offers, free or pays_to_take (the poster pays to have it taken)
price.centsinteger | nullrequired
Per unit, in US cents; null without a price
locationobjectrequired
location.citystringrequired
location.regionstringrequired
The state
location.distance_minumber | nullrequired
Straight-line miles from the zip you sent; null without one
pickup_onlybooleanrequired
can_deliverbooleanrequired
can_loadbooleanrequired
available_fromstring | nullrequired
The first day, YYYY-MM-DD
fieldsobject (by key)required
The category's questions and their answers, by key (see GET /catalog/categories/{id})
photostring | nullrequired
A small picture of the first photo
companyobjectrequired
company.slugstringrequired
The company's address on SiteSwap, /c/{slug}
company.namestringrequired
company.kindstringrequired
What kind of company, for example contractor or supplier
company.urlstringrequired
Its public page
samplebooleanrequired
True for sample data on test servers
created_atstringrequired
When it was posted. ISO 8601 in UTC
SiteSwap API v1Support