Sitoo Product Search SPI
Search Products
get /product-searchGet list of products and available filters based on search parameters.
If a value of true
is sent for this parameter, then the endpoint will return an empty list of products and the default set of filters to display for a new search.
Text to search for.
Filter for the product search. The keys must follow the pattern ^[a-zA-Z][a-zA-Z0-9_-]{0,31}$
.
Language to use for localized fields in returned products (ISO 3166-1, alpha-2 uppercased).
Currency for product prices. (ISO 4217, alpha-3 uppercased).
Store ID (External ID of the Store in Sitoo).
ID of the customer.
Start index of products. Used for pagination.
Number of products to return.
{ "products": { "count": 1, "items": [ { "sku": "234.788.14", "name": "Shirt Stratosphere", "variant_text": "White", "product_group": "Apparel", "custom_attributes": { "style": "v-neck", "material": "cotton", "images": [ { "name": "T-shirt Stratosphere White", "url": "https://www.example.com/images/t-shirt-stratosphere-white.png" }, { "name": "T-shirt Stratosphere White Back", "url": "https://www.example.com/images/t-shirt-stratosphere-white-back.png" } ] }, "additional_data": { "code": "140-155", "product-group-1": "Apparel", "product-group-2": "Women" }, "offer_text": "Summer Sale", "unit_regular_price": "129.00", "unit_price": "99.00", "unit_sales_taxes": [ { "name": "Tax 25%", "amount": "19.80", "percentage": 25 } ] } ] }, "filters": [ { "id": "CATEGORY", "title": "Category", "type": "single-enum", "options": [ { "id": "CLOTHES", "name": "Clothes", "num_products": 42, "options": [ { "id": "NEWARRIVALS", "name": "New Arrivals", "num_products": 18 }, { "id": "COATS", "name": "Coats", "num_products": 24 } ] } ] } ], "search_text_used": null}
HTTP Status Code Summary | |
---|---|
200 | Returns a product search result object. |
400 | Invalid request. Data sent from client is invalid. |
401 | Missing or bad authentication. |
403 | User is not authorized to perform operation. |
500 | Internal Server Error. |
Objects
filterobject
Filter for product search.
ID of the filter.
Heading for the filter
Type of filter.
VALUES |
---|
single-enum |
multi-enum |
bool |
Array of available options for this result. NOTE! Only applies for type single-enum
or multi-enum
filter_optionobject
ID of the option.
Name of the option.
Number of products available for this option.
Used if values should be presented in a tree structure.
imageobject
Image attribute.
Url to the image.
Name of the image.
moneystring
Money value with fixed (2) number of digits.
productobject
The product object.
Stock Keeping Unit. Unique value to identify the product.
The name of the product.
Product variant data for the product. (eg. Size: Medium)
Name of the product group. Can be used for grouping values in reports (eg. Z-reports).
Attributes for the product. NOTE! To be displayed properly by the client, attributes of type string
and integer
should match the custom attribute definitions in the Sitoo system.
Additional data that will be added to order items when the product is purchased.
The text presented if the product is discounted (ie. unit_price < unit_regular_price
).
Regular price per unit incl. sales tax. The normal price for the product. If set, it should have a value greater than unit_price
.
Price per unit incl. sales tax. What the customer pays for the product. Must be a value greater than "0.00".
Sales taxes included per unit. Must contain exactly 1 sales_tax, which for a Sitoo system will be mapped to the vat values of the order item.
product_search_resultobject
Envelope for the product search endpoint.
The maximum number of available products for the current search. If this number is greater than the number of items returned, then pagination can be done using the start
parameter.
An array of products returned for this search.
The filters available for this result.
If set then the search_text
provided, resulted in no products, but instead a search was done for this text instead, returning the included products.
sales_taxobject
The sales tax object.
The name of the tax (eg. "Regular VAT").
The amount of tax (eg. "20.00").
The tax percentage (eg. 25.0).