Body
The id of the wholesale order to delete.
Response
The ID provided in the data tab may be used to identify the return
The object type
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request DELETE 'https://api.stateset.com/v1/wholesale_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "wo_ODkRWQtx9NVsRX"
}'
{
"id": "wo_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "wholesale_order",
"deleted": true
}
This endpoint deletes an existing wholesale order.
curl --location --request DELETE 'https://api.stateset.com/v1/wholesale_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "wo_ODkRWQtx9NVsRX"
}'
{
"id": "wo_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "wholesale_order",
"deleted": true
}
curl --location --request DELETE 'https://api.stateset.com/v1/wholesale_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "wo_ODkRWQtx9NVsRX"
}'
{
"id": "wo_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "wholesale_order",
"deleted": true
}