# Shopify (Public App) — Ecommerce API: gotchas

> Canonical URL: https://developers.apideck.com/apis/ecommerce/shopify-public-app/gotchas

## GET /ecommerce/orders

The `line_items[].discounts[]` array reflects each line item's allocated share from every
discount application on the order, including order-wide discounts. Shopify's
`discountAllocations` field does not distinguish between product-specific and order-wide
discount sources — all allocations for a given line item are returned together. `meta.total_count` will not appear. Surfacing the total requires a separate GET request to the `/admin/api/{version}/{resource}/count.json` endpoint — an extra API call that is not currently implemented.

## GET /ecommerce/orders

Shopify exposes counts via dedicated `/count.json` endpoints only — requires an extra API call not currently implemented. `meta.total_count` will not appear.

## GET /ecommerce/orders/{id}

The `line_items[].discounts[]` array reflects each line item's allocated share from every
discount application on the order, including order-wide discounts. Shopify's
`discountAllocations` field does not distinguish between product-specific and order-wide
discount sources — all allocations for a given line item are returned together.

## GET /ecommerce/products

Shopify exposes counts via dedicated `/count.json` endpoints only — requires an extra API call not currently implemented. `meta.total_count` will not appear.

## GET /ecommerce/customers

Shopify exposes counts via dedicated `/count.json` endpoints only — requires an extra API call not currently implemented. `meta.total_count` will not appear.


[API reference](https://developers.apideck.com/apis/ecommerce/reference.md) · [Coverage matrix](https://developers.apideck.com/apis/ecommerce/coverage)
