Delete a store
DELETE
/stores/{id}
const url = 'https://acme.mykreezalid.com/api/partners/v1/stores/1';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://acme.mykreezalid.com/api/partners/v1/stores/1 \ --header 'Authorization: Basic <credentials>'Refused while the store still holds listings: move them to another store, or unpublish them, first. The response has HTTP status 200 whether the store was deleted or not: check success.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Responses
Section titled “Responses”Whether it went
Media typeapplication/json
object
success
boolean
message
Store deleted, or the reason of the refusal.
string
Example
{ "message": "Store deleted"}Missing or wrong API credentials.
No store of yours has this ID, or the multi-store feature is not enabled.