| name | data type | constraints | description |
|---|---|---|---|
| id | number | ||
| priority | number | ||
| descriptionOrCode | string | ||
| ruleValues | map of string | ||
| referenceCode | string | ||
| transient | boolean | ||
| parentEntityType | object | ||
| code | string | required, max size: 255, min size: 1 | |
| historized | boolean | ||
| failStatus | InvoiceValidationStatusEnum | ||
| description | string | max size: 255, min size: 0 | |
| invoiceType | InvoiceType | ||
| notified | boolean | ||
| validationScript | ScriptInstance | ||
| validTo | number | ||
| validFrom | number | ||
| version | number | ||
| parentEntity | BusinessEntity | ||
| auditable | Auditable | ||
| appendGeneratedCode | boolean | ||
| toReorder | boolean | ||
| type | ValidationRuleTypeEnum | ||
| auditableFields | array of AuditableFieldHistory | ||
| validationEL | string | ||
| codeChanged | boolean | ||
| referenceDescription | string | ||
| descriptionAndCode | string |
Example
{
"id" : 12345,
"priority" : 12345,
"descriptionOrCode" : "...",
"ruleValues" : {
"property1" : "...",
"property2" : "..."
},
"referenceCode" : "...",
"transient" : true,
"parentEntityType" : { },
"code" : "...",
"historized" : true,
"failStatus" : "REJECTED",
"description" : "...",
"invoiceType" : {
"code" : "...",
"parentCFEntities" : [ {
"parentCFEntities" : [ { }, { } ],
"uuid" : "...",
"cfValues" : { },
"cfValuesNullSafe" : { },
"cfAccumulatedValues" : { },
"cfAccumulatedValuesNullSafe" : { },
"CFValuesCopy" : { },
"dirtyCF" : true,
"cfValuesAsValues" : {
"property1" : { },
"property2" : { }
}
}, {
"parentCFEntities" : [ { }, { } ],
"uuid" : "...",
"cfValues" : { },
"cfValuesNullSafe" : { },
"cfAccumulatedValues" : { },
"cfAccumulatedValuesNullSafe" : { },
"CFValuesCopy" : { },
"dirtyCF" : true,
"cfValuesAsValues" : {
"property1" : { },
"property2" : { }
}
} ],
"emailTemplate" : {
"version" : 12345,
"appendGeneratedCode" : true,
"code" : "...",
"media" : "CFT_FILE",
"notified" : true,
"subject" : "...",
"referenceCode" : "...",
"startDate" : 12345,
"translatedSubject" : {
"property1" : "...",
"property2" : "..."
},
"auditableFields" : [ { }, { } ],
"auditable" : { },
"textContent" : "...",
"htmlContent" : "...",
"parentEntity" : { },
"transient" : true,
"description" : "...",
"tagEndDelimiter" : "...",
"parentEntityType" : { },
"endDate" : 12345,
"translatedTextContent" : {
"property1" : "...",
"property2" : "..."
},
"referenceDescription" : "...",
"descriptionAndCode" : "...",
"tagStartDelimiter" : "...",
"type" : "OTHER",
"id" : 12345,
"descriptionOrCode" : "...",
"historized" : true,
"translatedHtmlContent" : {
"property1" : "...",
"property2" : "..."
},
"codeChanged" : true
},
"invoiceValidationRules" : [ {
"id" : 12345,
"priority" : 12345,
"descriptionOrCode" : "...",
"ruleValues" : {
"property1" : "...",
"property2" : "..."
},
"referenceCode" : "...",
"transient" : true,
"parentEntityType" : { },
"code" : "...",
"historized" : true,
"failStatus" : "REJECTED",
"description" : "...",
"invoiceType" : { },
"notified" : true,
"validationScript" : { },
"validTo" : 12345,
"validFrom" : 12345,
"version" : 12345,
"parentEntity" : { },
"auditable" : { },
"appendGeneratedCode" : true,
"toReorder" : true,
"type" : "EXPRESSION_LANGUAGE",
"auditableFields" : [ { }, { } ],
"validationEL" : "...",
"codeChanged" : true,
"referenceDescription" : "...",
"descriptionAndCode" : "..."
}, {
"id" : 12345,
"priority" : 12345,
"descriptionOrCode" : "...",
"ruleValues" : {
"property1" : "...",
"property2" : "..."
},
"referenceCode" : "...",
"transient" : true,
"parentEntityType" : { },
"code" : "...",
"historized" : true,
"failStatus" : "VALID",
"description" : "...",
"invoiceType" : { },
"notified" : true,
"validationScript" : { },
"validTo" : 12345,
"validFrom" : 12345,
"version" : 12345,
"parentEntity" : { },
"auditable" : { },
"appendGeneratedCode" : true,
"toReorder" : true,
"type" : "SCRIPT",
"auditableFields" : [ { }, { } ],
"validationEL" : "...",
"codeChanged" : true,
"referenceDescription" : "...",
"descriptionAndCode" : "..."
} ],
"auditableFields" : [ {
"notfiable" : true,
"notified" : true,
"auditType" : "STATUS",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
}, {
"notfiable" : true,
"notified" : true,
"auditType" : "STATUS",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
} ],
"parentEntityType" : { },
"parentEntity" : {
"referenceDescription" : "...",
"descriptionAndCode" : "...",
"version" : 12345,
"description" : "...",
"appendGeneratedCode" : true,
"referenceCode" : "...",
"id" : 12345,
"codeChanged" : true,
"descriptionOrCode" : "...",
"auditable" : { },
"parentEntityType" : { },
"historized" : true,
"transient" : true,
"parentEntity" : { },
"code" : "...",
"notified" : true,
"auditableFields" : [ { }, { } ]
},
"description" : "...",
"descriptionOrCode" : "...",
"occTemplateNegativeCodeEl" : "...",
"invoiceAccountable" : true,
"cfAccumulatedValues" : {
"valuesByCode" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"values" : {
"property1" : { },
"property2" : { }
},
"newVersionedCFValuePeriods" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"encrypted" : true
},
"version" : 12345,
"transient" : true,
"useSelfSequence" : true,
"customInvoiceXmlScriptInstance" : {
"version" : 12345,
"auditable" : { },
"sourcingRoles" : [ "...", "..." ],
"auditableFields" : [ { }, { } ],
"id" : 12345,
"referenceDescription" : "...",
"error" : true,
"description" : "...",
"codeChanged" : true,
"appendGeneratedCode" : true,
"transient" : true,
"active" : true,
"parentEntityType" : { },
"descriptionAndCode" : "...",
"scriptErrors" : [ { }, { } ],
"code" : "...",
"parentEntity" : { },
"scriptInstanceCategory" : { },
"sourceTypeEnum" : "JAVA_CLASS",
"notified" : true,
"historized" : true,
"scriptParameters" : [ { }, { } ],
"disabled" : true,
"reuse" : true,
"executionRoles" : [ "...", "..." ],
"descriptionOrCode" : "...",
"script" : "...",
"referenceCode" : "...",
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"occTemplate" : {
"journal" : { },
"contraAccountingCode2" : { },
"codeChanged" : true,
"descriptionOrCode" : "...",
"accountingScheme" : { },
"descriptionAndCode" : "...",
"notified" : true,
"occCategory" : "DEBIT",
"version" : 12345,
"accountingCode" : { },
"parentEntityType" : { },
"referenceDescription" : "...",
"historized" : true,
"referenceCode" : "...",
"auditable" : { },
"description" : "...",
"contraAccountingCode" : { },
"appendGeneratedCode" : true,
"parentEntity" : { },
"auditableFields" : [ { }, { } ],
"code" : "...",
"id" : 12345,
"accountCodeClientSide" : "...",
"transient" : true,
"manualCreationEnabled" : true
},
"codeChanged" : true,
"excludeFromAgedTrialBalance" : true,
"sellerSequence" : [ {
"id" : { },
"transient" : true,
"prefixEL" : "...",
"invoiceSequence" : { },
"invoiceType" : { },
"seller" : { }
}, {
"id" : { },
"transient" : true,
"prefixEL" : "...",
"invoiceSequence" : { },
"invoiceType" : { },
"seller" : { }
} ],
"occTemplateNegative" : {
"journal" : { },
"contraAccountingCode2" : { },
"codeChanged" : true,
"descriptionOrCode" : "...",
"accountingScheme" : { },
"descriptionAndCode" : "...",
"notified" : true,
"occCategory" : "DEBIT",
"version" : 12345,
"accountingCode" : { },
"parentEntityType" : { },
"referenceDescription" : "...",
"historized" : true,
"referenceCode" : "...",
"auditable" : { },
"description" : "...",
"contraAccountingCode" : { },
"appendGeneratedCode" : true,
"parentEntity" : { },
"auditableFields" : [ { }, { } ],
"code" : "...",
"id" : 12345,
"accountCodeClientSide" : "...",
"transient" : true,
"manualCreationEnabled" : true
},
"mailingType" : "MANUAL",
"historized" : true,
"appliesTo" : [ { }, { } ],
"occTemplateCodeEl" : "...",
"pdfFilenameEL" : "...",
"cfValues" : {
"valuesByCode" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"values" : {
"property1" : { },
"property2" : { }
},
"newVersionedCFValuePeriods" : {
"property1" : [ { }, { } ],
"property2" : [ { }, { } ]
},
"encrypted" : true
},
"referenceCode" : "...",
"invoiceSequence" : {
"invoiceTypeSellerSequences" : [ { }, { } ],
"auditableFields" : [ { }, { } ],
"descriptionAndCode" : "...",
"previousInvoiceNb" : 12345,
"descriptionOrCode" : "...",
"referenceDescription" : "...",
"codeChanged" : true,
"genericEntityCodes" : [ { }, { } ],
"transient" : true,
"sequenceType" : "UUID",
"description" : "...",
"parentEntity" : { },
"version" : 12345,
"parentEntityType" : { },
"sequencePattern" : "...",
"code" : "...",
"invoiceTypes" : [ { }, { } ],
"historized" : true,
"appendGeneratedCode" : true,
"auditable" : { },
"sequenceSize" : 12345,
"notified" : true,
"referenceCode" : "...",
"currentNumber" : 12345
},
"auditable" : {
"lastUser" : "...",
"created" : 12345,
"updater" : "...",
"lastModified" : 12345,
"updated" : 12345,
"creator" : "..."
},
"appendGeneratedCode" : true,
"descriptionAndCode" : "...",
"taxScript" : {
"version" : 12345,
"auditable" : { },
"sourcingRoles" : [ "...", "..." ],
"auditableFields" : [ { }, { } ],
"id" : 12345,
"referenceDescription" : "...",
"error" : true,
"description" : "...",
"codeChanged" : true,
"appendGeneratedCode" : true,
"transient" : true,
"active" : true,
"parentEntityType" : { },
"descriptionAndCode" : "...",
"scriptErrors" : [ { }, { } ],
"code" : "...",
"parentEntity" : { },
"scriptInstanceCategory" : { },
"sourceTypeEnum" : "JAVA_CLASS",
"notified" : true,
"historized" : true,
"scriptParameters" : [ { }, { } ],
"disabled" : true,
"reuse" : true,
"executionRoles" : [ "...", "..." ],
"descriptionOrCode" : "...",
"script" : "...",
"referenceCode" : "...",
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"billingTemplateNameEL" : "...",
"referenceDescription" : "...",
"invoiceValidationScript" : {
"version" : 12345,
"auditable" : { },
"sourcingRoles" : [ "...", "..." ],
"auditableFields" : [ { }, { } ],
"id" : 12345,
"referenceDescription" : "...",
"error" : true,
"description" : "...",
"codeChanged" : true,
"appendGeneratedCode" : true,
"transient" : true,
"active" : true,
"parentEntityType" : { },
"descriptionAndCode" : "...",
"scriptErrors" : [ { }, { } ],
"code" : "...",
"parentEntity" : { },
"scriptInstanceCategory" : { },
"sourceTypeEnum" : "JAVA",
"notified" : true,
"historized" : true,
"scriptParameters" : [ { }, { } ],
"disabled" : true,
"reuse" : true,
"executionRoles" : [ "...", "..." ],
"descriptionOrCode" : "...",
"script" : "...",
"referenceCode" : "...",
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"notified" : true,
"xmlFilenameEL" : "...",
"uuid" : "...",
"prefixEL" : "...",
"matchingAuto" : true,
"id" : 12345
},
"notified" : true,
"validationScript" : {
"version" : 12345,
"auditable" : {
"lastUser" : "...",
"created" : 12345,
"updater" : "...",
"lastModified" : 12345,
"updated" : 12345,
"creator" : "..."
},
"sourcingRoles" : [ "...", "..." ],
"auditableFields" : [ {
"notfiable" : true,
"notified" : true,
"auditType" : "STATUS",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
}, {
"notfiable" : true,
"notified" : true,
"auditType" : "STATUS",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
} ],
"id" : 12345,
"referenceDescription" : "...",
"error" : true,
"description" : "...",
"codeChanged" : true,
"appendGeneratedCode" : true,
"transient" : true,
"active" : true,
"parentEntityType" : { },
"descriptionAndCode" : "...",
"scriptErrors" : [ {
"message" : "...",
"lineNumber" : 12345,
"columnNumber" : 12345,
"sourceFile" : "..."
}, {
"message" : "...",
"lineNumber" : 12345,
"columnNumber" : 12345,
"sourceFile" : "..."
} ],
"code" : "...",
"parentEntity" : {
"referenceDescription" : "...",
"descriptionAndCode" : "...",
"version" : 12345,
"description" : "...",
"appendGeneratedCode" : true,
"referenceCode" : "...",
"id" : 12345,
"codeChanged" : true,
"descriptionOrCode" : "...",
"auditable" : { },
"parentEntityType" : { },
"historized" : true,
"transient" : true,
"parentEntity" : { },
"code" : "...",
"notified" : true,
"auditableFields" : [ { }, { } ]
},
"scriptInstanceCategory" : {
"auditable" : { },
"transient" : true,
"referenceCode" : "...",
"auditableFields" : [ { }, { } ],
"id" : 12345,
"codeChanged" : true,
"description" : "...",
"code" : "...",
"descriptionOrCode" : "...",
"referenceDescription" : "...",
"notified" : true,
"parentEntityType" : { },
"parentEntity" : { },
"historized" : true,
"descriptionAndCode" : "...",
"appendGeneratedCode" : true,
"version" : 12345,
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"sourceTypeEnum" : "JAVA",
"notified" : true,
"historized" : true,
"scriptParameters" : [ {
"collection" : true,
"version" : 12345,
"code" : "...",
"className" : "...",
"id" : 12345,
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"mandatory" : true,
"defaultValue" : "...",
"allowedValues" : "...",
"scriptInstance" : { },
"transient" : true,
"valuesSeparator" : "..."
}, {
"collection" : true,
"version" : 12345,
"code" : "...",
"className" : "...",
"id" : 12345,
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
},
"mandatory" : true,
"defaultValue" : "...",
"allowedValues" : "...",
"scriptInstance" : { },
"transient" : true,
"valuesSeparator" : "..."
} ],
"disabled" : true,
"reuse" : true,
"executionRoles" : [ "...", "..." ],
"descriptionOrCode" : "...",
"script" : "...",
"referenceCode" : "...",
"descriptionI18n" : {
"property1" : "...",
"property2" : "..."
}
},
"validTo" : 12345,
"validFrom" : 12345,
"version" : 12345,
"parentEntity" : {
"referenceDescription" : "...",
"descriptionAndCode" : "...",
"version" : 12345,
"description" : "...",
"appendGeneratedCode" : true,
"referenceCode" : "...",
"id" : 12345,
"codeChanged" : true,
"descriptionOrCode" : "...",
"auditable" : {
"lastUser" : "...",
"created" : 12345,
"updater" : "...",
"lastModified" : 12345,
"updated" : 12345,
"creator" : "..."
},
"parentEntityType" : { },
"historized" : true,
"transient" : true,
"parentEntity" : { },
"code" : "...",
"notified" : true,
"auditableFields" : [ {
"notfiable" : true,
"notified" : true,
"auditType" : "STATUS",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
}, {
"notfiable" : true,
"notified" : true,
"auditType" : "RENEWAL",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
} ]
},
"auditable" : {
"lastUser" : "...",
"created" : 12345,
"updater" : "...",
"lastModified" : 12345,
"updated" : 12345,
"creator" : "..."
},
"appendGeneratedCode" : true,
"toReorder" : true,
"type" : "SCRIPT",
"auditableFields" : [ {
"notfiable" : true,
"notified" : true,
"auditType" : "OTHER",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
}, {
"notfiable" : true,
"notified" : true,
"auditType" : "RENEWAL",
"currentState" : { },
"fieldName" : "...",
"previousState" : { },
"historized" : true,
"historable" : true
} ],
"validationEL" : "...",
"codeChanged" : true,
"referenceDescription" : "...",
"descriptionAndCode" : "..."
}