API reference: Listings
Pause, reopen or close a listing
POST
https://dev.siteswap.pro/api/v1/listings/{id}/statusPauses 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
idstringrequiredThe listing's id
Body
status"active" | "paused" | "closed"requiredclosed cannot be undoneResponses
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
idstringrequiredThe listing's id
urlstringrequiredThe listing on SiteSwap
marketplacestringrequiredThe marketplace key
kind"have" | "need"requiredhave for something offered, need for something wanteddeal"sale" | "trade" | "both"requiredMarketplaces with trades: for sale, for trade or either;
sale everywhere elsestatus"active" | "paused" | "closed"requiredOnly
active listings are found by search; your own can be paused or closedtitlestringrequireddescriptionstringrequiredcategoryobjectrequiredcategory.idstringrequiredcategory.slugstringrequiredcategory.namestringrequiredmaterialstring | nullrequiredThe material or type, or the name typed under Other
brandstring | nullrequiredThe brand or maker
product_linestring | nullrequiredThe product line
colorstring | nullrequiredThe color
modelstring | nullrequiredThe model
quantityobjectrequiredquantity.totalnumberrequiredListed in all
quantity.opennumberrequiredStill open: not promised to an accepted offer and not handed over
quantity.unitstringrequiredquantity.basisstringrequiredmeasured or estimatedpriceobjectrequiredprice.modelstringrequiredfixed, offers, free or pays_to_take (the poster pays to have it taken)price.centsinteger | nullrequiredPer unit, in US cents; null without a price
locationobjectrequiredlocation.citystringrequiredlocation.regionstringrequiredThe state
location.distance_minumber | nullrequiredStraight-line miles from the
zip you sent; null without onepickup_onlybooleanrequiredcan_deliverbooleanrequiredcan_loadbooleanrequiredavailable_fromstring | nullrequiredThe first day, YYYY-MM-DD
fieldsobject (by key)requiredThe category's questions and their answers, by key (see
GET /catalog/categories/{id})photostring | nullrequiredA small picture of the first photo
companyobjectrequiredcompany.slugstringrequiredThe company's address on SiteSwap,
/c/{slug}company.namestringrequiredcompany.kindstringrequiredWhat kind of company, for example
contractor or suppliercompany.urlstringrequiredIts public page
samplebooleanrequiredTrue for sample data on test servers
created_atstringrequiredWhen it was posted. ISO 8601 in UTC
SiteSwap API v1Support