In shared multi-entity companies, vendors can be restricted to specific departments or department groups to prevent the vendor from being used in the wrong entity.
Create and maintain vendor restricted departments from the owning vendor object.
Returns a collection with a key, ID, and link for each vendor restricted department. This operation is mostly for use in testing; use the query service 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-payable/vendor-restricted-department/76"
}, - {
- "key": "77",
- "id": "77",
- "href": "/objects/accounts-payable/vendor-restricted-department/77"
}, - {
- "key": "78",
- "id": "78",
- "href": "/objects/accounts-payable/vendor-restricted-department/78"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100
}
}
Returns detailed information for a specified vendor restricted department.
key required | string System-assigned unique key for the vendor restricted department. Example: 77 |
OK
Bad Request
{- "ia::result": {
- "key": "77",
- "id": "77",
- "department": {
- "key": "24",
- "id": "DES",
- "href": "/objects/company-config/department/24"
}, - "departmentGroup": {
- "key": null,
- "id": null
}, - "vendor": {
- "key": "330",
- "id": "D10",
- "href": "/objects/accounts-payable/vendor/330"
}, - "href": "/objects/accounts-payable/vendor-restricted-department/77"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}