You are here

public function MailchimpEcommerce::getOrder in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpEcommerce.php \Mailchimp\MailchimpEcommerce::getOrder()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php \Mailchimp\Tests\MailchimpEcommerce::getOrder()

Get information about a specific order.

Parameters

string $store_id: The ID of the store.

string $order_id: The ID of the order.

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...

1 call to MailchimpEcommerce::getOrder()
MailchimpEcommerce::getOrder in lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php
@inheritdoc
1 method overrides MailchimpEcommerce::getOrder()
MailchimpEcommerce::getOrder in lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php
@inheritdoc

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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