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
| Parameter | Type | Required | Description |
|---|---|---|---|
| individualCustomerProductId | Integer | Yes | Warranty Id |
Request Body (Optional)
| Parameter | Type | Required | Description |
|---|---|---|---|
| deletedReason | String | No | Reason for deleting the warranty (max 1000 chars) |
Response
{
"deletedDate": "15-01-2026",
"deleted": true,
"deletedId": 12345,
"individualCustomerProductId": 67890
}
Response Fields
| Field | Type | Description |
|---|---|---|
| deletedDate | String | Date when the warranty was deleted (dd-MM-yyyy) |
| deleted | Boolean | Indicates if the deletion was successful |
| deletedId | Integer | ID of the deleted record |
| individualCustomerProductId | Integer | ID 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.