Skip to main content

Get Orders For Product

GET 

/api/magento2/integration-instances/:magento2IntegrationInstance/products/:product/orders

Paginated list of Magento 2 orders that contain this product. The match is lineItems.magento_product_id = product.magento_entity_id OR (when the product has a SKU) lineItems.sku = product.sku. Ordered by magento_created_at DESC. Eager-loads integrationInstance + lineItems.

Error responses:

  • 404 — product does not exist OR belongs to a different instance.

Request

Responses

OK

Response Headers
    Content-Type