Skip to main content

Get Warranties

With this service, you can filter warranty data. The parameters you enter will be used to search the database with the 'like' operator. All matching records will be returned, and the search is case-insensitive.
If multiple parameters are provided, the search will be conducted using the 'and' operator.

Request

curl --location --request GET '<BASE_URL>/individual-customers/warranty?page=1&size=10'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'

Example with date filters:

curl --location --request GET '<BASE_URL>/individual-customers/warranty?warrantyStartDateFrom=2024-01-01&warrantyStartDateTo=2024-12-31'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'
Info

Here are examples of acceptable phone number formats:

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

Request Parameters

ParameterTypeRequired
Description
pageIntegerNoUsed for pagination. The default value and minimum value is 1.
sizeIntegerNoUsed for pagination. The default value is 10. Min 1 - Max 200
firstNameStringNoThe customer's first name.
lastNameStringNoThe customer's last name.
emailStringNoThe customer's email address.
phoneStringNoThe customer's phone number.
warrantyStartDateFromStringNoFilter warranties by start date (format: yyyy-MM-dd). Returns warranties where warranty start date is on or after this date. Example: 2024-01-01
warrantyStartDateToStringNoFilter warranties by start date (format: yyyy-MM-dd). Returns warranties where warranty start date is on or before this date. Example: 2024-12-31
Date Filtering
  • warrantyStartDateFrom: Filters by warranty start date (warrantyStartDate >= provided date)
  • warrantyStartDateTo: Filters by warranty start date (warrantyStartDate <= provided date)
  • Both filters can be used together to find warranties within a specific warranty start date range
  • Date format must be yyyy-MM-dd (e.g., 2024-01-15)

Response

{
"content": [
{
"customer": {
"firstName": "Ahmet",
"lastName": "Arslan",
"email": "example@egaranti.com",
"emailVerified": false,
"phoneVerified": true,
"phone": "+905443332211"
},
"product": {
"name": "Erica El Mikseri Kırmızı",
"category": "Entegrasyon",
"brand": "Fakir",
"model": "",
"warrantyStartDate": "2024-08-15",
"warrantyExpireDate": "2025-08-15",
"externalOrderId": "123",
"extendedWarranties": [
{
"id": 456,
"externalProductName": "2 Yıllık Plan",
"brand": "Fakir",
"warrantyStartDate": "2025-08-15",
"warrantyExpireDate": "2027-08-15"
}
]
}
},
{
"customer": {
"firstName": "Ahmet",
"lastName": "Arslan",
"email": "example@egaranti.com",
"emailVerified": false,
"phoneVerified": true,
"phone": "+905443332211"
},
"product": {
"name": "Erica El Mikseri Kırmızı",
"category": "Entegrasyon",
"brand": "Fakir",
"model": "",
"warrantyStartDate": "2024-08-15",
"warrantyExpireDate": "2025-08-15",
"externalOrderId": "1231",
"extendedWarranties": []
}
}
],
"totalPages": 1,
"totalElements": 2,
"size": 10,
"page": 1,
"empty": false
}

Response Fields

Product Object
FieldTypeDescription
nameStringThe product name
categoryStringThe product category
brandStringThe product brand
modelStringThe product model
warrantyStartDateStringWarranty start date in yyyy-MM-dd format
warrantyExpireDateStringWarranty expiration date in yyyy-MM-dd format
externalOrderIdStringThe external order identifier
extendedWarrantiesArrayList of extended warranties associated with this product (may be empty)
Extended Warranty Object
FieldTypeDescription
idIntegerThe extended warranty unique identifier
externalProductNameStringThe external product name (e.g., "2 Yıllık Plan")
brandStringThe product brand
warrantyStartDateStringExtended warranty start date in yyyy-MM-dd format
warrantyExpireDateStringExtended warranty expiration date in yyyy-MM-dd format