We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
To remove sales prices of an article you need to set the "salesPriceList" to null.
$mplusClient->updateProduct([ 'productNumber' => 'productNumber', 'articleList' => [ [ 'articleNumber' => 'articleNumber', 'salesPriceList' => null, ], ], ]);
To set sales prices of an article you need to set the "salesPriceList" to array containing sales prices.
$mplusClient->updateProduct([ 'productNumber' => 'productNumber', 'priceIncl' => 200 'articleList' => [ [ 'articleNumber' => 'articleNumber' 'salesPriceList' => [ [ 'salesPriceNumber' => 1, 'description' => 'Korting', 'startDate' => [ 'day' => date('j', 1619827200), 'mon' => date('n', 1619827200), 'year' => date('Y', 1619827200), ], "endDate" => [ 'day' => date('j', 1619913599), 'mon' => date('n', 1619913599), 'year' => date('Y', 1619913599), ], "priceIncl" => 100 ] ], ], ], ]);