Skip to main content

Add sources

Last updated: 02-Jul-2018
Rate this article:


Use the addPromotionSources method to define new sources for an existing promotion.


Parameter Type/Description


Required (string)


Output of the Login method.


Required (string)


The code corresponding to the promotion that you want to add products to.


Required (string array)


Array of strings defining the promotion sources.


Parameter Type/Description


String array


Array of strings defining the promotion sources.



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));
Rate this article:

Need help?

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.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo