Add sources
Request parameters
Parameter
Type / Description
Request sample
<?php
require ('PATH_TO_AUTH');
// Promotion code corresponding to the promotion you want to add sources to
$promotionCode = '';
// Sources array with the source values
$sources = ['source1', 'source2'];
$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'addPromotionSources',
'params' => array($sessionID, $promotionCode, $sources)
);
var_dump (callRPC($jsonRpcRequest, $host));Response parameters
Parameter
Type / Description
Last updated
Was this helpful?