Vendor restricted departments

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.

List vendor restricted departments

get/objects/accounts-payable/vendor-restricted-department

Returns a collection with a key, ID, and link for each vendor 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.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "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"
      }
    ],
  • "ia::meta": {
    • "totalCount": 2,
    • "start": 1,
    • "pageSize": 100
    }
}

Get a vendor restricted department

get/objects/accounts-payable/vendor-restricted-department/{key}

Returns detailed information for a specified vendor restricted department.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned unique key for the vendor restricted department.

Example: 77
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "77",
    • "objectType": "VENDOR",
    • "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/142"
      },
    • "href": "/objects/accounts-payable/vendor-restricted-department/77"
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Query vendor restricted departments

post/services/core/query

Use the query service to find vendor restricted departments that meet certain criteria and to specify the properties that are returned.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "ia::error": {
      • "code": "invalidRequest",
      • "message": "A POST request requires a payload",
      • "errorId": "REST-1028",
      • "additionalInfo": {
        },
      • "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 0,
    • "totalError": 1
    }
}