-
Notifications
You must be signed in to change notification settings - Fork 4
Products Update
Brad Ploeger edited this page Apr 3, 2019
·
1 revision
Updates a product.
$rezdyApi->products->update($productCode, $request);- string: $productCode
- Rezdy\Requests\ProductUpdate: $request
- none
use Rezdy\RezdyAPI;
use Rezdy\Requests\ProductUpdate;
use Rezdy\Requests\Objects\PriceOption;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
$productCode = 'P12345';
$productParams = [
'name' => 'Product Updated From API',
'advertisedPrice' => 89.95 ];
// Create the Product request
$product = new Product($productParams);
// Send the ProductUpdate request to the API
$response = $rezdyAPI->products->update($productCode, $product);
// View the response
echo $response;Rezdy API V1 PHP Wrapper