You are here

public function MailchimpEcommerce::getOrderLine in Mailchimp 8

Get information about a specific order line item.

Parameters

string $store_id: The ID of the store.

string $order_id: The ID of the order.

string $line_id: The ID for the line item of an order.

array $parameters: An array of optional parameters. See API docs.

Return value

object The API order line response object.

Throws

\Mailchimp\MailchimpAPIException

See also

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

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

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