You are here

public function MailchimpEcommerce::getOrders in Mailchimp 8

Get information about a store's orders.

Parameters

string $store_id: The ID of the store.

array $parameters: Associative array of optional request parameters.

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 539

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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