Filter locations by field values. Format: filters[]={fieldName}:{value}
Multiple filters can be combined. Use the 'op' parameter to specify AND (default) or OR operation.
AND filter example (default):
GET /api/management/v2/locations?filters[]=isActive:1&filters[]=isWorkplace:1
Returns active workplace locations (both conditions must match)
OR filter example:
GET /api/management/v2/locations?filters[]=parentId:10&filters[]=parentId:20&op=OR
Returns locations with parent ID 10 OR 20 (either condition matches)
Available filterable fields:
- id: Location ID
- name: Location name
- code: Location code
- isActive: Active status (boolean: use 1 for true, 0 for false)
- parentId: Parent location ID
- isWorkplace: Is workplace (boolean: use 1 for true, 0 for false)
- isPayCenter: Is pay center (boolean: use 1 for true, 0 for false)