Remove products
Request parameters
Parameter
Type / Description
Request sample
<?php
require ('PATH_TO_AUTH');
// Define the first product to remove from the promotion
$newProduct1 = new stdClass;
$newProduct1->Code = '';
$newProduct1->PricingConfigurationCode = '';
$newProduct1->PricingOptionCodes = ['',''];
// Define another product to remove from the promotion
$newProduct2 = new stdClass;
$newProduct2->Code = '';
$newProduct2->PricingOptionCodes = [''];
$promotionProducts = [$newProduct1, $newProduct2];
try {
$updatedPromotion = $client->deletePromotionProducts ($promotionCode, $promotionProducts);
}
catch (SoapFault $e) {
echo "UpdatedPromotion: " . $e->getMessage();
exit;
}
var_dump("UpdatedPromotion", $updatedPromotion);Response parameter
Parameter
Type / Description
Last updated
Was this helpful?