-
Notifications
You must be signed in to change notification settings - Fork 4
Extra Update
Brad Ploeger edited this page Apr 3, 2019
·
1 revision
Updates an extra.
NOTE: The extra ID can change when updating it, since there are business rules to protect the Order and Product consistency.
$rezdyApi->extra->create($request);- integer: $extraId
- Rezdy\Requests\Extra: $request
- none
use Rezdy\RezdyAPI;
use Rezdy\Requests\Extra;
// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');
$extraId = 123456;
$extraParams = [
'description'=> 'Extra Description',
'extraPriceType' => 'ANY',
'name' => 'Extra',
'price' => 1.00 ];
// Create an Extra request
$extra = new Extra($extraParams);
// Send the Extra request to the API
$response = $rezdyAPI->extra->update($extraId, $extra);
// View the response
echo $response;Rezdy API V1 PHP Wrapper