Skip to main content

Get Order Items

GET 

https://useast.api.elasticpath.com/v2/orders/:orderID/items

Use this endpoint to retrieve order items.

Request

Path Parameters

    orderID stringrequired

    The ID of the order.

Responses

Response Headers
    Schema
      data object[]
    • Array [
    • typestring

      The type represents the object being returned.

      iduuid

      The unique identifier for this order item.

      quantitynumber

      The quantity of this item were ordered.

      product_iduuid

      The unique identifier for this order item.

      subscription_offering_iduuid

      The unique identifier for the subscription offering for this order item.

      namestring

      The name of this order item.

      skustring

      The SKU code for the order item.

      unit_price object
      amountnumber

      The amount for this item.

      currencystring

      The currency this item.

      includes_taxboolean

      Whether this price is tax inclusive.

      value object
      amountnumber

      The amount for this item.

      currencystring

      The currency this item.

      includes_taxboolean

      Whether this price is tax inclusive.

      discounts object[]
    • Array [
    • amount object
      amountnumber

      The amount for this item.

      currencystring

      The currency this item.

      includes_taxboolean

      Whether this price is tax inclusive.

      codestring
      iduuid
    • ]
    • linksobject
      meta object
      display_price object
      with_tax object
      unit object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      value object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      without_tax object
      unit object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      value object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      tax object
      unit object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      value object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      discount object
      unit object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      value object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      without_discount object
      unit object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      value object
      amountnumber

      The raw total.

      currencystring

      The currency set for this amount.

      formattedstring

      The formatted total based on the amount and currency.

      discounts object
      property name* object
      amountnumber
      currencystring
      formattedstring
      timestamps object
      created_atstring

      The date this was created.

      updated_at

      The date this was last updated.

      relationships object
      cart_item object
      data object
      typestring

      The type represents the object being returned.

      iduuid

      The unique identifier for this item.

      catalog_idstring

      The unique identifier of the catalog associated with the product is shown if catalog_source=pim is set.

      catalog_sourcestring

      The catalog source. Always pim or legacy.

    • ]

    Authorization: http

    name: bearerAuthtype: httpscheme: bearer
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, "https://useast.api.elasticpath.com/v2/orders/:orderID/items");
    request.Headers.Add("Accept", "application/json");
    request.Headers.Add("Authorization", "Bearer <token>");
    var response = await client.SendAsync(request);
    response.EnsureSuccessStatusCode();
    Console.WriteLine(await response.Content.ReadAsStringAsync());
    Request Collapse all
    Base URL
    https://useast.api.elasticpath.com
    Auth
    Parameters
    — pathrequired
    ResponseClear

    Click the Send API Request button above and see the response here!

    We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.