Payload |
Code Block |
---|
language | js |
---|
title | JSON Schema |
---|
collapse | true |
---|
| {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"external": {
"type": "object",
"properties": {
"orderId": {
"type": "string"
},
"orderConsolidatorId": {
"type": "string"
}
},
"required": [
"orderId",
"orderConsolidatorId"
]
},
"paymentDate": {
"type": "stringdate"
},
"parentGuardian": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"document": {
"type": "string"
}
},
"required": [
"refId",
"document"
]
},
"paymentMethod": {
"type": "string"
},
"conciliationAccount": {
"type": "string"
},
"price": {
"type": "number"
},
"originalPrice": {
"type": "number"
},
"discountListitemList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"porcentagearticleRefId": {
"type": "numberstring"
},
"amountstudent": {
"type": "numberobject",
}"properties": {
},
"requiredrefId": [{
"porcentagetype",
"amount: "string"
]
},
]
},
"itemListpersonRefId": {
"type": "arraystring",
"items": [
{}
"type": "object" },
"propertiesrequired": {[
"articleRefIdrefId":,
{
"typepersonRefId": "string"
]
},
"studenttotalItem": {
"type": "objectinteger",
"properties": {
},
"refIdprice": {
"type": "stringnumber"
},
"personRefIdoriginalPrice": {
"type": "stringnumber"
},
},"porcentageTax": {
"requiredtype": [
"integer"
},
"refIdtaxes",: {
"personRefId"type": "integer"
]
},
"totalItemsalesType": {
"type": "integerstring"
},
"pricesalesChannel": {
"type": "numberstring"
},
"originalPricesalesOption": {
"type": "numberstring"
},
"discountListcomponentList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"porcentage": {
"type": "number"
},
"reason": {
"type": "string"
},
"amount": {
"type": "number"
}
},
"required": [
"porcentage",
"reason",
"amount"
]
}
]
},
"porcentageTaxes": {
"type": "integer"
},
"taxes": {
"type": "integer"
},
"salesType": {
"type": "string"
},
"salesChanneltype": {
"object",
"typeproperties": "string"{
},
"installmentsarticleRefId": {
"type": "integerstring"
},
"componentListtotalItem": {
"type": "arrayinteger",
"items": [
},
"price": {
"type": "objectnumber",
"properties": {
},
"articleRefIdoriginalPrice": {
"type": "integernumber"
},
"totalItemmarkupPorcentage": {
"type": "integernumber"
},
"pricetaxes": {
"type": "integernumber"
},
"taxesporcentageTax": {
"type": "integernumber"
},
"discountList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"porcentage": {
"type": "integernumber"
},
"reason": {
"type": "string"
},
"amount": {
"type": "integernumber"
}
},
"required": [
"porcentage",
"reason",
"amount"
]
}
]
}
},
"required": [
"articleRefId",
"totalItem",
"price",
"priceoriginalPrice",
"markupPorcentage",
"taxes",
"porcentageTax",
"discountList"
]
}
]
}
},
"required": [
"articleRefId",
"student",
"totalItem",
"price",
"originalPrice",
"discountList",
"porcentageTaxes"porcentageTax",
"taxes",
"salesType",
"salesChannel",
"installmentssalesOption",
"componentList"
]
}
}
]
},
"freight": {
"type": "object",
"properties": {
"transportName": {
"type": "string"
},
"transportPhone": {
"type": "string"
},
"transportCode": {
"type": "string"
},
"orderNote": {
"type": "string"
},
"orderFreightValue": {
"type": "integernumber"
},
"orderDeliveryForecast": {
"type": "string"
},
"orderEstablishment": {
"type": "string"
}
},
"required": [
"transportName",
"transportPhone",
"transportCode",
"orderNote",
"orderFreightValue",
"orderDeliveryForecast",
"orderEstablishment"
]
},
"addressList": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"addressType": {
"type": "string"
},
"street": {
"type": "string"
},
"outdoorNumber": {
"type": "string"
},
"interiorNumber": {
"type": "string"
},
"neighborhood": {
"type": "string"
},
"city": {
"type": "string"
},
"postalCode": {
"type": "string"
},
"county": {
"type": "object",
"properties": {
"refId": {
"type": "string"
},
"countyCode": {
"type": "string"
}
},
"required": [
"refId",
"countyCode"
]
},
"contact": {
"type": "string"
},
"phone": {
"type": "string"
},
"phone2": {
"type": "string"
},
"position": {
"type": "string"
},
"officeHours": {
"type": "string"
},
"email": {
"type": "string"
},
"timeZone": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
"language": {
"type": "object",
"properties": {
"refId": {
"type": "string"
}
},
"required": [
"refId"
]
},
"active": {
"type": "boolean"
}
},
"required": [
"addressType",
"street",
"outdoorNumber",
"interiorNumber",
"neighborhood",
"city",
"postalCode",
"county",
"contact",
"phone",
"phone2",
"position",
"officeHours",
"email",
"timeZone",
"language",
"active"
]
}
},
"required": [
"address"
]
}
]
},
"transaction": {
"type": "object",
"properties": {
"installments": {
"type": "number"
}
}
}
},
"required": [
"external",
"paymentDate",
"parentGuardian",
"paymentMethod",
"conciliationAccount",
"price",
"originalPrice",
"discountList",
"itemList",
"freight",
"addressList",
"transactiontransaccion"
]
} |
Code Block |
---|
language | js |
---|
title | Ejemplo - Pago por paquete |
---|
collapse | true |
---|
| {
"external": {
"orderId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
"orderConsolidatorId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5"
},
"paymentDate": "2023-06-07T16:21:38+00:00",
"parentGuardian": {
"refId": "00000000-0000-1000-0000-000012282310",
"document": "03915826588"
},
"paymentMethod": "TCV",
"conciliationAccount": "YAPY",
"price": 1118.5200,
"originalPrice": 4406.8000,
"discountList": [
{
"porcentage": 74.6183,
"amount": 3288.2800
}
],
"itemList": [
{
"articleRefId": "00000000-0000-1000-0000-000000118094",
"student": {
"refId": "00000000-0000-1000-0000-000020096053",
"personRefId": "00000000-0000-1000-0000-000012271661"
},
"totalItem": 1,
"price": 559.2617,
"originalPrice": 2203.398,
"discountList": [
{
"porcentage": 23.7097,
"reason": "COM",
"amount": 522.4191
},
{
"porcentage": 66.73,
"reason": "FFS",
"amount": 1121.7172
}
],
"porcentageTaxes": 0,
"taxes": 0,
"salesType": "VENTA",
"salesChannel": "ALU",
"installments": 1
},
{
"articleRefId": "00000000-0000-1000-0000-000000118095",
"student": {
"refId": "00000000-0000-1000-0000-000020096149",
"personRefId": "00000000-0000-1000-0000-000012271845"
},
"totalItem": 1,
"price": 559.2617,
"originalPrice": 2203.398,
"discountList": [
{
"porcentage": 23.7097,
"reason": "COM",
"amount": 522.4191
},
{
"porcentage": 66.73,
"reason": "HP",
"amount": 1121.7172
}
],
"porcentageTaxes": 0,
"taxes": 0,
"salesType": "VENTA",
"salesChannel": "ALU",
"installments": 1
}
],
"freight": {
"transportName": "",
"transportPhone": "",
"transportCode": "",
"orderNote": "",
"orderFreightValue": 0,
"orderDeliveryForecast": "dd/mm/yyyy",
"orderEstablishment": ""
},
"addressList": [
{
"address": {
"addressType": "Physical",
"street": "Rua Gavião Peixoto",
"outdoorNumber": "313",
"interiorNumber": "",
"neighborhood": "Icaraí",
"city": "RIO DE JANEIRO",
"postalCode": "24230092",
"county": {
"refId": "00000000-0000-1000-0000-000000020226",
"countyCode": "BE402DF"
},
"contact": "Alfredo Pai",
"phone": "",
"phone2": "12345678901",
"position": "Contacto Principal",
"officeHours": "",
"email": "test@test.com",
"timeZone": {
"refId": "00000000-0000-1000-0000-000000000028"
},
"language": {
"refId": "00000000-0000-1000-0000-000000000017"
},
"active": true
}
},
{
"address": {
"addressType": "Mailing",
"street": "Rua Gavião Peixoto",
"outdoorNumber": "313",
"interiorNumber": "",
"neighborhood": "Icaraí",
"city": "RIO DE JANEIRO",
"postalCode": "24230092",
"county": {
"refId": "00000000-0000-1000-0000-000000020226",
"countyCode": "BE402DF"
},
"contact": "Alfredo Pai",
"phone": "",
"phone2": "12345678901",
"position": "Contacto Principal",
"officeHours": "",
"email": "test@test.com",
"timeZone": {
"refId": "00000000-0000-1000-0000-000000000028"
},
"language": {
"refId": "00000000-0000-1000-0000-000000000017"
},
"active": true
}
}
],
"transaction": {}
} |
Code Block |
---|
language | js |
---|
title | Ejemplo - Pago fraccionado |
---|
collapse | true |
---|
| {
"external": {
"orderId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
"orderConsolidatorId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5"
},
"paymentDate": "2023-06-07T16:21:38+00:00",
"parentGuardian": {
"refId": "00000000-0000-1000-0000-000012431581",
"document": "27288324800"
},
"paymentMethod": "PWM",
"conciliationAccount": "",
"price": 760.73,
"originalPrice": 760.73,
"itemList": [
{
"articleRefId": "00000000-0000-1000-0000-000000118090",
"student": {
"refId": "00000000-0000-1000-0000-000020700764",
"personRefId": "00000000-0000-1000-0000-000012147907"
},
"totalItem": 1,
"price": 741.12,
"originalPrice": 741.12,
"porcentageTax": 0,
"taxes": 0,
"salesType": "VENTA",
"salesChannel": "ALU",
"salesOption": "OB",
"installments": 1,
"componentList": [
{
"articleRefId": "00000000-0000-1000-0000-000000094355",
"totalItem": 1,
"price": 143.2523,
"originalPrice": 219,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 119.5477
}
]
},
{
"articleRefId": "00000000-0000-1000-0000-00000094584",
"totalItem": 1,
"price": 66.7202,
"originalPrice": 102,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 55.6798
}
]
},
{
"articleRefId": "00000000-0000-1000-0000-000000094294",
"totalItem": 1,
"price": 138.6734,
"originalPrice": 212,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 115.7266
}
]
},
{
"articleRefId": "00000000-0000-1000-0000-000000094344",
"totalItem": 1,
"price": 138.6734,
"originalPrice": 212,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 115.7266
}
]
},
{
"articleRefId": "00000000-0000-1000-0000-000000094291",
"totalItem": 1,
"price": 138.6734,
"originalPrice": 212,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 115.7266
}
]
},
{
"articleRefId": "00000000-0000-1000-0000-000000094604",
"totalItem": 1,
"price": 115.1251,
"originalPrice": 176,
"markupPorcentage": 20,
"taxes": 0,
"porcentageTax": 0,
"discountList": [
{
"porcentage": 45.49,
"reason": "VEFR",
"amount": 96.0749
}
]
}
]
}
],
"freight": {
"transportName": "",
"transportPhone": "",
"transportCode": "",
"orderNote": "",
"orderFreightValue": 19.61,
"orderDeliveryForecast": "2023-06-07T16:21:38+00:00",
"orderEstablishment": ""
},
"addressList": [
{
"address": {
"addressType": "Physical",
"street": "Rua Gavião Peixoto",
"outdoorNumber": "313",
"interiorNumber": "",
"neighborhood": "Icaraí",
"city": "RIO DE JANEIRO",
"postalCode": "24230092",
"county": {
"refId": "00000000-0000-1000-0000-000000020226",
"countyCode": "BE402DF"
},
"contact": "Alfredo Pai",
"phone": "",
"phone2": "12345678901",
"position": "Contacto Principal",
"officeHours": "",
"email": "test@test.com",
"timeZone": {
"refId": "00000000-0000-1000-0000-000000000028"
},
"language": {
"refId": "00000000-0000-1000-0000-000000000017"
},
"active": true
}
},
{
"address": {
"addressType": "Mailing",
"street": "Rua Gavião Peixoto",
"outdoorNumber": "313",
"interiorNumber": "",
"neighborhood": "Icaraí",
"city": "RIO DE JANEIRO",
"postalCode": "24230092",
"county": {
"refId": "00000000-0000-1000-0000-000000020226",
"countyCode": "BE402DF"
},
"contact": "Alfredo Pai",
"phone": "",
"phone2": "12345678901",
"position": "Contacto Principal",
"officeHours": "",
"email": "test@test.com",
"timeZone": {
"refId": "00000000-0000-1000-0000-000000000028"
},
"language": {
"refId": "00000000-0000-1000-0000-000000000017"
},
"active": true
}
}
],
"transacciontransaction": {}
} |
|
---|