public function MailchimpEcommerce::updateOrder in Mailchimp 8
Update a specific order.
Parameters
string $store_id: The ID of the store.
string $order_id: The ID for the order in the store.
array $parameters: An array of optional parameters. See API docs.
bool $batch: TRUE to create a new pending batch operation.
Return value
object The API order response object.
Throws
\Mailchimp\MailchimpAPIException
See also
http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
File
- lib/
mailchimp-api-php/ src/ MailchimpEcommerce.php, line 628
Class
- MailchimpEcommerce
- Mailchimp Ecommerce library.
Namespace
MailchimpCode
public function updateOrder($store_id, $order_id, $parameters = [], $batch = FALSE) {
$tokens = [
'store_id' => $store_id,
'order_id' => $order_id,
];
return $this
->request('PATCH', '/ecommerce/stores/{store_id}/orders/{order_id}', $tokens, $parameters, $batch);
}