For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • Overview
  • Learning Plans
    • Developer Foundations
    • Composable Developer
    • Stencil Developer
    • B2B Developer
  • Courses
        • Orders API
        • Orders
        • Order Status
        • Order Shipping Address
        • Order Products
      • Conclusion
    • Learning Changelog
Dev Portal
LogoLogo
On this page
  • Pricing
  • Stock
  • Min and Max Quantities
  • Options
  • Add a Product with Options to an Existing Order
  • Customer File Uploads
  • List Order Products
  • Resources:
CoursesCheckout and Orders APIModule 4: Orders API

Order Products

Was this page helpful?
Previous

Order Shipping Address

Next

Order Shipments

Built with
Lesson 14 of 26 · 30 min

Order products are the product line items belonging to an order.

Pricing

  • If price is not specified, it will automatically pick up the price from the store’s product catalog. However, you can override this via price_inc_tax and price_ex_tax.
  • If the price_inc_tax or price_ex_tax specified then any variant pricing is ignored and the order products base_price is updated according to the store settings. For example, if the store is set to display prices with tax included, then the base_price will be price_inc_tax.

Stock

  • For products that are configured to track stock, the quantity specified on the order will reduce the stock on hand.
  • When there is not enough inventory to fulfill the order, the order will be rejected with an “out of stock” error code.

Min and Max Quantities

  • For products that have min and max quantities specified in their settings, the API will honor these, and will reject orders appropriately.

Options

  • For products where product options are required, the API will validate these requirements to ensure that the product options are specified.

Add a Product with Options to an Existing Order

Example Request - Add a Product with Options to an Existing Product

Example Response - Add a Product with Options to an Existing Product

Customer File Uploads

  • For products that allow customers to upload a file at checkout (i.e., an image uploaded for a t-shirt order), developers can follow these steps to retrieve the file:
  • Get the filename value from GET /orders/[order_id]/products, in the product_options array
  • Use that filename value to download the file via WebDAV using the following path: https://store.com/product_images/configured_products/[value]

List Order Products

Lists all order products on an order using order_id with a GET request to: /orders/{order_id}/products

Resources:

  • Order Products