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
              }
            ]
          }
        }
      }
    ]
  }
}

...