Vendor Compliance Records
- Get Vendor Compliance Record Object Definition
- Query and List Vendor Compliance Records
- Get Vendor Compliance Records
- Get Vendor Compliance Records by ID
- Create Vendor Compliance Records
- Update Vendor Compliance Record
- Delete Vendor Compliance Records
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 or primary document 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.
where:
Expiration date
is the validation rule, eitherExpiration date
orDocument received
error
orwarning
based on thePAYMENTNOTIFICATION
settingCR.01091
is theCOMPLIANCERECORDID
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:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
Query and List Vendor Compliance Records
query
List the specified fields for each vendor compliance record that has a specified
COMPLIANCERECORDID
.
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 ) |
Get Vendor Compliance Records
read
Get all vendor compliance record fields for the specified keys:
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
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:
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 ) |
PROJECTID | Optional | string | Unique user-defined project identifier. Should refer to an existing, active project record. The project is retrieved from the primary document header. |
NOTES | Optional | string | Text field for user-added notes. Use 4000 or fewer characters. |
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. |
SENDTOCONTACTNAME | Optional | string | The name of the contact to whom the lien waiver will be sent. Applies only when CATEGORY is Lien waiver . If CATEGORY is not set to Lien waiver and a value is supplied, then an error is returned. |
Update Vendor Compliance Record
update
Update a vendor compliance record’s description using
recordno
:
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. |
PROJECTID | Optional | string | Unique user-defined project identifier. Should refer to an existing, active or inactive project record. The project is retrieved from the primary document header. |
NOTES | Optional | string | Text field for user-added notes. Use 4000 or fewer characters. |
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. |
FINALCOMPLIANCE | Optional | boolean | Applicable only when the Category is ‘Lien waiver’. Indictes whether the compliance record is finalized. Options are true or false (default). If CATEGORY is not set to Lien waiver and a value is supplied, then an error is returned. |
SENDTOCONTACTNAME | Optional | string | The name of the contact to whom the lien waiver will be sent. Applies only when CATEGORY is Lien waiver . If CATEGORY is not set to Lien waiver and a value is supplied, then an error is returned. |
Delete Vendor Compliance Records
delete
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use COMPLIANCERECORD |
keys | Required | string | Comma-separated list of compliance record RECORDNO to delete |