This endpoint is designed for styles that have been discontinued and are no longer available for orders.
Deleting Styles
Notes and Pending Orders with these styles or colors on them will automatically have those styles/colors canceled. This will also affect Approved orders that have not yet been exported.
Endpoint
- Method: DELETE
- URI:
https://api.jooraccess.com/v2/style-number/[style_number]/[style_identifier]
https://api.jooraccess.com/v2/style/[joor_style_id]
Params
- Accept: application/xml OR application/json
- Authorization: OAuth2 [Base64 encoded token]
- Content-Type: application/xml OR application/json
Request Examples
DELETE | https://api.jooraccess.com/v2/style-number/00123/ST1234566/
Deletes style specified in the URI
DELETE | https://api.jooraccess.com/v2/style-number/00123/ST1234566?color_code=001
Deletes style color specified in the URI
DELETE | https://api.jooraccess.com/v2/style-number/00123/ST1234566?size=M
Deletes a style’s size
Response Example
<?xml version="1.0" encoding="UTF-8"?>
<styles_deleted>
<response>
<code>0</code>
<log_id>a719cf1a-8800-43da-bda1-d16df8f9915f</log_id>
</response>
<size_deleted>34</size_deleted>
</styles_deleted>
{
"styles_deleted": {
"response": {
"code": "0",
"comment": "",
"log_id": "adc9aa40-fd92-4e9f-ba2b-795d19a8a416"
},
"size_deleted": {
"size_name": "34"
}
}
}