# Searches for merchandise using predefined parameters

Searches for merchandise using predefined parameters

Endpoint: POST /merchandise/{tenantId}/search
Version: v1-2025-04-18
Security: knox-authorizer

## Security:

  - `knox-authorizer` (unknown)
    http bearer JWT

## Path parameters:

  - `tenantId` (string, required)
    The id of the tenant being accessed.

## Query parameters:

  - `exclusiveStartKey` (string)
    The start key for the search, for paging support

  - `fieldsToReturn` (string)
    The fields that you want to retrieve; if omitted, the entire object is returned

## Request body:

  - `application/json` (unknown)
    The merchandise that you would like to be saved.

## Request fields (application/json):

  - `category_id` (array)

  - `id` (array)

  - `member_price` (array)

  - `price` (array)

  - `track_inventory` (boolean)

  - `weight` (array)

## Response 200:

  - `200` (unknown)
    The merchandise search was saved successfully.

## Response 200 fields (application/json):

  - `Items` (array)

  - `Items.allow_back_orders` (boolean)
    If this product is inventoried, whether or not inventories are allowed

  - `Items.allow_customer_to_choose_installment_plan` (boolean)

  - `Items.category_ids` (array)
    The categories that this merchandise is in

  - `Items.enable_bulk_pricing` (boolean)
    Whether or not bulk pricing is enabled

  - `Items.enable_cancellation_fees` (boolean)

  - `Items.enable_modifier_options` (boolean)
    When sent, customers can change products with customization modifiers

  - `Items.enable_purchasing_eligibility` (boolean)

  - `Items.enable_restocking_fees` (boolean)
    Whether or not restocking fees are enabled

  - `Items.enable_variant_options` (boolean)
    When sent, customers can change products with variant options

  - `Items.is_active` (boolean)

  - `Items.member_price` (number)

  - `Items.new_until` (string)
    The date/time until which this merchandise is new

  - `Items.price` (number)

  - `Items.publish_to_portal` (boolean)

  - `Items.shippable` (boolean)
    Whether or not this product is eligible for shipping charges

  - `Items.track_inventory` (boolean)

  - `Items.track_inventory_by` (string)
    Enum: "product", "sku"

  - `Items.weight` (number)
    The weight of the product

  - `LastEvaluatedKey` (string)

## Response 200 headers (application/json):

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 400:

  - `400` (unknown)
    The merchandise you supplied was invalid.

## Response 400 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized.

## Response 401 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 403:

  - `403` (unknown)
    Forbidden.

## Response 403 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 404:

  - `404` (unknown)
    The resource could not be found

## Response 404 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 409:

  - `409` (unknown)
    The merchandise could not be saved because it refers to/depends on a non-existent object.

## Response 409 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 429:

  - `429` (unknown)
    Limit exceeded... unable to add merchandise based on tenant limits.

## Response 429 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 500:

  - `500` (unknown)
    General server error.

## Response 500 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

