Categories

delete
Delete category

https://api.woowup.com/apiv3/categories
Delete a parent category and their childs
Request
Response
Request
Body Parameters
code
required
string
Category code
notify_to
optional
string
email to receive the confirmation
Response
200: OK
{
"payload": {
"request_id": "xxxx"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}
400: Bad Request
{
"payload": {
"errors": [
"Required properties missing: [\"code\"]"
]
},
"message": "bad request",
"code": "bad_request",
"time": "57ms"
}
403: Forbidden
{
"payload": [],
"message": "forbidden: authentication failed",
"code": "forbidden",
"time": "7ms"
}
404: Not Found
{
"payload": {
"errors": [
"category not found"
]
},
"message": "category not found",
"code": "not_found",
"time": "114ms"
}
500: Internal Server Error
{
"payload": [],
"message": "",
"code": "internal_error",
"time": "72ms"
}

Example

curl -X DELETE \
https://api.woowup.com/apiv3/categories \
-H 'Accept: application/json' \
-H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
-d '{
"code": "abcd",
"notify_to": "test@email.com"
}'

Response

{
"payload": {
"request_id": "XXXX"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}

delete
Delete categories (bulk)

https://api.woowup.com/apiv3/categories/bulk
Delete all categories
Request
Response
Request
Body Parameters
notify_to
optional
string
email to receive the confirmation
Response
200: OK
{
"payload": {
"request_id": "xxxx"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}
403: Forbidden
{
"payload": [],
"message": "forbidden: authentication failed",
"code": "forbidden",
"time": "7ms"
}
500: Internal Server Error
{
"payload": [],
"message": "",
"code": "internal_error",
"time": "72ms"
}

Example

curl -X DELETE \
https://api.woowup.com/apiv3/categories/bulk \
-H 'Accept: application/json' \
-H 'Authorization: Basic XXXXXXXXXXXXXXXXXXXX' \
-H 'Content-Type: application/json' \
-d '{
"notify_to": "test@email.com"
}'

Response

{
"payload": {
"request_id": "XXXX"
},
"message": "ok",
"code": "ok",
"time": "62ms"
}