|
| 1 | +post: |
| 2 | + summary: Search list of products |
| 3 | + operationId: "search_products_uuid" |
| 4 | + tags: |
| 5 | + - Product [uuid] |
| 6 | + x-versions: |
| 7 | + - "SaaS" |
| 8 | + description: | |
| 9 | + This endpoint allows you to search for products that match the filters provided in the request body. Products are paginated and can be filtered by scope, locales, attributes, and other criteria. User-group-based permissions are applied to the products you request. |
| 10 | + <br /><br /> |
| 11 | + <b>Important limitations</b><br /> |
| 12 | + - The maximum number of attributes in the request body is 800.<br /> |
| 13 | + - The maximum number of search criteria is 20.<br /> |
| 14 | + - The maximum number of items in an array (e.g., values for filters like <code>IN</code> or <code>NOT IN</code>) is 800. |
| 15 | +
|
| 16 | + parameters: |
| 17 | + - $ref: '#/parameters/pagination_type' |
| 18 | + - $ref: '#/parameters/page' |
| 19 | + - $ref: '#/parameters/search_after' |
| 20 | + - $ref: '#/parameters/limit' |
| 21 | + - $ref: '#/parameters/with_count' |
| 22 | + - name: body |
| 23 | + in: body |
| 24 | + required: true |
| 25 | + schema: |
| 26 | + type: object |
| 27 | + properties: |
| 28 | + search: |
| 29 | + type: string |
| 30 | + description: Filter products, for more details see the <a href="/documentation/filter.html">Filters</a> section |
| 31 | + scope: |
| 32 | + type: string |
| 33 | + description: Filter product values to return scopable attributes for the given channel as well as the non-localizable/non-scopable attributes. For more details, see the <a href="/documentation/filter.html#via-channel">Filter product values via channel</a> section |
| 34 | + locales: |
| 35 | + type: string |
| 36 | + description: Filter product values to return localizable attributes for the given locales as well as the non-localizable/non-scopable attributes. For more details, see the <a href="/documentation/filter.html#via-locale">Filter product values via locale</a> section |
| 37 | + attributes: |
| 38 | + type: string |
| 39 | + description: Filter product values to only return those concerning the given attributes. For more details, see the <a href="/documentation/filter.html#filter-product-values">Filter on product values</a> section |
| 40 | + with_attribute_options: |
| 41 | + type: boolean |
| 42 | + description: Return labels of attribute options in the response. See <a href='/concepts/products.html#the-linked_data-format'>the `linked_data` format</a> section for more details. (Only available since the 5.0 version) |
| 43 | + with_asset_share_links: |
| 44 | + type: boolean |
| 45 | + description: Return asset collection share link urls in the response. See <a href='/concepts/products.html#the-linked_data-format'>the `linked_data` format</a> section for more details. (Only available in the SaaS version) |
| 46 | + with_quality_scores__products: |
| 47 | + type: boolean |
| 48 | + description: Return product quality scores in the response. (Only available since the 5.0 version) |
| 49 | + with_completenesses: |
| 50 | + type: boolean |
| 51 | + description: Return product completenesses in the response. (Only available since the 6.0 version) |
| 52 | + x-examples: |
| 53 | + x-example-1: |
| 54 | + '{"scope": "ecommerce","locales": ["en_US"],"search": {"completeness":[{"operator": "=","value": 100,"scope": "ecommerce"}]}}' |
| 55 | + x-example-2: |
| 56 | + '{"attributes": ["sku","colors","a_localized_and_scopable_text_area"],"scope": "tablet"}' |
| 57 | + responses: |
| 58 | + 200: |
| 59 | + description: Return products paginated |
| 60 | + schema: |
| 61 | + title: Products |
| 62 | + type: object |
| 63 | + allOf: |
| 64 | + - $ref: '#/definitions/Pagination' |
| 65 | + - properties: |
| 66 | + _embedded: |
| 67 | + type: object |
| 68 | + properties: |
| 69 | + items: |
| 70 | + type: array |
| 71 | + items: |
| 72 | + $ref: '#/definitions/ProductUuidList' |
| 73 | + x-examples-per-version: |
| 74 | + - x-version: 'SaaS' |
| 75 | + x-example: |
| 76 | + $ref: '#/definitions/ProductUuidExamples/x-SaaS' |
| 77 | + 401: |
| 78 | + $ref: "#/responses/401Error" |
| 79 | + 403: |
| 80 | + $ref: "#/responses/403Error" |
| 81 | + 406: |
| 82 | + $ref: "#/responses/406Error" |
| 83 | + 422: |
| 84 | + $ref: "#/responses/422Error" |
0 commit comments