Skip to main content

Send Warranty with Product Code

With this service, you can send a warranty using the product code. Before sending a warranty, you must first create your product using the Product Creation.

Warning

It is recommended that the externalOrderId be a unique value for the integrating company. This value will be used later to delete the warranty.

Request

curl --location --request POST '<BASE_URL>/individual-customers/warranty/with-product-code'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'
--data '{
"productCode": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"countryCode": "<enum>",
"externalOrderId": "<string>",
"externalLineId": "<string>",
"purchaseDate": "<string>",
"warrantyExpireDate": "<string>"
}'
Info

Here are examples of acceptable phone number formats:

  • 544 333 22 11
  • 5443332211
  • +905443332211
  • 905443332211
  • 05443332211
Info

The formats for the purchaseDate and warrantyExpireDate parameters must be in the following format: DD-MM-YYYY HH:MM (e.g., 01-01-2023 00:00).

  • If the purchaseDate parameter is not provided, today's date will be used as the purchase date.
  • If the warrantyExpireDate parameter is not provided, the warranty expiration date will be set based on the warranty period specified in the product information.

Request Body

ParameterTypeRequired
Description
productCodeStringYesThe code of the product for which the warranty will be sent.
firstNameStringYesThe first name of the customer.
lastNameStringYesThe last name of the customer.
emailStringYesThe email address of the customer.
phoneStringYesThe phone number of the customer.
countryCodeEnumYesThe country code for the phone number.
externalOrderIdStringYesThe invoice code of the product being warranted.
externalLineIdStringNoThe information or code of the product being warranted.
purchaseDateStringNoThe date of purchase of the product.
warrantyExpireDateStringNoThe warranty expiration date of the product.
Country Code Enum
TR
US
DE
GB
AE
NL
FR

Response

{
"individualCustomerProductId": "<integer>"
}