How can I activate the easyBox for my items via the API?
To use the easyBox, the
modemust be set toBUY_BOX:$priceSettings->setMode(RepricingItemPriceSettingsDTO::MODE_BUY_BOX);Furthermore, the easyBox strategy must be set:
$strategyAPI = new eSagu\\Amzn\\RePricing\\V1\\Api\\RepricingItemStrategyApi(); $buyBoxAPI = new eSagu\\Amzn\\RePricing\\V1\\Api\\RepricingBuyBoxSettingsApi(); $itemId = 1337; $buyBoxSettings = $buyBoxAPI->callList(); $itemStrategy = $strategyAPI->get($itemId); $itemStrategy->getPriceSettings()->setMode(RepricingItemPriceSettingsDTO::MODE_BUY_BOX); $itemStrategy->setBuyBoxSettingsId($buyBoxSettings[0]->getId()); $strategyAPI->put($itemId, $settings);