Update a cross-sell campaign
Request parameters
Parameter
Type / Description
Request sample
<?php
$require ('PATH_TO_AUTH');
$csCampaign = new stdClass();
$csCampaign->CampaignCode = '2Xrl85eSkemBv3G3ea+9fg==';
$csCampaign->MasterProducts = ['C8851A5BC9'];
$csCampaign->DisplayType = 'review';
$csCampaign->DisplayInEmail = true;
$csCampaign->Name = 'testingSoap';
$csCampaign->StartDate = '2019-10-21';
$csCampaign->EndDate = '2021-10-21';
$csCampaign->CampaignStatus = 'ACTIVE';
$csCampaign->Products = [];
$csCampaign->Products[0] = new stdClass();
$csCampaign->Products[0]->ProductCode = '512712FA53';
$csCampaign->Products[0]->Discount = 19;
$csCampaign->Products[0]->DiscountType = 'PERCENT';
try {
$csCampaignResponse = $client->updateCrossSellCampaign($sessionID, $csCampaign);
} catch (SoapFault $e) {
echo $e->getMessage();
}Response parameters
Parameter
Type / Description
Last updated
Was this helpful?