get https://api.shioja.com/getShortProducts
Get Products to display on a card.
The get short product service allows you to fetch the little product details you need to display on a product card that only includes an image(the main image) and a short description of the product.
Use Get Long Products to get a product's full details.
NOTE
Only use this for getting products to display on a product card.
Request
{{baseUrl}}/getProducts
Parameters | Type | Description | Optional |
---|---|---|---|
page | int | The page number. This defaults to 1. | optional |
numberOfProductsPerPage | int | The number of products per page. This defaults to 10 if you provide no value. | optional |
sortBy | string | This is how you want the products results to be sorted. It can be any one of price, brand, category, department, family, name. The default value is price. | optional |
sortAscending | bool | This is where you arrange your sorted products sequentially. Set it as true if ascending and false if descending. It defaults to ascending | optional |
multiFilter | string | This is the multi-filter that you intend to use in your product query. It is either category, brand, family or department. | optional |
lowerPriceRange | int | This is where you input the lower price range of the products that you want to display to your users. It takes an integer in Naira.. | optional |
UpperPriceRange | int | This is where you input the upper price range of the products that you want to display to your users. It takes an integer in Naira.. | optional |
familyFilter | Array | This is where you specify the family of products that you to show to your users. It must be an array of just one string if it is not a multi-filter. A multi-filter will have an array of two or more strings. | optional |
brandFilter | Array | This is where you specify the brand of products that you to show to your users. It must be an array of just one string if it is not a multi-filter. A multi-filter will have an array of two or more strings. | optional |
categoryFilter | Array | This is where you specify the category of products that you to show to your users. It must be an array of just one string if it is not a multi-filter. A multi-filter will have an array of two or more strings. | optional |
departmentFilter | Array | This is where you specify the department of products that you to show to your users. It must be an array of just one string if it is not a multi-filter. A multi-filter will have an array of two or more strings. | optional |