Update product
Request parameters
Parameter
Type / Description
Exceptions
Request sample
<?php
require ('PATH_TO_AUTH');
$ProductCode = 'NewProdCodeAPI12345';
try {
$myProduct = $client->getProductByCode($sessionID, $ProductCode);
}
catch (SoapFault $e) {
echo "myProduct: " . $e->getMessage();
exit;
}
$myProduct->ProductName = 'Edited_From_API_Again';
var_dump ($myProduct);
try {
$NewSubscriptionPlan = $client->updateProduct($sessionID, $myProduct);
}
catch (SoapFault $e) {
echo "UpdatedProductInfo: " . $e->getMessage();
exit;
}
var_dump("UpdatedProductInfo", $NewSubscriptionPlan);
?>Response
Last updated
Was this helpful?