{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"articles": {
"type": "object",
"properties": {
"failOnErrors": {
"type": "boolean"
},
"operations": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"action": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"articleDescription": {
"type": "string"
},
"articleCode": {
"type": "string"
},
"articleOrder": {
"type": "integer"
},
"abbreviation": {
"type": "string"
},
"alternateName": {
"type": "string"
},
"parameter": {
"type": "string"
},
"sapId": {
"type": "string"
},
"ean": {
"type": "string"
},
"isbn": {
"type": "string"
},
"alternateEan": {
"type": "string"
},
"weight": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"length": {
"type": "integer"
},
"exclusive": {
"type": "boolean"
},
"cdBook": {
"type": "string"
},
"pages": {
"type": "integer"
},
"collection": {
"type": "string"
},
"yearPublication": {
"type": "string"
},
"editorial": {
"type": "string"
},
"active": {
"type": "boolean"
},
"articleAuthor": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"middleName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"timeZone": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
"language": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
}
},
"required": [
"firstName",
"middleName",
"lastName",
"timeZone",
"language"
]
},
"subject": {
"type": "object",
"properties": {
"subjectCode": {
"type": "string"
}
},
"required": [
"subjectCode"
]
},
"category": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
}
},
"required": [
"parameter"
]
},
"empresa": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
"articleType": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
}
},
"required": [
"parameter"
]
},
"stamp": {
"type": "object",
"properties": {
"stampCode": {
"type": "string"
}
},
"required": [
"stampCode"
]
},
"groupArticle": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
}
},
"required": [
"parameter"
]
},
"materialType": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
}
},
"required": [
"parameter"
]
},
"articleGradePeriods": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"articleGradePeriod": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"active": {
"type": "boolean"
},
"grade": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"gradeCode": {
"type": "string"
},
"sapId": {
"type": "string"
}
},
"required": [
"refId",
"gradeCode",
"sapId"
]
},
"schoolLevel": {
"type": "object",
"properties": {
"levelCode": {
"type": "string"
},
"sapId": {
"type": "string"
}
},
"required": [
"levelCode",
"sapId"
]
},
"session": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"sessionCode": {
"type": "string"
}
},
"required": [
"refId",
"sessionCode"
]
},
"periodSession": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"periodSessionCode": {
"type": "string"
},
"parameter": {
"type": "string"
}
},
"required": [
"refId",
"periodSessionCode",
"parameter"
]
},
"unoSchool": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"schoolIdSystem": {
"type": "string"
},
"sapId": {
"type": "string"
},
"crmId": {
"type": "string"
}
},
"required": [
"refId",
"schoolIdSystem",
"sapId",
"crmId"
]
}
},
"required": [
"refId",
"active",
"grade",
"schoolLevel",
"session",
"periodSession",
"unoSchool"
]
}
},
"required": [
"articleGradePeriod"
]
}
]
},
"articleLevelPrices": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"articleLevelPrice": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"price": {
"type": "number"
},
"levelPrice": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"levelPriceCode": {
"type": "string"
}
},
"required": [
"refId",
"levelPriceCode"
]
},
"taxPercentage": {
"type": "number"
},
"currency": {
"type": "object",
"properties": {
"currencyCode": {
"type": "string"
}
},
"required": [
"currencyCode"
]
}
},
"required": [
"refId",
"price",
"levelPrice",
"taxPercentage",
"currency"
]
}
},
"required": [
"articleLevelPrice"
]
}
]
}
},
"required": [
"articleDescription",
"articleCode",
"articleOrder",
"abbreviation",
"alternateName",
"parameter",
"sapId",
"ean",
"isbn",
"alternateEan",
"weight",
"width",
"height",
"length",
"exclusive",
"cdBook",
"pages",
"collection",
"yearPublication",
"editorial",
"active",
"articleAuthor",
"subject",
"category",
"empresa",
"articleType",
"stamp",
"groupArticle",
"materialType",
"articleGradePeriods",
"articleLevelPrices"
]
}
},
"required": [
"action",
"data"
]
}
]
}
},
"required": [
"failOnErrors",
"operations"
]
},
"contract": {
"type": "object",
"properties": {
"operations": {
"type": "array",
" |