You are here

public function MailchimpEcommerce::deleteOrder in Mailchimp 8

Deletes an order.

Parameters

string $store_id: The ID of the store.

string $order_id: The ID for the order in a store.

Return value

object The API order response object.

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 650

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function deleteOrder($store_id, $order_id) {
  $tokens = [
    'store_id' => $store_id,
    'order_id' => $order_id,
  ];
  return $this
    ->request('DELETE', '/ecommerce/stores/{store_id}/orders/{order_id}', $tokens);
}