addedInput schema / properties / items / items / properties
Added value: +{
+ "item": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acCode": {
+ "description": "Customer account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "accountCode": {
+ "description": "Sales analysis account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "analysisCategoryId": {
+ "description": "Sales analysis category id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "bookTranTypeId": {
+ "description": "Sales Credit Note book transaction type id; use 7.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "customerId": {
+ "description": "BRC customer id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "description": {
+ "description": "Product-line analysis description.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "netAmount": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "note": {
+ "description": "Sales credit note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "productCode": {
+ "description": "BRC product code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "productId": {
+ "description": "BRC product id; placeholder ids 0 and 1 are prohibited.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "saleRepCode": {
+ "description": "BRC sales representative code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "saleRepId": {
+ "description": "BRC sales representative id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "unitPrice": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "vatPercentage": {
+ "type": "number"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "customerId",
+ "acCode",
+ "note",
+ "entryDate",
+ "procDate",
+ "bookTranTypeId",
+ "analysisCategoryId",
+ "accountCode",
+ "description",
+ "netAmount",
+ "vatRateId",
+ "vatPercentage",
+ "productId",
+ "productCode",
+ "quantity",
+ "unitPrice",
+ "saleRepId",
+ "saleRepCode"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acCode": {
+ "description": "Customer account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "bookTranTypeId": {
+ "const": 7,
+ "type": "number"
+ },
+ "customFields": {
+ "items": {},
+ "type": "array"
+ },
+ "customerId": {
+ "description": "BRC customer id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "deliveryTo": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ]
+ },
+ "details": {
+ "anyOf": [
+ {},
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "loType": {
+ "type": "string"
+ },
+ "netGoods": {
+ "type": "number"
+ },
+ "netServices": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ },
+ "ourReference": {
+ "type": "string"
+ },
+ "procDate": {
+ "description": "Processing date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "productTrans": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "acEntries": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountCode": {
+ "description": "Sales analysis account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "analysisCategoryId": {
+ "description": "Sales analysis category id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "description": {
+ "type": "string"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "accountCode",
+ "analysisCategoryId",
+ "value"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "amount": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "amountNet": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "percentage": {
+ "type": "number"
+ },
+ "productCode": {
+ "description": "BRC product code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "productId": {
+ "description": "BRC product id; placeholder ids 0 and 1 are prohibited.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "quantity": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "tranNotes": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "unitPrice": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "useTaxInclusiveUnitPrice": {
+ "type": "boolean"
+ },
+ "vat": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "vatAmount": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "vatAnalysisTypeId": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "amount",
+ "amountNet",
+ "percentage",
+ "productId",
+ "productCode",
+ "quantity",
+ "unitPrice",
+ "vat",
+ "vatRateId",
+ "vatAnalysisTypeId",
+ "tranNotes",
+ "acEntries"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "quoteId": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "saleRepCode": {
+ "description": "BRC sales representative code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "saleRepId": {
+ "description": "BRC sales representative id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "total": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "totalNet": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "totalVAT": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "unpaid": {
+ "exclusiveMaximum": 0,
+ "type": "number"
+ },
+ "useTaxInclusiveUnitPrice": {
+ "type": "boolean"
+ },
+ "vatTypeId": {
+ "description": "BRC VAT type id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "yourReference": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "productTrans",
+ "saleRepId",
+ "saleRepCode",
+ "customerId",
+ "unpaid",
+ "vatTypeId",
+ "totalNet",
+ "totalVAT",
+ "bookTranTypeId",
+ "acCode",
+ "entryDate",
+ "procDate",
+ "total",
+ "customFields"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "opCode": {
+ "const": 1,
+ "description": "BRC batch create operation code. Must be 1.",
+ "type": "number"
+ }
+}