Apply advanced filters to incoming webshop orders

What if you have linked a web shop in our application but you don’t want to receive certain orders. No problem! Our advanced filters enable you to decide which orders are received and which ones are not, based on all possible order content. Where our basic filter only gives you a choice between possible order statuses, you can use advanced filters to determine in detail which orders will or will not be received by our Webship Online. For example, you can exclude orders from one specific country from Webship Online, or orders that contain a specific SKU, or come from a specific customer, etc.

What are the various filter options?

Different web shop platforms generate different order objects. In principle, you can filter all content from that order object using the following statements:

  • eq (EN:equals)
  • neq (EN:not equals)
  • in (EN: in)
  • nin (EN: not in)
  • lt (EN: less than)
  • lte (EN: less than or equals)
  • gt (EN: greater than)
  • gte (EN: greater than or equals)

Examples

The following filter can be applied to a Shopify web shop:

{
     "financial_status": {
         "eq": "paid"
     },
     "shipping_address": {
         "country_code": {
             "neq": "DE"
         }
     }
 }

This means that only orders with the status “paid” will be received if the shipping address does not contain the country code “DE” (Germany).

In the filter below, we exclude several countries with the statement ‘NIN’ (not in):

{
     "financial_status": {
         "eq": "paid"
     },
     "shipping_address": {
         "country_code": {
             "nin": ["DE", "US"]
         }
     }
 }

When this filter is applied, orders from Germany and the United States will not be received in Webship Online.

Below you can download the complete order objects (completed with fictitious data) for each web shop platform in a JSON format. This will tell you which filters are available and how you can build them:

How to apply filters?

Last but not least, you can apply these filters by navigating to “Shops” in Webship Online and selecting the desired web shop. You can then choose “advanced” (instead of “status”) under “order filters”.

Of bekijk onze uitgebreide walkthrough video waarin we stap voor stap door de applicatie gaan!