Use the deletePromotionSources method to define new sources for an existing promotion.
Output of the Login method.
The code corresponding to the promotion that you want to remove sources from.
Required (string array)
Array of strings defining the promotion sources to be removed.
True or false
// Promotion code corresponding to the promotion you want to remove sources from
$promotionCode = '';
// Sources array with the source values
$sources = ['source1', 'source2'];
$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'deletePromotionSources',
'params' => array($sessionID, $promotionCode, $sources)
var_dump (callRPC($jsonRpcRequest, $host));
Rate this article:
Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.