Skip to main content

Send Warranty with Product Code

With this service, you can send a warranty using the product code instead of merchantProductId.

Recommended Approach

For most use cases, we recommend using the Send Warranty with Invoice endpoint instead. It automatically creates products if they don't exist, supports multiple products in a single request, and provides extended warranty support.

Prerequisites

This endpoint requires a pre-registered product with a matching productCode. You can create products using the Product Creation service, or use the invoice endpoint which handles product creation automatically.

The externalOrderId should be a unique value in your system. This value will be used later to query or delete the warranty. :::

Request

curl --location --request POST '<BASE_URL>/individual-customers/warranty/with-product-code' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <jwtToken>' \
--data '{
"productCode": "PRD-001",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+905551234567",
"countryCode": "TR",
"externalOrderId": "ORD-12345",
"externalLineId": "LINE-001",
"purchaseDate": "15-01-2024 10:30",
"warrantyExpireDate": "15-01-2026 10:30"
}'
Phone Number Formats

Here are examples of acceptable phone number formats:

  • 544 333 22 11
  • 5443332211
  • +905443332211
  • 905443332211
  • 05443332211
Date Formats

The formats for the purchaseDate and warrantyExpireDate parameters must be: dd-MM-yyyy HH:mm (e.g., 01-01-2023 00:00).

  • If purchaseDate is not provided, today's date will be used.
  • If warrantyExpireDate is not provided, it will be calculated based on the product's warranty period.

Request Body

ParameterTypeRequired
Description
productCodeStringYesUnique product code (e.g., "PRD-001")
firstNameStringYesCustomer first name (e.g., "John")
lastNameStringYesCustomer last name (e.g., "Doe")
externalOrderIdStringYesExternal order ID from your system (e.g., "ORD-12345")
countryCodeEnumNoCountry code for the phone number (default: TR)
emailStringNoCustomer email (e.g., "john.doe@example.com")
phoneStringNoCustomer phone (e.g., "+905551234567")
externalLineIdStringNoLine item ID from your system (e.g., "LINE-001")
identificationNumberStringNoCustomer ID number (e.g., "12345678901")
birthDateStringNoCustomer birth date (format: dd-MM-yyyy, e.g., "15-06-1990")
purchaseDateStringNoPurchase date (format: dd-MM-yyyy HH:mm)
warrantyExpireDateStringNoWarranty expiration date (format: dd-MM-yyyy HH:mm)
Country Code Enum
TR  // Turkey
US // United States
DE // Germany
GB // United Kingdom
AE // United Arab Emirates
NL // Netherlands
FR // France
UZ // Uzbekistan

Response

{
"individualCustomerProductId": 12345
}

Example

{
"productCode": "LAPTOP-LENOVO-001",
"firstName": "Mehmet",
"lastName": "Kaya",
"email": "mehmet.kaya@example.com",
"phone": "5421234567",
"countryCode": "TR",
"externalOrderId": "INV-2024-0042",
"externalLineId": "LINE-001",
"purchaseDate": "25-01-2024 16:45"
}