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: <jwtToken>'
--data '{
"deletedReason": "Customer requested cancellation"
}'
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 |