In shared multi-entity companies, customers can be restricted to specific departments or department groups to prevent the customer from being used in the wrong entity.
Returns a collection with a key, ID, and link for each customer restricted department. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "76",
- "id": "76",
- "href": "/objects/accounts-receivable/customer-restricted-department/76"
}, - {
- "key": "77",
- "id": "77",
- "href": "/objects/accounts-receivable/customer-restricted-department/77"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100
}
}
Returns detailed information for a specified customer restricted department.
key required | string System-assigned unique key for the customer restricted department. Example: 77 |
OK
Bad Request
{- "ia::result": {
- "key": "77",
- "objectType": "CUSTOMER",
- "id": "77",
- "department": {
- "key": "24",
- "id": "DES",
- "href": "/objects/company-config/department/24"
}, - "departmentGroup": {
- "key": null,
- "id": null
}, - "customer": {
- "key": "330",
- "id": "D10",
- "href": "/objects/accounts-receivable/customer/142"
}, - "href": "/objects/accounts-receivable/customer-restricted-department/77"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Use the query service to find customer restricted departments that meet certain criteria and to specify the properties that are returned.
OK