Vendor Compliance Records
- Get Vendor Compliance Record Object Definition
- Query and List Vendor Compliance Records
- Query and List Vendor Compliance Records (Legacy)
- Get Vendor Compliance Records
- Get Vendor Compliance Records by ID
- Create Vendor Compliance Records
- Update Vendor Compliance Record
- Delete Vendor Compliance Records
NEW!
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 record applies a compliance type to a specified vendor so that you can track dates, amounts, and documents that show compliance.
NOTE: To enable the Vendor Compliance subscription, first enable Accounts Payable, Purchasing, and Construction. Vendor compliance is available only for Construction at this time.
Out-of-compliance error messages
If the vendor specified in a compliance record is out of compliance with the compliance definition (for example, the insurance policy has expired), and the PAYMENTNOTIFICATION
is set to error
, payments to that vendor will be blocked and an error message will be returned like the example shown to the right.
<error>
<errorno>CRE-3211</errorno>
<description></description>
<description2>Expiration date compliance error CR.01091--General liability insurance</description2>
<correction></correction>
</error>
where:
Expiration date
is the validation rule, eitherExpiration date
orDocument received
error
orwarning
based on thePAYMENTNOTIFICATION
settingCR.01091
is the COMPLIANCERECORDID from the compliance recordGeneral liability insurance
is theNAME
from the compliance record
Get Vendor Compliance Record Object Definition
lookup
List all the fields and relationships for the vendor compliance record object:
<lookup>
<object>COMPLIANCERECORD</object>
</lookup>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
Query and List Vendor Compliance Records
query
List the record number, ID, name, and compliance type ID for each vendor compliance record that has a specified
COMPLIANCETYPEID
.
<query>
<object>COMPLIANCERECORD</object>
<select>
<field>RECORDNO</field>
<field>COMPLIANCERECORDID</field>
<field>NAME</field>
<field>COMPLIANCETYPEID</field>
</select>
<filter>
<equalto>
<field>COMPLIANCETYPEID</field>
<value>GL-Insurance</value>
</equalto>
</filter>
</query>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
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 Records (Legacy)
readByQuery
<readByQuery>
<object>COMPLIANCERECORD</object>
<fields>RECORDNO, COMPLIANCERECORDID, NAME, COMPLIANCETYPEID, COMPLIANCEDEFINITIONID</fields>
<query>COMPLIANCETYPEID = 'GL-Insurance'</query>
</readByQuery>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
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 Records
read
Get all vendor compliance record fields for the specified keys:
<read>
<object>COMPLIANCERECORD</object>
<fields>*</fields>
<keys>42</keys>
</read>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
keys | Required | string | Comma-separated list of RECORDNO of the COMPLIANCERECORD 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 Records by ID
readByName
<readByName>
<object>compliancerecord</object>
<fields>*</fields>
<keys>GL-Insurance</keys>
</readByName>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
keys | Required | string | Comma-separated list of COMPLIANCERECORDID of the compliance record 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 Vendor Compliance Records
create
Create a vendor compliance record using the required values:
<create>
<COMPLIANCERECORD>
<COMPLIANCETYPEID>GL-Insurance</COMPLIANCETYPEID>
<NAME>Seamless Cement GL Insurance</NAME>
<VENDORID>1099 Int</VENDORID>
</COMPLIANCERECORD>
</create>
Parameters
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCERECORD | Required | object | Type of object to create. |
COMPLIANCERECORD
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCETYPEID | Required | string | ID of the compliance type to use to create the compliance record. The COMPLIANCERECORDID for the new compliance record will be generated by the system using the document sequence specified in the compliance type. |
NAME | Required | string | Name for the compliance record. |
VENDORID | Required | string | ID of the vendor that this compliance record applies to. |
DESCRIPTION | Optional | string | Description of the compliance record. |
STATUS | Optional | string | Status of compliance record:
|
CONTACTNAME | Optional | string | The name of a contact to associate with this compliance record. |
POLICYNUMBER | Optional | string | The policy or document number for this record. |
EFFECTIVEDATE | Optional | string | Date when policy or document becomes effective. Used for reporting. |
EXPIRATIONDATE | Optional | string | Date when the policy or document expires. If the VALIDATIONRULE in the applicable compliance definition is set to Expiration date , this value is checked when payment to the vendor is initiated. |
AMOUNT | Optional | currency | The amount of insurance coverage provided, for capturing insurance liability limitation. Used for reporting. |
ADDITIONALINSURED | Optional | boolean | Use true to indicate that the contractor is listed as an additional insured on the policy, otherwise use false . (Default: false ) |
REFERENCENUMBER | Optional | string | Document reference number. |
SUBROGATIONWAIVER | Optional | boolean | Use true to indicate that the policy includes a subrogation waiver, otherwise use false . (Default: false ) |
DOCUMENTRECEIVED | Optional | boolean | Use true to indicate that the required compliance document has been received, otherwise use false . If the VALIDATIONRULE in the applicable compliance definition is set to Document received , this value is used to determine compliance. (Default: false ) |
RECEIVEDDATE | Optional | string | The date that the compliance document was received. |
RECEIVEDBYID | Optional | string | The ID of the employee who received the compliance document. |
NOTIFICATIONOVERRIDE | Optional | Boolean | Use true to override the PAYMENTNOTIFICATION setting defined in the compliance definition so that the vendor can be paid even if out-of-compliance, otherwise use false . (Default: false ) |
SUPDOCID | Optional | string | The reference number of any supporting documentation. |
Update Vendor Compliance Record
update
Update a vendor compliance record’s description using
recordno
:
<update>
<COMPLIANCERECORD>
<RECORDNO>42</RECORDNO>
<DESCRIPTION>These compliance docs apply to FY25</DESCRIPTION>
</COMPLIANCERECORD>
</update>
Parameters
Name | Required | Type | Description |
---|---|---|---|
COMPLIANCERECORD | Required | object | Object type to update |
COMPLIANCERECORD
Name | Required | Type | Description |
---|---|---|---|
RECORDNO | Required | integer | RECORDNO of the compliance record to update. |
NAME | Optional | string | Name for the compliance record. |
VENDORID | Optional | string | ID of the vendor that this compliance record applies to. |
DESCRIPTION | Optional | string | Description of the compliance record. |
STATUS | Optional | string | Status of compliance record:
|
CONTACTNAME | Optional | string | The name of a contact to associate with this compliance record. |
POLICYNUMBER | Optional | string | The policy or document number for this record. |
EFFECTIVEDATE | Optional | string | Date when policy or document becomes effective. Used for reporting. |
EXPIRATIONDATE | Optional | string | Date when the policy or document expires. If the VALIDATIONRULE in the applicable compliance definition is set to Expiration date , this value is checked when payment to the vendor is initiated. |
AMOUNT | Optional | currency | The amount of insurance coverage provided, for capturing insurance liability limitation. Used for reporting. |
ADDITIONALINSURED | Optional | boolean | Use true to indicate that the contractor is listed as an additional insured on the policy, otherwise use false . |
REFERENCENUMBER | Optional | string | Document reference number. |
SUBROGATIONWAIVER | Optional | boolean | Use true to indicate that the policy includes a subrogation waiver, otherwise use false . |
DOCUMENTRECEIVED | Optional | boolean | Use true to indicate that the required compliance document has been received, otherwise use false . If the VALIDATIONRULE in the applicable compliance definition is set to Document received , this value is used to determine compliance. |
RECEIVEDDATE | Optional | string | The date that the compliance document was received. |
RECEIVEDBYID | Optional | string | The ID of the employee who received the compliance document. |
NOTIFICATIONOVERRIDE | Optional | Boolean | Use true to override the PAYMENTNOTIFICATION setting defined in the compliance definition so that the vendor can be paid even if out-of-compliance, otherwise use false . |
SUPDOCID | Optional | string | The reference number of any supporting documentation. |
Delete Vendor Compliance Records
delete
<delete>
<object>compliancerecord</object>
<keys>42</keys>
</delete>
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
keys | Required | string | Comma-separated list of compliance record RECORDNO to delete |