/
Payload - Sincronización CRM-BDC
Payload - Sincronización CRM-BDC
Alfredo Bernal
Jair Soto
Mauro Romero
Owned by Alfredo Bernal
| PRE |
---|
| PRE |
---|---|
Método | POST |
URL | https://sif-pre.uno-internacional.com/mcs/sif/crm/empresas/{empresaRefId}/sessions/{sessionRefId}/unoSchool/{unoSchoolRefId}/contract |
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 |
{
"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
}
]
}
}
}
]
}
}
{
"$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": "integer"
},
"levelPrice": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"levelPriceCode": {
"type": "string"
}
},
"required": [
"refId",
"levelPriceCode"
]
},
"taxPercentage": {
"type": "integer"
},
"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"
},
"type": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"data": {
"type": "object",
"properties": {
"contract": {
"type": "object",
"properties": {
"contractRefId": {
"type": "string"
},
"contract": {
"type": "integer"
},
"empresaRefId": {
"type": "string"
},
"unoSchool": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"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",
"items": [
{
"type": "object",
"properties": {
"action": {
"type": "string"
},
"type": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
]
},
"data": {
"type": "object",
"properties": {
"price": {
"type": "integer"
},
"amount": {
"type": "integer"
},
"article": {
"type": "object",
"properties": {
"erpId": {
"type": "string"
},
"refId": {
"type": "string"
},
"articleCode": {
"type": "string"
},
"articleType": {
"type": "object",
"properties": {
"articleTypeCode": {
"type": "string"
}
},
"required": [
"articleTypeCode"
]
}
},
"required": [
"erpId",
"refId",
"articleCode",
"articleType"
]
},
"aditional": {
"type": "integer"
},
"paySchool": {
"type": "integer"
},
"proportion": {
"type": "integer"
},
"payerAmount": {
"type": "integer"
},
"salesChannels": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"saleChannel": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"sellerId": {
"type": "integer"
},
"erpId": {
"type": "integer"
},
"percentajeDiscount": {
"type": "integer"
},
"percentajePlacement": {
"type": "integer"
}
},
"required": [
"type",
"sellerId",
"erpId",
"percentajeDiscount",
"percentajePlacement"
]
}
},
"required": [
"saleChannel"
]
}
]
},
"componentList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"grade": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"gradeCode": {
"type": "string"
}
},
"required": [
"refId",
"gradeCode"
]
},
"price": {
"type": "integer"
},
"amount": {
"type": "integer"
},
"article": {
"type": "object",
"properties": {
"erpId": {
"type": "string"
},
"refId": {
"type": "string"
},
"articleCode": {
"type": "string"
},
"articleType": {
"type": "object",
"properties": {
"param": {
"type": "string"
},
"refId": {
"type": "string"
},
"articleTypeCode": {
"type": "string"
}
},
"required": [
"param",
"refId",
"articleTypeCode"
]
}
},
"required": [
"erpId",
"refId",
"articleCode",
"articleType"
]
},
"subject": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
"typeSale": {
"type": "object",
"properties": {
"typeSaleCode": {
"type": "string"
}
},
"required": [
"typeSaleCode"
]
},
"percentajeTax": {
"type": "integer"
},
"percentajeDiscount": {
"type": "integer"
}
},
"required": [
"grade",
"price",
"amount",
"article",
"subject",
"typeSale",
"percentajeTax",
"percentajeDiscount"
]
},
"action": {
"type": "string"
}
},
"required": [
"data",
"action"
]
}
]
},
"percentajeTax": {
"type": "integer"
},
"percentajeDiscount": {
"type": "integer"
}
},
"required": [
"price",
"amount",
"article",
"aditional",
"paySchool",
"proportion",
"payerAmount",
"salesChannels",
"componentList",
"percentajeTax",
"percentajeDiscount"
]
}
},
"required": [
"action",
"type",
"data"
]
}
]
}
},
"required": [
"grade",
"programList"
]
}
]
},
"paymentType": {
"type": "integer"
},
"sessionList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
{
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
}
]
},
"customCovers": {
"type": "integer"
},
"paymentTypeCode": {
"type": "string"
},
"schoolLevelCode": {
"type": "string"
},
"schoolLevelErpId": {
"type": "string"
},
"englishCoordinator": {
"type": "integer"
},
"spanishCoordinator": {
"type": "integer"
},
"refundParticipation": {
"type": "integer"
},
"paymentTypeParameter": {
"type": "string"
},
"participationPercentage": {
"type": "integer"
}
},
"required": [
"gradeList",
"paymentType",
"sessionList",
"customCovers",
"paymentTypeCode",
"schoolLevelCode",
"schoolLevelErpId",
"englishCoordinator",
"spanishCoordinator",
"refundParticipation",
"paymentTypeParameter",
"participationPercentage"
]
}
]
}
},
"required": [
"contractRefId",
"contract",
"empresaRefId",
"unoSchool",
"session",
"contactList",
"bonus",
"schoolLevelList"
]
}
},
"required": [
"contract"
]
}
},
"required": [
"action",
"type",
"data"
]
}
]
}
},
"required": [
"operations"
]
}
},
"required": [
"articles",
"contract"
]
}
, multiple selections available,
Related content
ACTUALIZACIÓN DEL MODELO DE SINCRONIZACIÓN BDC-CRM
ACTUALIZACIÓN DEL MODELO DE SINCRONIZACIÓN BDC-CRM
Read with this
Recepción de pago
Recepción de pago
More like this
01. SIF V3 - Swagger
01. SIF V3 - Swagger
Read with this
Censo - Profesores
Censo - Profesores
More like this
Implementación Sincronización CRM-BDC
Implementación Sincronización CRM-BDC
Read with this