Vendor Compliance Definitions
- Get the Vendor Compliance Object Definition
- Query and List Vendor Compliance Definitions
- Query and List Vendor Compliance Definitions (Legacy)
- Get Vendor Compliance Definitions
- Get Vendor Compliance Definitions by ID
- Create a Vendor Compliance Definition
- Update a Vendor Compliance Definition
- Delete a Vendor Compliance Definition
Vendor compliance is the validation that a subcontractor or vendor has provided documents required for a job. For example, the vendor might need to supply proof of insurance, certified reports, lien waivers, or other misc documents like permits, licenses, and so forth.
A compliance definition sets a compliance category (insurance, lien waiver, or miscellaneous), how validation is tracked, and whether payment is allowed if a vendor is not in compliance. Validation is based on an expiration date or whether a compliance document is received.
NOTE: To enable the Vendor Compliance subscription, first enable Accounts Payable, Purchasing, and Construction. Vendor compliance is available only for Construction at this time.
Get the Vendor Compliance Object Definition
lookup
List all the fields and relationships for the vendor compliance definition object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
Query and List Vendor Compliance Definitions
query
List the specified fields for each vendor compliance definition where the status is active:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
Query and List Vendor Compliance Definitions (Legacy)
readByQuery
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
fields | Optional | string | Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value. |
query | Required | string | SQL-like query based on fields on the object. The following operators are supported: < , > , >= , <= , = , like , not like , in , not in , IS NOT NULL , IS NULL , AND , OR . Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli' ). Joins are not supported. |
pagesize | Optional | integer | Custom page size between 1 and 1000 items (Default: 100 ) |
Get Vendor Compliance Definitions
read
Get all vendor compliance definition fields for the specified keys:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
keys | Required | string | Comma-separated list of RECORDNO of the vendor compliance definition to get |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
Get Vendor Compliance Definitions by ID
readByName
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
keys | Required | string | Comma-separated list of COMPLIANCEDEFINITIONID of the compliance definition to get. |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
Create a Vendor Compliance Definition
create
NOTE: Compliance definitions for lien waivers uses the primary document feature to generate compliance records. Set PRIMARYDOC to true to use primary documents in Construction.
Create an insurance compliance definition record for specific vendor types:
Create a lien waiver compliance definition record that allows lien waivers with negative amounts:
Parameters
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCEDEFINITION | Required | object | Type of object to create. |
COMPLIANCEDEFINITION
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCEDEFINITIONID | Required | string | Unique ID for the compliance definition. |
NAME | Required | string | The compliance definition name. |
CATEGORY | Required | string | Requirement category:
|
VALIDATIONRULE | Required | string | How compliance will be validated. Options depend on the CATEGORY value:
|
PAYMENTNOTIFICATION | Required | string | Action to take when a vendor is out of compliance with this definition and a payment is attempted:
|
DESCRIPTION | Optional | string | Description of the compliance definition. |
STATUS | Optional | string | Status of compliance definition.
|
TRACKBY | Optional | string | The objects that the compliance definition can be applied to.
|
GENERATERULE | Optional | string | Indicates whether to automatically generate compliance records and how to do so. For example, users can select which vendor types automatically generate compliance records.
|
COMPDEFENTRIES | Optional | array | List of vendor types or primary document IDs for which to generate compliance records when GENERATERULE is set to Automatic by type . Options are:
|
GENERATEFOREACH | Optional | string | The type of transaction for which to generate lien waiver documents. Required if CATEGORY is set to Lien waiver ; not applicable to other categories.
|
MINLIENWAIVERAMOUNT | Optional | currency | When CATEGORY is set to Lien waiver , sets a minimum amount required for a lien waiver to be generated. For example, users might want orders of less than $10,000, which might be partial orders, to not require a lien waiver. Use 0 or a null value for no minimum. |
MINPRIMARYDOCAMOUNT | Optional | currency | When CATEGORY is set to Lien waiver , sets a minimum amount required for a lien waiver to be generated based on the primary document. For example, users might want orders of less than $10,000, which might be partial orders, to not require a lien waiver. Use 0 or a null value for no minimum. |
ALLOWNEGATIVELIENWAIVERS | Optional | boolean | Use true (default) to indicate that lien waivers can be generated with negative amounts, otherwise use false . Applies only when CATEGORY is set to ‘Lien waiver’. If CATEGORY is not ‘Lien waiver’ and a value is supplied, an error is returned. |
Update a Vendor Compliance Definition
update
NOTE: Lien waivers uses the primary document feature to generate compliance records. Set PRIMARYDOC to true to use primary documents in Construction.
Update a vendor compliance definition record using
COMPLIANCEDEFINITIONID
orRECORDNO
. If both are used, they must belong to the same record:
Update a vendor compliance definition record that does not allow lien waivers with negative amounts.
Parameters
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCEDEFINITION | Required | object | Type of object to update |
COMPLIANCEDEFINITION
Name | Required | Type | Description |
---|---|---|---|
RECORDNO | Optional | integer | RECORDNO of the compliance definition to update. Required if not using COMPLIANCEDEFINITIONID . |
COMPLIANCEDEFINITIONID | Optional | string | ID of the compliance definition to update. Required if not using RECORDNO . |
NAME | Required | string | The compliance definition name. |
VALIDATIONRULE | Required | string | How compliance will be validated. Options depend on the CATEGORY value:
|
PAYMENTNOTIFICATION | Required | string | Action to take when a vendor is out of compliance with this definition and a payment is attempted:
|
DESCRIPTION | Optional | string | Description of the compliance definition. |
STATUS | Optional | string | Status of compliance definition.
|
GENERATERULE | Optional | string | Indicates whether to automatically generate compliance records and how to do so. For example, users can select which vendor types automatically generate compliance records.
|
COMPDEFENTRIES | Optional | array | List of vendor types or primary document IDs for which to generate compliance records when GENERATERULE is set to Automatic by type . Options are:
|
MINLIENWAIVERAMOUNT | Optional | currency | When CATEGORY is set to Lien waiver , sets a minimum amount required for a lien waiver to be generated. For example, users might want orders of less than $10,000, which might be partial orders, to not require a lien waiver. Use 0 or a null value for no minimum. |
MINPRIMARYDOCAMOUNT | Optional | currency | When CATEGORY is set to Lien waiver , sets a minimum amount required for a lien waiver to be generated based on the primary document. For example, users might want orders of less than $10,000, which might be partial orders, to not require a lien waiver. Use 0 or a null value for no minimum. |
ALLOWNEGATIVELIENWAIVERS | Optional | boolean | Use true (default) to indicate that lien waivers can be generated with negative amounts, otherwise use false . Applies only when CATEGORY is set to Lien waiver . If CATEGORY is not Lien waiver and a value is supplied, an error is returned. This value only affects the generation of future lien waiver compliance records. |
Delete a Vendor Compliance Definition
delete
Delete a vendor compliance definition. Note that you can only delete definitions not in use by vendor compliance records or types.
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCEDEFINITION |
keys | Required | string | Comma-separated list of compliance definition RECORDNO to delete |