You are here

public function MailchimpEcommerce::getCart in Mailchimp 8

Get information about a specific cart.

Parameters

string $store_id: The ID of the store.

string $cart_id: The ID of the cart.

array $parameters: Associative array of optional request parameters.

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 163

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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