Skip to content
Navigation

Retrieve an order

GET
https://{store_domain}/api/store/orders/{id}

Returns an order for the signed-in customer, or for a guest who sends the x-guest-token returned when the cart was completed.

Authorization

  • publishableKey
    API key in header
    required

    x-publishable-api-key: <token>

Path parameters

  • id
    string
    required

Header parameters

  • x-guest-token
    optional
    string

    Guest order token returned by cart completion.

Returns

200

The order.

JSON
  • order
    object
    required
    • id
      string
      required
    • cart_id
      string
      required
    • display_id
      integer
      required
    • status
      pending
      or
      completed
      or
      draft
      or
      archived
      or
      canceled
      or
      requires_action
      required
    • payment_status
      string
      ·
      one of 10 values
      required
      Allowed values: not_paid, awaiting, authorized, partially_authorized, captured, partially_captured, partially_refunded, refunded, canceled, requires_action
    • fulfillment_status
      string
      ·
      one of 8 values
      required
      Allowed values: not_fulfilled, partially_fulfilled, fulfilled, partially_shipped, shipped, partially_delivered, delivered, canceled
    • currency_code
      string
      required
    • items
      array of
      object
      required
      • id
        string
        required
      • order_id
        string
        required
      • title
        string
        required
      • quantity
        integer
        required
      • unit_price
        integer
        required
      • total
        integer
        required
      • subtitle
        optional
        string | null
      • thumbnail
        optional
        string | null
      • variant_id
        optional
        string | null
      • product_id
        optional
        string | null
      • product_title
        optional
        string | null
      • product_handle
        optional
        string | null
      • variant_sku
        optional
        string | null
      • variant_title
        optional
        string | null
      • requires_shipping
        optional
        boolean
      • is_discountable
        optional
        boolean
      • is_tax_inclusive
        optional
        boolean
      • subtotal
        optional
        integer
      • discount_total
        optional
        integer
      • tax_total
        optional
        integer
      • fulfilled_quantity
        optional
        integer
      • shipped_quantity
        optional
        integer
      • delivered_quantity
        optional
        integer
      • metadata
        optional
        object
    • shipping_methods
      array of
      object
      required
      • id
        string
        required
      • order_id
        string
        required
      • name
        string
        required
      • amount
        integer
        required
      • total
        integer
        required
      • description
        optional
        string | null
      • is_tax_inclusive
        optional
        boolean
      • shipping_option_id
        optional
        string | null
      • subtotal
        optional
        integer
      • discount_total
        optional
        integer
      • tax_total
        optional
        integer
      • metadata
        optional
        object
    • subtotal
      integer
      required
    • discount_total
      integer
      required
    • tax_total
      integer
      required
    • shipping_total
      integer
      required
    • total
      integer
      required
    • created_at
      string
      required
      format: date-time
    • updated_at
      string
      required
      format: date-time
    • custom_display_id
      optional
      string | null
    • version
      optional
      integer
    • region_id
      optional
      string | null
    • customer_id
      optional
      string | null
    • sales_channel_id
      optional
      string | null
    • email
      optional
      string | null
      format: email
    • locale
      optional
      string | null
    • canceled_at
      optional
      string | null
      format: date-time
    • shipping_address
      optional

      One of the following:

      • Address
        • id
          string
          required
        • customer_id
          optional
          string | null
        • company
          optional
          string | null
        • first_name
          optional
          string | null
        • last_name
          optional
          string | null
        • address_1
          optional
          string | null
        • address_2
          optional
          string | null
        • city
          optional
          string | null
        • country_code
          optional
          string | null
        • province
          optional
          string | null
        • postal_code
          optional
          string | null
        • phone
          optional
          string | null
        • metadata
          optional
          object
      • null
    • billing_address
      optional

      One of the following:

      • Address
        • id
          string
          required
        • customer_id
          optional
          string | null
        • company
          optional
          string | null
        • first_name
          optional
          string | null
        • last_name
          optional
          string | null
        • address_1
          optional
          string | null
        • address_2
          optional
          string | null
        • city
          optional
          string | null
        • country_code
          optional
          string | null
        • province
          optional
          string | null
        • postal_code
          optional
          string | null
        • phone
          optional
          string | null
        • metadata
          optional
          object
      • null
    • metadata
      optional
      object
    • guest_token
      optional
      string

      Only present in the cart completion response for a guest order.

404

The order does not exist or is not visible to this buyer.
JSON
  • type
    string
    required
  • message
    string
    required
  • code
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close