Skip to main content

Remove products

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


Use deletePromotionProducts to remove products from an existing promotion.


Parameter Type/Description


Required (string)


The code corresponding to the promotion that you want to remove products from.


Required (object)



Required (string)



System generated product code.



Required (string)



System generated pricing configuration code.



Required (array of strings)



Pricing option codes that you control.


Parameter Type/Description
Status Boolean
  True or False



require ('PATH_TO_AUTH');

$promotionCode = 'MY_PROMO_CODE_1';

// 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 = [''];

$productPromotion = [$newProduct1, $newProduct2];

$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'deletePromotionProducts',
'params' => array($sessionID, $promotionCode, $productPromotion)
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