Skip to main content
POST
https://api.stateset.com
/
v1
/
warranties
/
:id
/
extend
curl --location --request PUT 'https://api.stateset.com/v1/warranty/:id/extend' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
    "extension_period": 365,
    "new_expiry_date": "2025-12-31"
}'
{
  "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
  "object": "warranty",
  "extended": true,
  "original_expiry_date": "2024-12-31",
  "new_expiry_date": "2025-12-31",
  "extension_period": 365
}

Body

warranty_id
string
The ID provided in the data tab may be used to identify the warranty
extension_period
number
The number of days to extend the warranty
new_expiry_date
string
The new expiry date for the warranty

Response

id
string
The ID provided in the data tab may be used to identify the warranty
object
string
The object type
original_expiry_date
string
The original expiry date of the warranty
new_expiry_date
string
The new expiry date of the warranty
success
number
Indicates whether the call was successful. true if successful, false if not.
curl --location --request PUT 'https://api.stateset.com/v1/warranty/:id/extend' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
    "extension_period": 365,
    "new_expiry_date": "2025-12-31"
}'
{
  "id": "e0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
  "object": "warranty",
  "extended": true,
  "original_expiry_date": "2024-12-31",
  "new_expiry_date": "2025-12-31",
  "extension_period": 365
}