Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PRE

Método

POST

URL

https://sif-pre.uno-internacional.com/mcs/sif/crm/empresas/{empresaRefId}/sessions/{sessionRefId}/unoSchool/{unoSchoolRefId}/crm/synccontract

Query Params

empresaRefId: Id de la empresa en BDC en formato UUID

sessionRefId: Id del ciclo escolar en BDC en formato UUID

unoSchoolRefId: Id del colegio en BDC en formato UUID

Expand
titleEjemplo Payload
Code Block
{
  "articles": {
    "failOnErrors": true,
    "operations": [
      {
        "action": "create",
        "data": {
          "articleDescription": "articulo/12:30/2021-08-23",
          "articleCode": "codigo/12:30/2021-08-23",
          "articleOrder": 300,
          "abbreviation": "articulo/2021-08-23",
          "alternateName": "articulo/08-23",
          "parameter": "IPAD",
          "sapId": "3831524682159",
          "ean": "9788466846575",
          "isbn": "9788466829113",
          "alternateEan": "",
          "weight": 10,
          "width": 20,
          "height": 30,
          "length": 40,
          "exclusive": true,
          "cdBook": "10",
          "pages": 10,
          "collection": "coleccion",
          "yearPublication": "2021",
          "editorial": "editorial",
          "active": true,
          "articleAuthor": {
            "firstName": "Nombre",
            "middleName": "Paterno",
            "lastName": "Materno",
            "timeZone": {
              "refId": "00000000-0000-1000-0000-000000000016"
            },
            "language": {
              "refId": "00000000-0000-1000-0000-000000000016"
            }
          },
          "subject": {
            "subjectCode": "Esp"
          },
          "category": {
            "parameter": "AL"
          },
          "empresa": {
            "refId": "00000000-0000-1000-0000-000000000001"
          },
          "articleType": {
            "parameter": "IPAD"
          },
          "stamp": {
            "stampCode": "SANCAN"
          },
          "groupArticle": {
            "parameter": "PRI"
          },
          "materialType": {
            "parameter": "DI"
          },
          "articleGradePeriods": [
            {
              "articleGradePeriod": {
                "refId": "",
                "active": true,
                "grade": {
                  "refId": "",
                  "gradeCode": "",
                  "sapId": ""
                },
                "schoolLevel": {
                  "levelCode": "",
                  "sapId": ""
                },
                "session": {
                  "refId": "",
                  "sessionCode": ""
                },
                "periodSession": {
                  "refId": "",
                  "periodSessionCode": "",
                  "parameter": ""
                },
                "unoSchool": {
                  "refId": "",
                  "schoolIdSystem": "",
                  "sapId": "",
                  "crmId": ""
                }
              }
            }
          ],
          "articleLevelPrices": [
            {
              "articleLevelPrice": {
                "refId": "",
                "price": 0,
                "levelPrice": {
                  "refId": "",
                  "levelPriceCode": ""
                },
                "taxPercentage": 0,
                "currency": {
                  "currencyCode": ""
                }
              }
            }
          ]
        }
      }
    ]
  },
  "contract": {
    "operations": [
      {
        "action": "create",
        "type": [
          "gradeInfo",
          "sesionLevel"
        ],
        "data": {
          "contract": {
            "contractRefId": "00000000-0000-1000-0000-000000030986",
            "contract": 3470,
            "empresaRefId": "00000000-0000-1000-0000-000000000006",
            "unoSchool": {
              "refId": "00000000-0000-1000-0000-000000012584"
            },
            "session": {
              "refId": "00000000-0000-1000-0000-000000000681",
              "sessionCode": "2023-2024"
            },
            "contactList": [],
            "bonus": {
              "typeBonus": "EFECTIVO",
              "amountBonus": 12993.99858
            },
            "schoolLevelList": [
              {
                "gradeList": [
                  {
                    "grade": {
                      "student": 1,
                      "classroom": 0,
                      "gradeCode": "1P",
                      "gradeErpId": 4,
                      "gradeRefId": "00000000-0000-1000-0000-000000000041",
                      "lectorPlan": 0,
                      "unoStudent": 1,
                      "mathTeacher": 0,
                      "contractType": "",
                      "unoClassroom": 0,
                      "socialTeacher": 0,
                      "englishTeacher": 0,
                      "spanishTeacher": 0,
                      "amountChildrenTeacher": 0
                    },
                    "programList": [
                      {
                        "action": "create",
                        "type": [
                          "gradeInfo",
                          "sesionLevel"
                        ],
                        "data": {
                          "price": 0,
                          "amount": 1,
                          "article": {
                            "erpId": "",
                            "refId": "00000000-0000-1000-0000-000000004252",
                            "articleCode": "SE-BE(BIL)K2",
                            "articleType": {
                              "articleTypeCode": "SUBP-G"
                            }
                          },
                          "aditional": 0,
                          "paySchool": 0,
                          "proportion": 0,
                          "payerAmount": 0,
                          "salesChannels": [
                            {
                              "saleChannel": {
                                "type": "COD",
                                "sellerId": 0,
                                "erpId": 73053,
                                "percentajeDiscount": 0,
                                "percentajePlacement": 0
                              }
                            }
                          ],
                          "componentList": [
                            {
                              "data": {
                                "grade": {
                                  "refId": "00000000-0000-1000-0000-000000000019",
                                  "gradeCode": "1P"
                                },
                                "price": 0,
                                "amount": 1,
                                "article": {
                                  "erpId": "61099405",
                                  "refId": "00000000-0000-1000-0000-000000102081",
                                  "articleCode": "61099405",
                                  "articleType": {
                                    "param": "LIB",
                                    "refId": "00000000-0000-1000-0000-000000000054",
                                    "articleTypeCode": "LIB"
                                  }
                                },
                                "subject": {
                                  "refId": "00000000-0000-1000-0000-000000006996"
                                },
                                "typeSale": {
                                  "typeSaleCode": "VTA"
                                },
                                "percentajeTax": 0,
                                "percentajeDiscount": 0
                              },
                              "action": "create"
                            }
                          ],
                          "percentajeTax": 0,
                          "percentajeDiscount": 0
                        }
                      }
                    ]
                  }
                ],
                "paymentType": 0,
                "sessionList": [
                  {
                    "refId": "00000000-0000-1000-0000-000000000394"
                  },
                  {
                    "refId": "00000000-0000-1000-0000-000000000395"
                  }
                ],
                "customCovers": 0,
                "paymentTypeCode": "",
                "schoolLevelCode": "002",
                "schoolLevelErpId": "002",
                "englishCoordinator": 0,
                "spanishCoordinator": 0,
                "refundParticipation": 1,
                "paymentTypeParameter": "",
                "participationPercentage": 102
              }
            ]
          }
        }
      }
    ]
  }
}
Expand
titleJSON Schema
Code Block
{
  "$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": "object",string"
                    },
     "properties": {              {
          "contractRefId": {           "type": "string"
              "type": "string"     }
                  ]
},                },
        "contract": {       "data": {
                  "type": "integerobject",
                        },"properties": {
                        "empresaRefIdcontract": {

                         "type": "stringobject",
                      "properties": {
},                         "unoSchoolcontractRefId": {
                          "type": "objectstring",
                        },
 "properties": {                             "refId"contract": {
                              "type": "stringinteger"
   
                        },
                          },"empresaRefId": {
                          "requiredtype": ["string"
                        },
   "refId"                     "unoSchool": {
    ]                      "type": "object",
 },                         "sessionproperties": {
                            "typerefId": "object",{
                              "propertiestype": {"string"
                            "refId": {}
                          },
                          "required": [
                            "refId"
                          ]
                        },
                        "session": {
                          "type": "object",
                          "properties": {
                            "refId": {
                              "type": "string"
                            },
                            "sessionCode": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "refId",
                            "sessionCode"
                          ]
                        },
                        "contactList": {
                          "type": "array",
                          "items": {}
                        },
                        "bonus": {
                          "type": "object",
                          "properties": {
                            "typeBonus": {
                              "type": "string"
                            },
                            "amountBonus": {
                              "type": "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",
                                          "typeitems": "string"[
                              },              {
              "sessionCode": {                               "type": "stringobject",
                             }                 "properties": {
        },                           "required": [            "action": {
               "refId",                             "sessionCode"      "type": "string"
                   ]                         },    },
                    "contactList": {                           "type": "array",{
                          "items": {}                         }"type": "array",
                        "bonus": {                           "typeitems": "object", [
                                "properties": {                   {
         "typeBonus": {                               "type": "string"            "type": "string"
               },                             "amountBonus": {       },
                       "type": "number"                            {
}                           },                           "requiredtype": "string"
[                             "typeBonus",                       }
     "amountBonus"                           ]                  ]
      },                         "schoolLevelList": {                },
          "type": "array",                             "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"
  ]
}