For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove sources

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

Request parameters

Parameter
Type / Description

sessionID

Required (string)

Output of the Login method.

promotionCode

Required (string)

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

promotionSources

Required (string array)

Array of strings defining the promotion sources to be removed.

Request sample

<?php

require ('PATH_TO_AUTH');

// Promotion code corresponding to the promotion you want to remove sources from
$promotionCode = '';

// Sources array with the source values 
$sources = ['source1', 'source2'];

try {
    $updatedPromotion = $client->deletePromotionSources($promotionCode,$sources);
}

catch (SoapFault $e) {
    echo "UpdatedPromotion: " . $e->getMessage();
    exit;
}

var_dump("UpdatedPromotion", $updatedPromotion);

Response parameters

Parameter
Type / Description

Status

Boolean

True or false.

Last updated

Was this helpful?