API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

REST - Filters on customerGroup/supplierGroup attributes

0
I'm trying to filter all suppliers with a specific supplierGroupNumber and customers with a specific customerGroup, but I cannot seem to get anything but an error.
Example rest calls I have tried:

filter=customerGroup$eq:1

filter=customerGroupNumber$eq:1

filter=customerGroup.customerGroupNumber$eq:1

If I create a different filter, it works (fx fiter=barred$eq:True)
created Aug 27, 2016 by tsdev
0% Accept Rate
Q 1 A 0 C 0

1 Answer

0
Demo of filtering on customerGroupNumber on /customers:
https://restdemo.e-conomic.com/index.html?path=customer-groups&filter=customerGroupNumber$eq:1

Filtering on supplierGroupNumber on /suppliers isn't available. Supplier Groups only exist inside the inventory module.

https://restdemo.e-conomic.com/index.html?path=suppliers&filter=supplierGroupNumber$eq:1
"allowedFilteringFields": [
       "supplierNumber",
       "name",
       "currency",
       "barred",
       "corporateIdentificationNumber",
       "email",
       "address",
       "zip",
       "city",
       "country",
       "bankAccount",
       "defaultInvoiceText"
   ]
answered Aug 29, 2016 by olej
Visma e-conomic A/S
...