Search for products based on specified criteria
Query parameters
-
categoryId integer(int32)
The id of the product category. Reference /categories/all for details
-
brandId integer(int32)
The id of the product brand. Reference /brands/all for details
-
category string
Return all products who's category name contains this value
-
brand string
Return all products who's brand name contains this value
-
createdBefore string(date-time)
Return all products created before this date/time
-
createdAfter string(date-time)
Return all products created after this date/time
-
updatedBefore string(date-time)
Return all products updated before this date/time
-
updatedAfter string(date-time)
Return all products updated after this date/time
-
includeExtendedProperties boolean
If true, additional product details including descriptions, prices, stock details, additional fields and additional images will be returned.
Default value is
false
.
GET /product/search
curl \
-X GET https://dealers.api.rg-racing.com/product/search
Response examples (200)
[
{
"id": 42,
"sku": "string",
"name": "string",
"category": {
"id": 42,
"name": "string",
"description": "string",
"productDescription": "string",
"image": "string",
"logo": "string",
"bannerImage": "string"
},
"images": [
"string"
],
"productType": "string",
"brand": "string",
"briefDescription": "string",
"fullDescription": "string",
"fittingInstructions": "string",
"fittingInstructionsQR": "string",
"coversheet": "string",
"selectedOptions": [
{
"name": "string",
"value": "string"
}
],
"additionalFields": [
{
"name": "string",
"value": "string"
}
],
"dateCreated": "2024-05-04T09:42:00+00:00",
"dateModified": "2024-05-04T09:42:00+00:00",
"ean": "string",
"sitePrice": 42.0,
"stock": {
"sku": "string",
"count": 42,
"error": "string"
},
"dealerPriceGBP": 42.0,
"dealerPriceUSD": 42.0,
"dealerPriceEUR": 42.0,
"bikes": [
{
"id": 42,
"name": "string",
"image": "string",
"models": [
{
"id": 42,
"name": "string",
"image": "string",
"years": [
{
"id": 42,
"name": "string",
"mic": "string",
"image": "string"
}
]
}
]
}
]
}
]
Response examples (401)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string",
"key": null
}
Response examples (429)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string",
"key": null
}