{
"$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": "numberinteger"
},
"levelPrice": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"levelPriceCode": {
"type": "string"
}
},
"required": [
"refId",
"levelPriceCode"
]
},
"taxPercentage": {
"type": "numberinteger"
},
"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",
"items": [
{
"type": "object",
"properties": {
"action": {
"type": "string"
},
"datatype": {
"type": "objectarray",
"propertiesitems": {[
"contract": {
"type": "objectstring",
},
"properties": { "contractRefId": {
"type": "string"
},
]
"contract": { },
"typedata": "integer"{
},
"type": "object",
"empresaRefIdproperties": {
"type"contract": "string"{
}"type": "object",
"unoSchoolproperties": {
"typecontractRefId": "object",{
"propertiestype": {"string"
},
"refId": { "type"contract": "string"{
}
"type": "integer"
},
"requiredempresaRefId": [{
"type": "refId"
]string"
},
"sessionunoSchool": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
},
"sessionCode": { "required": [
"type": "string" "refId"
} ]
}, },
"required": [ "session": {
"refId", "type": "object",
"sessionCode" "properties": {
] "refId": {
}, "type": "contactListstring":
{ "type": "array" },
"itemssessionCode": {}
"type": "string"
}, "bonus": { }
"type": "object" },
"propertiesrequired": {[
"typeBonus": {refId",
"sessionCode"
"type": "string" ]
}, },
"amountBonuscontactList": {
"type": "numberarray",
"items": {}
},
"requiredbonus": [{
"type": "typeBonusobject",
"properties": {
"amountBonus" ] "typeBonus": {
}, "type": "string"
"schoolLevelList": { },
" "amountBonus": {
"type": "array","number"
}
},
"required": [
"typeBonus",
"amountBonus"
]
},
"schoolLevelList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"gradeList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"grade": {
"type": "object",
"properties": {
"student": {
"type": "integer"
},
"classroom": {
"type": "integer"
},
"gradeCode": {
"type": "string"
},
"gradeErpId": {
"type": "integer"
},
"gradeRefId": {
"type": "string"
},
"lectorPlan": {
"type": "integer"
},
"unoStudent": {
"type": "integer"
},
"mathTeacher": {
"type": "integer"
},
"contractType": {
"type": "string"
},
"unoClassroom": {
"type": "integer"
},
"socialTeacher": {
"type": "integer"
},
"englishTeacher": {
"type": "integer"
},
"spanishTeacher": {
"type": "integer"
},
"amountChildrenTeacher": {
"type": "integer"
}
},
"required": [
"student",
"classroom",
"gradeCode",
"gradeErpId",
"gradeRefId",
"lectorPlan",
"unoStudent",
"mathTeacher",
"contractType",
"unoClassroom",
"socialTeacher",
"englishTeacher",
"spanishTeacher",
"amountChildrenTeacher"
]
},
"programList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"action": {
"type": "string"
},
"type": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"items": [ "data": {
{ "type": "object",
"properties": { "properties": {
"schoolLevelCode": { "type": "string" "price": {
}, "type": "integer"
"schoolLevelErpId": { "type": "string" },
}, "customCoversamount": {
"type": "integer" "type": "integer"
}, "participationPercentage": { },
"type": "integer" "article": {
}, "refundParticipation": { "type": "object",
"type": "integer" },"properties": {
"englishCoordinator": { "erpId": {
"type": "integer" }, "type": "string"
"spanishCoordinator": { "type": "integer" },
}, "paymentTyperefId": {
"type": "integer" "type": "string"
}, "paymentTypeCode": { },
"type": "string" }, "articleCode": {
"paymentTypeParameter": { "type": "string"
}, },
"gradeList": { "typearticleType": "array", {
"items": [ "type": "object",
{ "typeproperties": "object",{
"properties": { "articleTypeCode": {
"grade": { "type": "objectstring",
"properties": { }
"gradeRefId": { },
"type": "string" "required": [
}, "gradeCode": { "articleTypeCode"
"type": "string" ]
}, }
"gradeErpId": { },
"type": "integer" }, "required": [
"student": { "erpId",
"type": "integer" "refId",
}, "unoStudentarticleCode": {,
"type": "integer" "articleType"
}, ]
"contractType": { },
"type": "string" "aditional": {
}, "classroomtype": {"integer"
"type": "integer" },
}, "paySchool": {
"unoClassroom": { "type": "integer"
"type": "integer" },
}, "proportion": {
"englishTeacher": { "type": "integer"
}, },
"spanishTeacher": { "payerAmount": {
"type": "integer" "type": "integer"
}, },
"mathTeacher": { "type"salesChannels": "integer"{
}, "type": "array",
"socialTeacher": { "items": [
"type": "integer" {
},
"lectorPlantype": {"object",
"type": "integer" "properties": {
}, "saleChannel": {
"amountChildrenTeacher": { "type": "integerobject",
} "properties": {
}, "requiredtype": [: {
"gradeRefId", "type": "string"
"gradeCode", "gradeErpId"},
"student", "sellerId": {
"unoStudent", "type": "contractTypeinteger",
"classroom", },
"unoClassroom", "erpId": {
"englishTeacher", "spanishTeacher", "type": "integer"
"mathTeacher", },
"socialTeacher", "lectorPlan", "percentajeDiscount": {
"amountChildrenTeacher" "type": "integer"
] }, },
"programList": { "typepercentajePlacement": "array",{
"items": [ "type": "integer"
{ }
"type": "object", "properties": { },
"action": { "required": [
"type": "string" "type",
}, "data": { "sellerId",
"type": "object", "erpId",
"properties": { "percentajeDiscount",
"article": { "percentajePlacement"
"type": "object", ]
"properties": { }
"refId": { },
"type": "string" "required": [
}, "erpIdsaleChannel":
{ ]
"type": "string" }
}, ]
"articleCode": { },
"type": "string" "componentList": {
}, "type": "array",
"articleType": { "items": [
"type": "object", {
"properties": { "type": "object",
"articleTypeCode": { "properties": {
"type": "string" "data": {
} "type": "object",
}, "properties": {
"required": [ "grade": {
"articleTypeCode" "type": "object",
] } "properties": {
}, "refId": {
"required": [ "type": "string"
"refId", },
"erpId", "articleCodegradeCode",: {
"articleType" "type": "string"
] }
}, },
"paySchool": { "typerequired": "integer"[
}, "refId",
"payerAmount": { "gradeCode"
"type": "integer" ]
}, "proportion": { },
"type": "integer" "price": {
}, "type": "integer"
"aditional": { },
"type": "integer" "amount": {
}, "percentajeDiscount": { "type": "integer"
"type": "integer" },
}, "article": {
"percentajeTax": { "type": "object",
"type": "integer" },"properties": {
"price": { "erpId": {
"type": "integer" "type": "string"
}, },
"amount": { "type": "integer" "refId": {
}, "type": "string"
¿pueden a las 4? },
"componentList": { "typearticleCode": "array",{
"items": [ "type": "string"
{ },
"type": "object", "articleType": {
"properties": { "type": "object",
"action": { "typeproperties": "string"{
}, "param": {
"data": { "type": "string"
"type": "object", },
"properties": { "refId": {
"subject": { "type": "string"
"type": "object", },
"properties": { "refIdarticleTypeCode": {
"type": "string"
}
},
"required": [
"refId"param",
"refId",
] "articleTypeCode"
}, "article": { ]
"type": "object", }
"properties": { },
"refIdrequired": {[
"typeerpId":,
"string" }"refId",
"erpId": {
articleCode",
"typearticleType":
"string" ]
}, "articleCode": {},
"type"subject": "string"{
}"type": "object",
"articleTypeproperties": {
"typerefId": "object",{
"propertiestype": {"string"
}
"articleTypeCode": { },
"type": "string" "required": [
}, "refId"
"param": { ]
"type": "string" },
}, "typeSale": {
"refId": { "type": "object",
"type": "string" "properties": {
} "typeSaleCode": {
}, "type": "string"
"required": [ }
"articleTypeCode"},
"required": [
"param", "typeSaleCode"
"refId" ]
] },
} "percentajeTax": {
}, "type": "integer"
"required": [ },
"refId", "percentajeDiscount": {
"erpId", "type": "integer"
"articleCode", }
"articleType" },
] "required": [
}, "grade",
"grade": { "price",
"type": "object", "amount",
"properties": { "article",
"gradeCode": { "subject",
"type": "string" "typeSale",
}, "percentajeTax",
"refId": { "percentajeDiscount"
]
"type": "string" },
} "action": {
}, "type": "string"
"required": [ }
"gradeCode", },
"refId" "required": [
] "data",
}, "action"
"typeSale": { ]
}
"type": "object", ]
"properties": { },
"typeSaleCode": { "percentajeTax": {
"type": "stringinteger"
},
} "percentajeDiscount": {
}, "type": "integer"
"required": [ }
},
"typeSaleCode" "required": [
] "price",
}, "amount",
"percentajeDiscount": {article",
"aditional",
"type": "integer" "paySchool",
}, "proportion",
"percentajeTax": { "payerAmount",
"salesChannels",
"type": "integer" "componentList",
}, "percentajeTax",
"price": { "percentajeDiscount"
"type": "integer" ]
}
}, },
"amount": { "required": [
"type": "integer"action",
"type",
} "data"
}, ]
}
"required": [ ]
"subject", }
},
"article", "required": [
"grade",
"programList"
"typeSale", ]
}
"percentajeDiscount", ]
},
"percentajeTax", "paymentType": {
"price","type": "integer"
},
"amountsessionList": {
"type": "array",
] "items": [
{
} "type": "object",
}, "properties": {
"refId": {
"required": [ "type": "string"
"action", }
},
"data" "required": [
] "refId"
]
} },
] {
}
"type": "object",
"properties": {
}, "refId": {
"required": [ "type": "string"
"article", }
"paySchool"},
"required": [
"payerAmount", "refId"
"proportion", ]
}
"aditional", ]
"percentajeDiscount", },
"percentajeTax",
"customCovers": {
"type": "integer"
"price", },
"amountpaymentTypeCode",: {
"type": "string"
"componentList" },
"schoolLevelCode": ]{
"type": "string"
} },
}, "schoolLevelErpId": {
"type": "string"
"required": [ },
"action", "englishCoordinator": {
"type": "datainteger"
},
] "spanishCoordinator": {
} "type": "integer"
] },
"refundParticipation": {
} "type": "integer"
}, },
"required": [ "paymentTypeParameter": {
"grade", "type": "string"
"programList" },
"participationPercentage": ]{
"type": "integer"
} }
] },
} "required": [
}, "requiredgradeList": [,
"schoolLevelCodepaymentType",
"schoolLevelErpIdsessionList",
"customCovers",
"participationPercentagepaymentTypeCode",
"refundParticipationschoolLevelCode",
"englishCoordinatorschoolLevelErpId",
"spanishCoordinatorenglishCoordinator",
"paymentTypespanishCoordinator",
"paymentTypeCoderefundParticipation",
"paymentTypeParameter",
"gradeListparticipationPercentage"
]
}
]
}
},
"required": [
"contractRefId",
"contract",
"empresaRefId",
"unoSchool",
"session",
"contactList",
"bonus",
"schoolLevelList"
]
}
},
"required": [
"contract"
]
}
},
"required": [
"action",
"type",
"data"
]
}
]
}
},
"required": [
"operations"
]
}
},
"required": [
"articles",
"contract"
]
} |