Skip to main content

Delete Warranty

You can delete warranty by individualCustomerProductId using this service.

Request

curl --location --request POST '<BASE_URL>/individual-customer-products/{individualCustomerProductId}/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <jwtToken>' \
--data '{
"deletedReason": "Customer requested cancellation"
}'
Info

The request body is optional. You can send the request without a body to delete the warranty without specifying a reason.

Path Variables

ParameterTypeRequired
Description
individualCustomerProductIdIntegerYesWarranty Id

Request Body (Optional)

ParameterTypeRequired
Description
deletedReasonStringNoReason for deleting the warranty (max 1000 chars)

Response

{
"deletedDate": "15-01-2026",
"deleted": true,
"deletedId": 12345,
"individualCustomerProductId": 67890
}

Response Fields

FieldType
Description
deletedDateStringDate when the warranty was deleted (dd-MM-yyyy)
deletedBooleanIndicates if the deletion was successful
deletedIdIntegerID of the deleted record
individualCustomerProductIdIntegerID of the individual customer product

Legacy Endpoint

A legacy DELETE variant of this service is also available. It deletes the warranty in exactly the same way and returns the same response body, but it accepts no request body, so you cannot pass a deletedReason.

curl --location --request DELETE '<BASE_URL>/individual-customer-products/{individualCustomerProductId}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <jwtToken>'
Recommended Approach

Use POST /individual-customer-products/{individualCustomerProductId}/delete for new integrations. The legacy DELETE variant is kept for existing integrations only.