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"
+ },
+ "comments": {
+ "description": "Quote comments.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "companyId": {
+ "description": "BRC company id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "customerOwnerId": {
+ "description": "BRC customer owner id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "customerOwnerName": {
+ "description": "Customer name.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "ddNumber": {
+ "type": "string"
+ },
+ "deliveryTo": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ]
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "layoutType": {
+ "description": "Quote layout type id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "poNumber": {
+ "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": {
+ "description": "Optional manual quote reference, maximum six characters.",
+ "maxLength": 6,
+ "type": "string"
+ },
+ "saleRepCode": {
+ "description": "BRC sales representative code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "saleRepId": {
+ "description": "BRC sales representative id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "tranNote": {
+ "description": "Quote product-line note.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "unitPrice": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "vatPercentage": {
+ "type": "number"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "vatTypeId": {
+ "description": "BRC VAT type id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "companyId",
+ "customerOwnerId",
+ "acCode",
+ "customerOwnerName",
+ "comments",
+ "entryDate",
+ "procDate",
+ "saleRepId",
+ "saleRepCode",
+ "productId",
+ "productCode",
+ "quantity",
+ "unitPrice",
+ "vatRateId",
+ "vatPercentage",
+ "tranNote",
+ "analysisCategoryId",
+ "accountCode"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "acCode": {
+ "description": "Customer account code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "closedDate": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "comments": {
+ "description": "Quote comments.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "companyId": {
+ "description": "BRC company id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "customFields": {
+ "items": {},
+ "type": "array"
+ },
+ "customerOwnerId": {
+ "description": "BRC customer owner id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "customerOwnerName": {
+ "description": "Customer name.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "ddNumber": {
+ "type": "string"
+ },
+ "deliveryList": {
+ "type": "string"
+ },
+ "deliveryTo": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "entryDate": {
+ "description": "Entry date in ISO format.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "layoutType": {
+ "description": "Quote layout type id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "poNumber": {
+ "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"
+ },
+ "companyId": {
+ "description": "BRC company id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "id": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "quoteProductTranId": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "companyId",
+ "accountCode",
+ "analysisCategoryId",
+ "value"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "amount": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "companyId": {
+ "description": "BRC company id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "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": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "tranNotes": {
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "unitPrice": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "vatAmount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "vatAnalysisTypeId": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "vatRateId": {
+ "description": "BRC VAT rate id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "companyId",
+ "percentage",
+ "vatRateId",
+ "productId",
+ "productCode",
+ "quantity",
+ "unitPrice",
+ "amount",
+ "vatAmount",
+ "tranNotes",
+ "acEntries",
+ "vatAnalysisTypeId"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "reference": {
+ "description": "Optional manual quote reference, maximum six characters.",
+ "maxLength": 6,
+ "type": "string"
+ },
+ "saleInvoiceId": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "saleRepCode": {
+ "description": "BRC sales representative code.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "saleRepId": {
+ "description": "BRC sales representative id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "total": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "totalNet": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "totalVat": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "vatTypeId": {
+ "description": "BRC VAT type id.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "companyId",
+ "customerOwnerId",
+ "vatTypeId",
+ "saleRepId",
+ "saleRepCode",
+ "entryDate",
+ "procDate",
+ "customerOwnerName",
+ "comments",
+ "layoutType",
+ "total",
+ "totalVat",
+ "totalNet",
+ "note",
+ "acCode",
+ "productTrans",
+ "customFields"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "opCode": {
+ "const": 1,
+ "description": "BRC batch create operation code. Must be 1.",
+ "type": "number"
+ }
+}