Delete a category

Delete a category in an Ecwid store referring to its ID.

📘

Categories originated outside of Ecwid can not be deleted, e.g. a category that has the field "origin": "LIGHTSPEED"

Headers

NameTypeDescription
AuthorizationstringoAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.

Response

A JSON object of type 'DeleteStatus' with the following fields:

DeleteStatus

FieldTypeDescription
deleteCountnumberThe number of deleted categories (1 or 0 depending on whether the request was successful)

Errors

Error response example

HTTP/1.1 400 Bad request
Content-Type application/json; charset=utf-8

In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description

HTTP codes

HTTP StatusMeaning
400Malformed request parameters
415Unsupported content-type: expected application/json or text/json
449Store catalog cannot be modified at the moment because import is in progress. Retry later.
500Server error
Language
Authorization
Query