Update Warranty Period
You can update the warranty periods by sellerCode and merchantCode using this service.
{/ DEV NOTE (not rendered): the controller method has no @Valid on the request body, so sellerCode's @NotBlank is not actually enforced by bean validation at this layer even though it's documented as required below. May be enforced downstream — unconfirmed from this repo alone. See egaranti.dev docs audit for details. /}
Request
curl --location --request PUT '<BASE_URL>/individual-customer-products/{individualCustomerProductId}/date'
--header 'Content-Type: application/json'
--header 'Authorization: Basic ZGVtbzpwQDU1dzByZA=='
--data '{
"warrantyStartDate": "<integer>",
"warrantyExpireDate": "<string>",
"sellerCode": "<string>"
}'
Info
The formats for the warrantyStartDate and warrantyExpireDate parameters must be in the following format: DD-MM-YYYY HH:MM (e.g., 01-01-2023 00:00). Only the provided dates will be updated.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| warrantyStartDate | String | No | The start date of the warranty. |
| warrantyExpireDate | String | No | The expiration date of the warranty. |
| sellerCode | String | Yes | Seller code |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| merchantCode | String | Yes | The merchant code to which the product belongs. |