You are here

public function MailchimpEcommerce::deleteCart in Mailchimp 8

Deletes a cart.

Parameters

string $store_id: The ID of the store.

string $cart_id: The ID of the cart.

Return value

object The API cart response object.

See also

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

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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