You are here

public function MailchimpEcommerce::deleteCartLine in Mailchimp 8

Deletes a line item in a cart.

Parameters

string $store_id: The unique identifier for the store.

string $cart_id: The unique identifier for the cart.

string $line_id: A unique identifier for the order line item.

Return value

object The API cart line response object.

See also

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

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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