Order exclusions
Orders and gift cards left out of reports
Zero-tax markets
Countries where orders carry no tax
Order types
How each order’s type is set
Warehouse names
Which warehouse each product ships from
Imported orders
Products on orders imported into Shopify
Field mappings
Which Shopify fields fill Dema’s fields
Viewing and changing order settings
To see a storefront’s settings, go to Settings → Integrations, open Shopify and expand the storefront under Order settings. Each group shows its saved values, or the default if nothing is saved. If order settings are turned off for a storefront, Dema doesn’t process its new orders, and Order settings shows a warning for that storefront. To change a setting, contact your Customer Success Manager. You can also ask the Dema Agent to explain a setting and preview how a change would affect your recent orders.A few accounts have adjustments that Dema sets outside these settings, such as a fixed order type or warehouse name. If your data doesn’t match the settings shown, contact your Customer Success Manager.
Order exclusions
An excluded order gets the order typeEXCLUDED and is left out of every report, so it adds nothing to revenue, order counts, costs or returns. Exclusions are for orders that aren’t real sales, such as test orders, internal orders, wholesale orders you report elsewhere, or orders from a store you no longer track.
By default nothing is excluded, not even zero-value orders, fully discounted orders or gift card purchases. An order’s status can still keep it out of some figures. Cancelled orders, for example, don’t count as revenue by default.
Order filters
Tags, gateways, source names and shop domains must match exactly, including case:
VIP and vip are different tags. An order is excluded if any one of these filters excludes it.
Zero-value, discounted and gift card orders
Zero-value vs fully discounted
Zero-value vs fully discounted
The difference is shipping. Free products with paid shipping make a fully discounted order with a total above 0. Free products with free shipping make an order that is both.
Paying with a gift card
Paying with a gift card
The gift card setting looks at what was bought, not how it was paid for. An order paid with a gift card is processed like any other order, and its products count as revenue.
Other exclusions set by Dema
Other exclusions set by Dema
Your Customer Success Manager can also exclude orders by mapping their source name to the order type
EXCLUDED (see Order types). Some stores have extra rules set by Dema, for example to leave out exchange items fulfilled outside the online store.Zero-tax markets
Use zero-tax markets where the tax Shopify reports shouldn’t be deducted from revenue. For orders to a listed country, Dema sets product, shipping and order tax to 0 and keeps the order total Shopify reports. Dema uses the shipping address country. Without a shipping address it uses the billing country, and without either, the country of the retail location. Countries are entered as two-letter codes, such asNO or CH.
Default: no markets. Dema uses the tax Shopify reports, capped at the order total, and recalculates it when products such as gift cards are removed.
Some accounts have tax adjustments set by Dema, shown here as All markets or Other markets. They can calculate VAT from each country’s rate, or remove taxes itemized separately, such as US sales tax.
Order types
Each order gets one order type, which you can use as a dimension in reports. Dema checks these rules in order and uses the first that applies:
Default: every order that isn’t excluded is
ONLINE, unless Dema has set a fixed order type for your store.
Warehouse names
These settings give each product on an order the name of the warehouse it shipped from, which you can use as a dimension and in cost rules. To control which storefronts a warehouse’s stock counts for, use the warehouse mapping instead. By default, every product gets the warehouse nameWAREHOUSE, unless Dema has set a different default for your account.
If you fulfill from several Shopify locations, Dema can name warehouses after them instead. This option is shown as Shopify locations. Each product then takes the location that fulfilled it, or the location Shopify assigned it to. A product with neither takes the order’s first fulfillment location, or the default warehouse if the order has none.
When Shopify locations are used, two more settings control the names:
Imported orders
Orders imported into Shopify from another system often contain products that aren’t linked to a Shopify variant (the specific size or color of a product). Dema identifies each product by a product ID and a variant number. For these products, the Line items without a variant setting decides where both come from, so they match your catalog.
Products linked to a Shopify variant aren’t affected, and products without a SKU keep the default.
Other product ID rules set by Dema, for example reading IDs from the SKU on every order, may also show in this group.
Field mappings
Field mappings decide which Shopify field fills each of Dema’s order and order-line fields. Most stores never change them, because the defaults already cover the standard fields such as IDs, prices, discounts, customer and country. Every Shopify store gets three order-level custom attributes by default:
Your Customer Success Manager can map other Shopify fields into custom attributes, such as a bundle ID, a product’s fulfillment date or import duties, so you can filter and segment by them as dimensions. A mapping can replace a default attribute or add a new one.
Need help?
Contact support
Email us at support@dema.ai for further assistance
Shopify integration
Install the Dema app and connect your store

