Skip to main content

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​

ParameterTypeRequired
Description
warrantyStartDateStringNoThe start date of the warranty.
warrantyExpireDateStringNoThe expiration date of the warranty.
sellerCodeStringYesSeller code

Request Parameters​

ParameterTypeRequired
Description
merchantCodeStringYesThe merchant code to which the product belongs.