Managing AI Multiplier

Introduction

This API enhancement focuses on managing AI Multipliers, allowing for more intuitive and direct interactions. It facilitates both retrieval and updating of individual AI Multipliers

Using API to Get AI Multipliers

Parameters

ParameterTypeDescription
LearningSearchMultiplierfloatBoosts items based on click popularity and their position in keyword searches. Must be equal to or greater than 0 and not exceed 3.
BoostForRecommendedItemsfloatBoosts items detected by the Personalized Strategy in Recommendation that overlap with search results. Must be equal to or greater than 0 and not exceed 100.
OrdersMultiplierfloatBoosts items frequently purchased, based on a rolling 30-day sales history. Must be equal to or greater than 0 and not exceed 3.
Add2CartsMultiplierfloatBoosts items frequently added to carts by users. Must be equal to or greater than 0 and not exceed 3.

Get All AI Multipliers

  1. Endpoint: GET /aimultipliers
  2. Returns: List of AI Multipliers with details including names and current values.
  3. Response:
    {  
        "LearningSearchMultiplier": 2.2,  
        "BoostForRecommendedItems": 11.0,  
        "OrdersMultiplier": 2.2,  
        "Add2CartsMultiplier": 1.2  
    }
    

Get Single AI Multiplier by Name

  1. Endpoint: GET /aimultipliers/{name}
  2. Parameter: name (the unique name of the AI Multiplier, URL encoded).
  3. Returns: Details of the specified AI Multiplier including its current value.
  4. Response:
    {  
      "LearningSearchMultiplier": 1.5  
    }
    

Using API to Update AI Multipliers

Update All AI Multipliers

  1. Endpoint: PUT /aimultipliers

  2. Payload: JSON object containing updates for all AI Multipliers.

    {  
        "LearningSearchMultiplier": 2.2,  
        "BoostForRecommendedItems": 11.0,  
        "OrdersMultiplier": 2.2,  
        "Add2CartsMultiplier": 1.2  
    }
    
  3. Returns: Success message with details of updates.

    {  
        "LearningSearchMultiplier": "updated successfully",  
        "BoostForRecommendedItems": "updated successfully",  
        "OrdersMultiplier": "updated successfully",  
        "Add2CartsMultiplier": "updated successfully"  
    }
    

Update Single AI Multiplier by Name

  1. Endpoint: PUT /aimultipliers/{name}
  2. Parameter: name (the unique name of the AI Multiplier, URL encoded).
  3. Payload: JSON object containing the update for the specified AI Multiplier
    {  
        "LearningSearchMultiplier": 2.2  
    }
    
  4. Returns: Success message with details of the updated AI Multiplier.
    {  
        "LearningSearchMultiplier": "updated successfully"  
    }
    

Error Message

TypeConditionError Message
ValidationMinimum value is less than or equal to 0The minimum value must be greater than 0.
ValidationMaximum value for 'BoostForRecommendedItems' exceeds 100The maximum value for 'BoostForRecommendedItems' cannot be greater than 100.
ValidationMaximum value exceeds 3

(for LearningSearchMultiplier, OrdersMultiplier, Add2CartsMultiplier)
The maximum value cannot be greater than 3
ValidationInvalid JSON format or incorrect input bodyThe input provided for the request is invalid. Please validate and confirm JSON format.
URL IssuesIncorrect URL for GET or PUTThe URL 'aimultipliers/xxxxxxxx' is not correct.
URL IssuesGET request with incorrect URL (item not found)The requested item was not found.