addedInput schema / properties / items / items / properties
Added value: +{
+ "item": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acEntries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountCode": {
+ "description": "Cash Receipts analysis account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "analysisCategoryId": {
+ "description": "Cash Receipts analysis category id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "description": {
+ "description": "Analysis-line description.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "Positive portion of the receipt total assigned to this analysis entry.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "accountCode",
+ "analysisCategoryId",
+ "description",
+ "value"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "bookTranTypeId": {
+ "const": 1,
+ "description": "Cash Receipt book transaction type id. Must be 1.",
+ "type": "number"
+ },
+ "discount": {
+ "type": "number"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "note": {
+ "description": "Cash Receipt note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "total": {
+ "description": "Positive Cash Receipt total.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "vatEntries": {
+ "description": "Optional manual VAT split. Removed before transmission when Enable VAT on Cash Receipts is disabled.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "description": "Positive portion of the receipt total assigned to this VAT rate; this is not the VAT amount.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "percentage": {
+ "description": "VAT percentage.",
+ "type": "number"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "vatRateId",
+ "percentage",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "total",
+ "note",
+ "entryDate",
+ "procDate",
+ "bookTranTypeId",
+ "acEntries"
+ ],
+ "type": "object"
+ },
+ {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCode": {
+ "description": "Cash Receipts analysis account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "analysisCategoryId": {
+ "description": "Cash Receipts analysis category id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "bookTranTypeId": {
+ "const": 1,
+ "description": "Cash Receipt book transaction type id. Must be 1.",
+ "type": "number"
+ },
+ "description": {
+ "description": "Analysis-line description.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "discount": {
+ "type": "number"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "note": {
+ "description": "Cash Receipt note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "total": {
+ "description": "Positive Cash Receipt total.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "total",
+ "note",
+ "entryDate",
+ "procDate",
+ "bookTranTypeId",
+ "analysisCategoryId",
+ "accountCode",
+ "description"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accountCode": {
+ "description": "Cash Receipts analysis account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "analysisCategoryId": {
+ "description": "Cash Receipts analysis category id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "bookTranTypeId": {
+ "const": 1,
+ "description": "Cash Receipt book transaction type id. Must be 1.",
+ "type": "number"
+ },
+ "description": {
+ "description": "Analysis-line description.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "discount": {
+ "type": "number"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "note": {
+ "description": "Cash Receipt note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "total": {
+ "description": "Positive Cash Receipt total.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "vatPercentage": {
+ "description": "VAT percentage. Must be supplied with vatRateId.",
+ "type": "number"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "note",
+ "entryDate",
+ "procDate",
+ "bookTranTypeId",
+ "analysisCategoryId",
+ "accountCode",
+ "description",
+ "vatRateId",
+ "vatPercentage"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acCode": {
+ "description": "Customer account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "bookTranTypeId": {
+ "const": 1,
+ "description": "Cash Receipt book transaction type id. Must be 1.",
+ "type": "number"
+ },
+ "customerId": {
+ "description": "BRC customer id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "discount": {
+ "type": "number"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "ledger": {
+ "description": "Customer-ledger amount; must equal total.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "note": {
+ "description": "Cash Receipt note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "total": {
+ "description": "Positive Cash Receipt total.",
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "total",
+ "note",
+ "entryDate",
+ "procDate",
+ "bookTranTypeId",
+ "customerId",
+ "acCode",
+ "ledger"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "opCode": {
+ "const": 1,
+ "description": "BRC batch create operation code. Must be 1.",
+ "type": "number"
+ }
+}