Draft orders

Draft orders — value, quantity and count by status, for the quote/invoice pipeline.

18 fields — 11 dimensions, 7 metrics. Date clauses (SINCE, UNTIL, DURING) use createdAt.

The live, authoritative list is always GET /v1/datasets — this page is regenerated from the same catalog, but the endpoint reflects exactly what is deployed.

Query it

FROM draft_orders
  SHOW draft_order_count
  GROUP BY status
  SINCE -30d

See Querying with SoloQL for the language.

Fetch records

curl -H "Authorization: Bearer esk_live_..." \
  "https://api.ecomsolo.com/v1/draft_orders?page_size=50&fields=status,name,currency"

Any field marked ✅ below can be returned, requested via fields=, and used as an equality filter (?field=value). Fields marked aggregate only exist for COUNT-style questions and have no value on a single record — ask SoloQL for those. See Fetching records.

Fields

FieldTypeRoleRecordsDescription
statusstringdimension✅Draft order status (open, invoice sent, completed).
namestringdimension✅Draft order name, e.g. #D1.
currencystringdimension✅Draft order currency code.
emailstringdimension✅Customer email on the draft order.
readybooleandimension✅Whether the draft order is ready to be completed.
visible_to_customerbooleandimension✅Whether the draft order is visible to the customer.
created_atdatedimension✅When the draft order was created.
completed_atdatedimension✅When the draft order was completed into an order.
draft_order_countnumbermetricaggregate onlyNumber of draft orders in the group (document count — value_count on createdAt). Sums across stores.
total_pricemoneymetric✅Total draft order value including taxes and shipping.
subtotalmoneymetric✅Line items value before shipping and taxes.
total_taxmoneymetric✅Total tax on the draft order.
total_shippingmoneymetric✅Shipping charged on the draft order.
total_discountsmoneymetric✅Total discounts applied to the draft order.
total_quantitynumbermetric✅Total number of line item units in the draft order.
storestringdimension✅The shop the record belongs to. Filter with WHERE store IN ('Shop name') or GROUP BY store.
store_idstringdimension✅The shop's raw identifier — what an export or the API reports. Same shops as Store, shown as ids.
store_domainstringdimension✅The shop's myshopify.com domain. Filter with WHERE store_domain = 'shop.myshopify.com'.