Warranties
Delete Warranty
This endpoint deletes an existing warranty.
DELETE
/v1/warranty
Bearer*
Body
warranty_id
string
The ID provided in the data tab may be used to identify the warranty
Response
id
string
The ID provided in the data tab may be used to identify the warranty
object
string
The object type
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request DELETE 'https://api.stateset.com/v1/warranty' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "w_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "w_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "warranty",
"deleted": true
}
curl --location --request DELETE 'https://api.stateset.com/v1/warranty' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "w_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "w_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "warranty",
"deleted": true
}