Versions Compared

Key

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

Pago aplicado

Descripción
MétodoPOST
URL
/apply

Status
subtletrue
colourBlue
titleEJEMPLO

Ejemplo
Payload


Code Block
languagejs
titleJSON Schema
collapsetrue
{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"properties": {
		"external": {
			"type": "object",
			"properties": {
				"orderId": {
					"description": "Identificador externo del pago",
					"type": "string"
				},
				"
orderConsolidatorId
collectionOrderId": {
					"
type
description": "
string" }
Identificador externo del pago por tarjeta", 
		
},
			"
required
type": 
[
"string"
				
"orderId"
},
				"
orderConsolidatorId
consolidatorOrderId": {
			
]
		
},
"
paymentDate
description":
{
 "Identificador externo del agrupador, unificador de empresas",
					"type": "string"
				},
				"
parentGuardian
consolidatorValue": {
"type

                    "description": "
object", "properties": { "refId": { "type": "string" }, "document": {
Valor total de la compra por cada una de las empresas",
                    "type": number,
					"
type": "string" } },
exclusiveMinimum": 0
                },
                "totalValue": {
                    "description": "Valor total de la compra, si es multi-sello o 2 tarjetas, aquí va el valor de toda la compra",
                    "type": number,
					"exclusiveMinimum": 0
                },
				"orderCount": {
					"description": "Es la cantidad de pedidos que conforman la compra",
                    "type": number,
					"exclusiveMinimum": 0
					"example": 2
				}
			},
			"required": [
				"orderId",
				"consolidatorOrderId",
				"totalValue",
				"orderCount"
			]
		},
		"paymentDate": {
			"description": "Fecha en la que se realiza el pago",
			"type": "string",
			"format": "date-time"
		},
		"parentGuardian": {
			"type": "object",
			"properties": {
				"refId": {
					"description": "Id en BDC de la persona que está realizando el pago",
					"type": "string",
					"format": "uuid",
					"maxLength": 36,
					"minLength": 36
				},
				"document": {
					"description": "Documento de identificación de la persona que está realizando el pago (CPF)",
					"type": "string"
				}
			},
			"required": [
				"refId",
				"document"
			]
		},
		"paymentMethod": {
			"description": "Identificador del método de pago, es el campo parametro en la tabla forma_pago",
			"type": "string",
			"minLength": 0,
			"maxLength": 10
		},
		"conciliationAccount": {
			"description": "Identificador del concentrador de pago, es el campo parametro en la tabla concentra_pago",
			"type": "string",
			"minLength": 0,
			"maxLength": 6
		},
		"price": {
			"description": "Precio final a pagar, después de markup, descuentos, impuestos y cargos", 
			"type": "number",
			"exclusiveMinimum": 0
		},
		"originalPrice": {
			"description": "Precio inicial a pagar, antes de markup, descuentos, impuestos y cargos", 
			"type": "number",
			"exclusiveMinimum": 0
		},
		"discounts": { 
			"description": "Descuentos aplicados en la compra", 
			"type": "object",
			"properties": { 
				"discountOne": {
					"description": "Concentra el valor acumulado de los descuentos que no sean de tipo PARC",
					"type": "object", 
					"properties": { 
						"amount": { 
							"description": "Es el valor acumulado de los descuentos que no sean de tipo PARC",
							"type": "number", 
							"minimum": 0 
						} 
					}, 
					"required": [ 
						"amount" 
					]
				},
				"discountTwo": {
					"description": "Concentra el valor del descuento de tipo PARC",
					"type": "object", 
					"properties": { 
						"amount": { 
							"description": "Es el valor correspondiente al descuento de tipo PARC",
							"type": "number", 
							"minimum": 0 
						} 
					}, 
					"required": [ 
						"amount"
					]
				} 
			] 
		},
		"taxes": {
			"description": "Valor total de los impuestos aplicados, correspondiente al porcentaje total de impuestos",
			"type": "number",
			"minimum": 0
		},
		"taxRate": { 
			"description": "Porcentaje total de impuestos aplicados",
			"type": "number",
			"minimum": 0
		},	
		"itemList": {
			"description": "Lista de paquetes vendidos",
			"type": "array",
			"uniqueItems": true,
			"minItems": 1,
			"items": [
				{
					"type": "object",
					"properties": {
						"articleRefId": {
							"description": "Id en BDC del artículo/paquete",
							"type": "string",
							"format": "uuid",
							"maxLength": 36,
							"minLength": 36
						},
						"student": {
							"type": "object",
							"properties": {
								"refId": {
									"description": "Id en BDC del alumno",
									"type": "string",
									"format": "uuid",
									"maxLength": 36,
									"minLength": 36
								},
								"personRefId": {
									"description": "Id en BDC de la persona asociada al alumno",
									"type": "string",
									"format": "uuid",
									"maxLength": 36,
									"minLength": 36
								}
							},
							"required": [
								"refId",
								"personRefId"
							]
						},
						"totalItem": {
							"description": "Cantidad vendida del artículo/paquete",
							"type": "integer",
							"exclusiveMinimum": 0
						},
						"price": {
							"description": "Precio final del artículo/paquete, después de markup, descuentos, impuestos y cargos",
							"type": "number",
							"exclusiveMinimum": 0
						},
						"originalPrice": {
							"description": "Precio inicial del artículo/paquete, antes de markup, descuentos, impuestos y cargos",
							"type": "number",
							"exclusiveMinimum": 0
						},
						"discountList": { 
							"description": "Lista de descuentos aplicados al artículo/paquete, si hay un descuento comercial este debe ser informado siempre primero, es decir, en la primera posición del array, si hay más de 3 descuentos aplicados estos se acumulan en el tercer/último descuento", 
							"type": "array", 
							"uniqueItems": true, 
							"minItems": 1,
							"maxItems": 3, 
							"items": [ 
								{ 
									"type": "object", 
									"properties": { 
										"rate": { 
											"description": "Indica el porcentaje del descuento",
											"type": "number", 
											"exclusiveMinimum": 0 
										}, 
										"reason": { 
											"description": "Identificador de la razón del descuento, es el campo parametro en la tabla razon",
											"type": "string",
											"minLength": 0,
											"maxLength": 16 
										}, 
										"amount": { 
											"description": "Indica el valor correspondiente al porcentaje del descuento",
											"type": "number", 
											"exclusiveMinimum": 0 
										} 
									}, 
									"required": [ 
										"rate", 
										"reason", 
										"amount" 
									] 
								} 
							] 
						},
						"taxes": {
							"description": "Valor de los impuestos aplicados al artículo/paquete, correspondiente al porcentaje de impuestos",
							"type": "integer",
							"minimum": 0
						},
						"taxRate": { 
							"description": "Porcentaje de impuestos aplicados al artículo/paquete",
							"type": "integer",
							"minimum": 0
						},
						"salesType": {
							"description": "Identificador del tipo de venta, es el campo parametro en la tabla tipo_venta",
							"type": "string",
							"minLength": 0,
							"maxLength": 14
						},
						"salesChannel": {
							"description": "Identificador del canal de venta, es el campo parametro en la tabla canal_venta",
							"type": "string",
							"minLength": 0,
							"maxLength": 10
						},
						"salesOption": {
							"description": "Identificador de la opción de venta, es el campo parametro en la tabla opcion_venta",
							"type": "string",
							"minLength": 0,
							"maxLength": 3
						},
						"componentList": {
							"description": "Lista de los artículos/componentes que forman parte del artículo/paquete vendidos, este atributo solo debe estar presente cuando es un pago de una venta fraccionada o cuando la empresa requiere desglose de componentes para la integración con el ERP, por ejemplo: Compartilha y TDL",
							"type": "array",
							"items": [
								{
									"type": "object",
									"properties": {
										"articleRefId": {
											"description": "Id en BDC del artículo/componente",
											"type": "string",
											"format": "uuid",
											"maxLength": 36,
											"minLength": 36
										},
										"totalItem": {
											"description": "Cantidad vendida del artículo/paquete",
											"type": "integer",
											"exclusiveMinimum": 0
										},
										"price": {
											"description": "Precio final del artículo/componente, después de markup, descuentos, impuestos y cargos",
											"type": "number",
											"exclusiveMinimum": 0
										},
										"originalPrice": {
											"description": "Precio inicial del artículo/componente, antes de markup, descuentos, impuestos y cargos",
											"type": "number",
											"exclusiveMinimum": 0
										},
										"markupRate": {
											"description": "",
											"type": "number",
											"minimum": 0
										},
										"priceWithMarkup": {
											"description": "Valor del precio inicial del articulo/componente, después del markup",
											"type": "number",
											"minimum": 0
										},
										"taxes": {
											"description": "Valor de los impuestos aplicados al artículo/componente, correspondiente al porcentaje de impuestos",
											"type": "number",
											"minimum": 0
										},
										"taxRate": {
											"description": "Porcentaje de impuestos aplicados al artículo/componente",
											"type": "number",
											"minimum": 0
										},
										"discountList": {
											"description": "Lista de descuentos aplicados al artículo/componente, solo puede indicarse el tipo de descuento por venta fraccionada",
											"type": "array",
											"uniqueItems": true,
											"minItems": 1,
											"maxItems": 1,
											"items": [
												{
													"type": "object",
													"properties": {
														"rate": {
															"description": "Indica el porcentaje del descuento",
															"type": "number",
															"exclusiveMinimum": 0
														},
														"reason": {
															"description": "Identificador de la razón del descuento, es el campo parametro en la tabla razon, para venta fraccionada solo se acepta el valor VEFR y si es venta por paquete solo se acepta el valor COM",
															"type": "string",
															"maxLength": 4, 
															"minLength": 4
														},
														"amount": {
															"description": "Indica el valor correspondiente al porcentaje del descuento",
															"type": "number",
															"exclusiveMinimum": 0
														}
													},
													"required": [
														"rate",
														"reason",
														"amount"
													]
												}
											]
										},
										"salesTerms": {
											"type": "object",
											"properties": {
												"familyCode": {
													"description": "Código da Família do Produto | Lista na plataforma | Código da categoria",
													"type": "string",
													"example": "idiomas"
												},
												"code": {
													"description": "El indicador del tipo de artículo/componente, puede tener solo 3 valores posibles: 1 cuando el tipo articulo es LIB, 2 cuando el tipo de articulo es LIBD y 3 cuanto el tipo de articulo sea SERV",
													"type": "number",
													"example": 1
												},
												"group": {
													"description": "1-Avulso, 2-Agrupado",
													"type": "number",
													"example": 1
												},
												"digitalCode": {
													"description": "Código ERP do produto digital | Caso o group == 2",
													"type": "string",
													"example": "22006077"
												},
												"isExclusive": {
													"description": "Item exclusivo: false - Não exclusivo, true - exclusivo",
													"type": "boolean",
													"example": true
												}
											},
											"required": [
												"familyCode",
												"code",
												"group",
												"digitalCode",
												"isExclusive"
											]
										}
									},
									"required": [
										"articleRefId",
										"totalItem",
										"price",
										"originalPrice",
										"markupRate",
										"priceWithMarkup",
										"taxes",
										"taxRate",
										"discountList",
										"salesTerms"
									]
								}
							]
						}
					},
					"required": [
						"articleRefId",
						"student",
						"totalItem",
						"price",
						"originalPrice",
						"taxes",
						"taxRate",
						"salesType",
						"salesChannel",
						"salesOption",
						"componentList"
					]
				}
			]
		},
		"freight": {
			"type": "object",
			"properties": {
				"transportName": {
					"type": "string"
				},
				"transportPhone": {
					"type": "string"
				},
				"transportCode": {
					"type": "string"
				},
				"orderNote": {
					"type": "string"
				},
				"orderFreightValue": {
					"type": "number"
				},
				"orderDeliveryForecast": {
					"type": "string"
				},
				"orderEstablishment": {
					"type": "string"
				}
			},
			"required": [
				"transportName",
				"transportPhone",
				"transportCode",
				"orderNote",
				"orderFreightValue",
				"orderDeliveryForecast",
				"orderEstablishment"
			]
		},
		"addressList": {
			"description": "Lista de domicilios asociados a la persona que realiza el pago",
			"type": "array",
			"uniqueItems": true,
			"minItems": 2,
			"maxItems": 3,
			"items": [
				{
					"type": "object",
					"properties": {
						"address": {
							"type": "object",
							"properties": {
								"addressType": {
									"description": "Indicador del tipo de domicilio, solo puede tener 3 valores (Physical, Mailing, Shipping)",
									"type": "string",
									"maxLength": 7,
									"minLength": 8
								},
								"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",
											"format": "uuid",
											"maxLength": 36,
											"minLength": 36
										},
										"countyCode": {
											"type": "string"
										}
									},
									"required": [
										"refId",
										"countyCode"
									]
								},
								"contact": {
									"type": "string"
								},
								"phone": {
									"type": "string"
								},
								"phone2": {
									"type": "string"
								},
								"position": {
									"type": "string"
								},
								"officeHours": {
									"type": "string"
								},
								"email": {
									"type": "string",
									"format": "email"
								},
								"timeZone": {
									"type": "object",
									"properties": {
										"refId": {
											"type": "string",
											"format": "uuid",
											"maxLength": 36,
											"minLength": 36
										}
									},
									"required": [
										"refId"
									]
								},
								"language": {
									"type": "object",
									"properties": {
										"refId": {
											"type": "string",
											"format": "uuid",
											"maxLength": 36,
											"minLength": 36
										}
									},
									"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"
					]
				}
			]
		},
    	"invoiceData": {
      		"type": "object",
	      	"properties": {
        		"name": {
          			"type": "string"
        		},
        		"lastName": {
          			"type": "string"
        		},
        		"document": {
          			"type": "string"
        		},
        		"isLegalPerson": {
          			"type": "boolean"
        		}
      		},
      		"required": [
        		"name",
        		"document",
        		"isLegalPerson"
      		]
    	},
		"transactions": {
			"description": "Lista de formas de pago utilizadas en la compra. Ejemplo, si se realiza un pago con 2 tarjetas, se cada elemento tendrá la información relacionada a la compra realizada de cada tarjeta."
			"type": "array",
			"items": [
				{
					"type": "object",
					"properties": {
						"orderId": {
							"description": "Identificador de la compra del lado del integrador (Venda Bem Pago)",
							"type": "string"
						},
						"transactionId": {
							"description": "Identificador de la transacción del lado del integrador (Transaçao Bem Pago)",
							"type": "string"
						},
						"establishmentCode": {
							"type": "integer"
						},
						"paymentMethodCode": {
							"type": "integer"
						},
						"value": {
							"type": "integer"
						},
						"valueDiscount": {
							"type": "integer"
						},
						"installments": {
							"type": "integer"
						},
						"status": {
							"type": "integer"
						},
						"authorization": {
							"type": "string"
						},
						"operatorTransactionCode": {
							"type": "string"
						},
						"operatorApprovalDate": {
							"type": "string"
						},
						"receipt": {
							"type": "string"
						},
						"nsu": {
							"type": "string"
						},
						"message": {
							"type": "string"
						},
						"card": {
							"description": "Datos de la tarjeta, este campo solo es obligatorio cuando el pago es con tarjeta",
							"type": "object",
							"properties": {
								"cardHolder": {
									"description": "Nombre del titular de la tarjeta",
									"type": "string"
								},
								"cardNumber": {
									"description": "Número de la tarjeta utilizada, tal cual la devuelve el integrador, con una mascara que solo 			muestra los primeros 6 dígitos, seguidos de 7 asteríscos y los últimos 4 dígitos",
									"examples": ["123456*******7890"],
									"type": "string"
								},
								"document": {
									"description": "Documento de identificación de la persona titular de la tarjeta (CPF)",
									"type":"string"
								}
							},
							"required": [
								"
refId
cardHolder",
								"
document
cardNumber",
				
]
		
},
		"
paymentMethod
document"
: {

			
"type": "string"
		
},
		
"conciliationAccount": {
]
				
"type": "string"
		},
		
"price": {
				"
type
paymentUrl": 
"number"
{
		
},
		
"originalPrice": {
			"
type
description": "
number" }, "discountList": { "type": "array", "items": [ {
Este campo es obligatorio cuando es un pago fraccionado",
							"type": "
object
string"
,

						
"properties": {
},
						"
porcentage
paymentValue": {
							"type": "
number
integer"
						},
						"
amount
interest": {
							"description": "Es la diferencia entre paymentValue menos value",
							"type": "
number
integer"
						}
					},
					"required": [
						"
porcentage
orderId",
						"
amount
transactionId",
						
]
"establishmentCode",
						
}
"paymentMethodCode",
				
]
		
}
"value",
						"
itemList
valueDiscount"
: {
,
						"
type": "array
installments",
						"
items
status"
:
,
[
						
{
"authorization",
						"
type
operatorTransactionCode"
: "object
,
						"operatorApprovalDate",
						"
properties
receipt"
: {
,
						"
articleRefId
nsu"
:
,
{
						"
type
paymentUrl"
: "string"

					]
				}
,

			]
		},
		"
student
splitPayment": {
			"
type
description": "
object
Indicador de que la información es parte de un pago realizado con 2 tarjetas",
			
"type": boolean,
			"
properties
example": 
{
true
		
},
		"
refId
mixedBundling": {
			"
type
description": "
string"
Indicador de que el pago es fraccionado",
			"type": boolean,
			"example": true
		},
		"
personRefId
multipleBusinesses": {
			"
type
description": "
string"
Indicador de que el pago es parte de una compra multi-sello",
			"type": boolean,
			
}
"example": false
		}
	},
	"required": [
		"external",
		"paymentDate",
		"parentGuardian",
		"
refId
paymentMethod",
		"price",
		"originalPrice",
		"taxes",
		"
personRefId
taxRate",
		"itemList",
		"freight",
		
]
"addressList",
		"invoiceData",
		"transaction",
		
}
"splitPayment",
		"mixedBundling",
		"multipleBusinesses"
	]
}


Code Block
languagejs
titleEjemplo - Pago por paquete
collapsetrue
{
	"
totalItem
external": {
		
"
type
orderId": "
integer" }
9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		
"
price
collectionOrderId": 
{ "type
"9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		"consolidatorOrderId": "
number"
9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		
},
"totalValue": 1118.5200,
		"
originalPrice
orderCount": 
{
1
	
},
	"
type
paymentDate": "
number" }, "discountList
2023-06-07T16:21:38+00:00",
	"parentGuardian": {
		
"
type
refId": "
array
00000000-0000-1000-0000-000012282310",
		"
items
document": 
[
"03915826588"
	
{ "type
},
	"paymentMethod": "
object
TCV",
	"
properties
conciliationAccount": 
{
"YAPY",
	
"porcentage
"price": 
{ "type": "number" }, "reason": { "type": "string" }, "amount
1118.5200,
	"originalPrice": 4406.8000,
	"discountList": [
		{
			"rate": 74.6183,
			"amount": 3288.2800
		}
	],
	"itemList": [
		{
			"articleRefId": "00000000-0000-1000-0000-000000118094",
			"student": {
				
"refId": "00000000-0000-1000-0000-000020096053",
				"
type
personRefId": "
number
00000000-0000-1000-0000-000012271661"
			},
			"totalItem": 1,
			"price": 559.2617,
			
}
"originalPrice": 2203.3980,
			
"required
"discountList": [
				
{
					"
porcentage
rate": 23.7097,
					
"reason": "COM",
					"amount"
] } ]
: 522.4191
				},
				{
					"
porcentageTaxes
rate": 
{
36.7300,
					"
type
reason": "
integer
FFS",
					"amount": 1121.7172
				},
				{
					"
taxes
rate": 
{
25.0000,
					
"
type
reason": "
integer
IT",
					"amount": 1121.7172
				}
,

			],
			"
salesType
taxes": 
{
0.0000,
			"taxRate": 0.0000,
			
"
type
salesType": "
string
VENTA",
			
}
"salesChannel": "ALU",
			
"
salesChannel
installments": 
{
1
		},
		{
			"
type
articleRefId": "
string"
00000000-0000-1000-0000-000000118095",
			
},
"student": {
				
"
installments
refId": 
{
"00000000-0000-1000-0000-000020096149",
				
"
type
personRefId": "
integer
00000000-0000-1000-0000-000012271845"
			},
			"totalItem": 1,
			"
componentList
price": 
{
559.2617,
			
"
type
originalPrice": 
"array"
2203.398,
			
"
items
discountList": [
				{
				
{
	"rate": 23.7097,
					"
type
reason": "
object
COM",
					"
properties
amount": 
{
522.4191
				},
				{
					"
articleRefId
rate": 
{
66.7300,
					
"type
"reason": "
integer
HP",
					"amount": 1121.7172
				
}
,

			],
			
"taxes": 0.0000,
			"
totalItem
taxRate": 
{
0.0000,
			
"type
"salesType": "
integer
VENTA",
			
}
"salesChannel": "ALU",
			"installments": 1
		}
	
"price
],
	"freight": {
		"transportName": "",
		"transportPhone": "",
		
"type
"transportCode": "
integer
",
		
},
"orderNote": "",
		"
taxes
orderFreightValue": 
{
0,
		
"type
"orderDeliveryForecast": "
integer
dd/mm/yyyy",
		
"orderEstablishment": ""
	},
	"addressList": [
		
{
			
"
discountList
address": {
				"addressType": "Physical",
				"street": "Rua Gavião Peixoto",
				"
type
outdoorNumber": "
array
313",
				"interiorNumber": "",
				"neighborhood": "Icaraí",
				"
items
city":
[
 "RIO DE JANEIRO",
				"postalCode": "24230092",
				
{
"county": {
					"
type
refId": "
object
00000000-0000-1000-0000-000000020226",
					"countyCode": "BE402DF"
				},
				
"
properties
contact": 
{
"Alfredo Pai",
				
"phone": "",
				
"porcentage
"phone2": 
{
"12345678901",
				"
type
position": "
integer
Contacto Principal",
				
}
"officeHours": "",
				
"email": "test@test.com",
				
"
reason
timeZone": {
					
"
type
refId": "
string"
00000000-0000-1000-0000-000000000028"
				
},
				
"amount
"language": {
					"
type
refId": "
integer
00000000-0000-1000-0000-000000000017"
				},
				"active": true
			
}
		},
		{
			
},
"address": {
				"addressType": "Mailing",
				"street": "Rua Gavião Peixoto",
				
"
required
outdoorNumber": 
[
"313",
				"interiorNumber": "",
				"neighborhood": "Icaraí",
				
"porcentage
"city": "RIO DE JANEIRO",
				"postalCode": "24230092",
				"county": {
					
"reason
"refId": "00000000-0000-1000-0000-000000020226",
					
"countyCode": "BE402DF"
				},
				
"amount"
"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"
				},
				
"
required
active": 
[
true
			}
		}
	],
  	"invoiceData": {
    	"name": "Alfredo",
    	
"articleRefId", "totalItem", "price", "taxes", "discountList" ] } ] } }, "required": [ "articleRefId", "student", "totalItem", "price", "originalPrice", "discountList", "porcentageTaxes", "taxes", "salesType", "salesChannel", "installments", "componentList" ] } } ] }, "freight": { "type": "object", "properties": { "transportName": { "type": "string" }, "transportPhone": { "type": "string" }, "transportCode": { "type": "string" }, "orderNote": { "type": "string" }, "orderFreightValue": { "type": "integer" }, "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" }
"lastName": "Bernal",
    	"document": "07319150972",
    	"isLegalPerson": false  
  	},
	"transaction": {
		"orderId": 3511,
		"transactionId": 20027340,
   	 	"establishmentCode": 1627652346504,
    	"paymentMethodCode": 190,
    	"value": 198055,
    	"valueDiscount": 0,
    	"installments": 2,
    	"status": 1,
    	"authorization": "263461",
    	"operatorTransactionCode": "00",
    	"operatorApprovalDate": "2023-07-19 11:26:35",
    	"receipt": "10462307190818157291",
    	"nsu": "11409373",
    	"message": "Sucesso.",
    	"card": {
      		"cardHolder": "Alfredo Bernal",
      		"cardNumber": "123456*******7890",
      		"document": "07319150972"
    	},	
    	"paymentUrl": "https://api.bempaggo.io/proxy/yapay/checkout/api/v3/transacao/1627652346504/20027340",
		"paymentValue": 198055,
		"interest": 0
	},
	"mixedBundling": false,
    "splitPayment": false
}


Code Block
languagejs
titleEjemplo - Pago fraccionado
collapsetrue
{
	"external": {
		"orderId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		"collectionOrderId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		"consolidatorOrderId": "9d4d296d-f9c7-4ce8-96c5-9721cdd2c8d5",
		"totalValue": 1118.5200,
		"orderCount": 1
	},
	"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,
			"taxes": 0.0000,
			"taxRate": 0.0000,
			"salesType": "VENTA",
			"salesChannel": "ALU",
			"salesOption": "OB",
			"installments": 1,
			"componentList": [
				{
					"articleRefId": "00000000-0000-1000-0000-000000094355",
					"totalItem": 1,
					"price": 143.2523,
					"originalPrice": 219,
					"markupRate": 20.0000,
					"priceWithMarkup": 0.0000,
					"taxes": 0.0000,
					"taxRate": 0.0000,
					"discountList": [
						{
							"rate": 45.4900,
							
"
postalCode
reason": 
{
"VEFR",
							
"
type
amount": 
"string"
119.5477
						}
		
},
			],
					"
county
salesTerms": {
						
"
type
familyCode": "
object
idiomas",
						
"
properties
code": 
{
1,
						"
refId
group": 
{
2,
						
"
type
digitalCode": "
string
22006077",
						"isExclusive": false
					}
,

				
},
				
"countyCode":
{
					
"
type
articleRefId": "
string"
00000000-0000-1000-0000-00000094584",
					"totalItem": 1,
					
}
"price": 66.7202,
					
}
"originalPrice": 102,
					
"
required
markupRate": 
[
20.0000,
					"priceWithMarkup": 0.0000,
					"
refId
taxes": 0.0000,
					"taxRate": 0.0000,
					"
countyCode
discountList": [
						
]
{
							
}
"rate": 45.4900,
							
"
contact
reason": 
{
"VEFR",
							
"
type
amount": 
"string"
55.6798
						}
		
},
			],
					"
phone
salesTerms": {
						"
type
familyCode": "
string
idiomas",
						
}
"code": 1,
						"
phone2
group": 
{
2,
						
"
type
digitalCode": "
string
22006077",
						"isExclusive": false
					}
,

				},
				
"position":
{
					
"
type
articleRefId": "
string"
00000000-0000-1000-0000-000000094294",
					
}
"totalItem": 1,
					
"
officeHours
price": 
{
138.6734,
					"originalPrice": 212,
					"
type
priceWithMarkup": 
"string"
0.0000,
					
}
"markupRate": 20.0000,
					"
email
taxes": 
{
0.0000,
					"taxRate": 0.0000,
					"
type
discountList": 
"string"
[
						
},
{
							
"
timeZone
rate": 
{
45.4900,
							"
type
reason": "
object
VEFR",
							
"
properties
amount": 
{
115.7266
						}
					],
					"
refId
salesTerms": {
						
"
type
familyCode": "
string
idiomas",
						
} },
"code": 1,
						"
required
group": 
[
2,
						
"refId"
"digitalCode": "22006077",
						"isExclusive": false
			
]
		}
				
},
				{
					"
language
articleRefId": 
{
"00000000-0000-1000-0000-000000094344",
					"totalItem": 1,
					"
type
price": 
"object"
138.6734,
					"originalPrice": 212,
					"
properties
priceWithMarkup": 
{
0.0000,
					"markupRate": 20.0000,
					"
refId
taxes": 
{
0.0000,
				
	"taxRate": 0.0000,
					
"
type
discountList": 
"string"
[
						
}
{
							
}
"rate": 45.4900,
							
"
required
reason": 
[
"VEFR",
							
"
refId
amount": 115.7266
						
]
}
					
}
],
					
"
active
salesTerms": {
						"
type
familyCode": "
boolean
idiomas",
						"code": 1,
						
}
"group": 2,
						
}
"digitalCode": "22006077",
						"
required
isExclusive": 
[
false
					}
				
"addressType"
},
				{
					
"street
"articleRefId": "00000000-0000-1000-0000-000000094291",
					"
outdoorNumber
totalItem": 1,
					
"
interiorNumber
price": 138.6734,
					
"
neighborhood
originalPrice": 212,
					
"
city
markupRate": 20.0000,
					"
postalCode
priceWithMarkup": 0.0000,
					
"
county
taxes": 0.0000,
					"
contact
taxRate": 0.0000,
					
"
phone
discountList"
,
: [
						
"phone2",
{
							
"
position
rate": 45.4900,
							
"officeHours
"reason": "VEFR",
							"
email",
amount": 115.7266
						}
		
"timeZone",
			],
					"
language
salesTerms"
,
: {
						
"active"
"familyCode": "idiomas",
						
]
"code": 1,
						
} }
"group": 2,
						"
required
digitalCode": 
[
"22006077",
						"
address
isExclusive": false
					
]
}
				},
			
]
	{
		
}
			"articleRefId": "00000000-0000-1000-0000-000000094604",
					"
transaction
totalItem": 
{
1,
					"
type
price": 
"object"
115.1251,
		
}
		
},
	"
required
originalPrice": 
[
176,
			
"external",
		"
paymentDate
markupRate": 20,
		
"parentGuardian",
			"
paymentMethod
priceWithMarkup": 0.0000,
		
"conciliationAccount",
			"
price
taxes": 0,
			
"originalPrice",
		"
discountList
taxRate": 0,
			
"itemList",
		"
freight
discountList"
,
: [
		
"addressList",
		
"transaction" ] } Code Block
languagejs
titleEjemplo - Pago por paquete
collapsetrue
{ "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 },
		{
							"rate": 45.49,
							"reason": "VEFR",
							"amount": 96.0749
						}
					],
					"salesTerms": {
						"familyCode": "idiomas",
						"code": 1,
						"group": 2,
						"digitalCode": "22006077",
						"isExclusive": false
					}
				}
			]
		}
	],
	"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": {
					"
porcentage
refId": 
66.73
"00000000-0000-1000-0000-000000020226",
					"
reason
countyCode": "
FFS"
BE402DF"
				},
				"
amount
contact": 
1121.7172
"Alfredo Pai",
				
} ]
"phone": "",
				"
porcentageTaxes
phone2": 
0
"12345678901",
				"
taxes
position": 
0
"Contacto Principal",
				"
salesType
officeHours": "
VENTA
",
				"
salesChannel
email": "
ALU
test@test.com",
				"
installments
timeZone": 
1 },
{
		
{
			"
articleRefId
refId": "00000000-0000-1000-0000-
000000118095"
000000000028"
				},
				"
student
language": {
					"refId": "00000000-0000-1000-0000-
000020096149",
000000000017"
				},
				"active": true
			}
		},
		{
			"address": {
				"
personRefId
addressType": "
00000000-0000-1000-0000-000012271845" }
Mailing",
				"street": "Rua Gavião Peixoto",
				"
totalItem
outdoorNumber": 
1
"313",
				"
price
interiorNumber": 
559.2617
"",
				"
originalPrice
neighborhood": 
2203.398
"Icaraí",
				"
discountList
city":
[
 "RIO DE JANEIRO",
				
{
"postalCode": "24230092",
				
"
porcentage
county": 
23.7097,
{
					"
reason
refId": "
COM
00000000-0000-1000-0000-000000020226",
					"
amount
countyCode": 
522.4191
"BE402DF"
				},
{

				
"
porcentage
contact":
66.73
 "Alfredo Pai",
				"
reason
phone": "
HP
",
				"
amount
phone2": 
1121.7172 } ],
"12345678901",
				"
porcentageTaxes
position": 
0
"Contacto Principal",
				"
taxes
officeHours": 
0
"",
				"
salesType
email": "
VENTA
test@test.com",
				"
salesChannel
timeZone": 
"ALU",
{
					"
installments
refId": 
1
"00000000-0000-1000-0000-000000000028"
				},
	
],
			"
freight
language": {
					"
transportName
refId": "00000000-0000-1000-0000-000000000017"
				},
				"
transportPhone
active": 
""
true
			}
		}
	],
  	
"
transportCode
invoiceData":
"",
 {
    	"
orderNote
name": "Alfredo",
"orderFreightValue": 0,

    	
"
orderDeliveryForecast
lastName": "
dd/mm/yyyy
Bernal",
    	
"
orderEstablishment
document": "07319150972"
},
,
    	"
addressList
isLegalPerson": false 
[
 
{

"address":
 
{
 	
},
	"
addressType
transactions": 
"Physical",
[
		
"street": "Rua Gavião Peixoto",
{
			
"
outdoorNumber
orderId": 
"313"
3511,
			
"
interiorNumber
transactionId": 
""
20027340,
			"
neighborhood
establishmentCode": 
"Icaraí"
1627652346504,
			"
city
paymentMethodCode": 
"RIO DE JANEIRO"
190,
			"
postalCode
value": 
"24230092"
198055,
			"
county
valueDiscount": 
{
0,
			"
refId
installments": 
"00000000-0000-1000-0000-000000020226"
2,
			"
countyCode
status": 
"BE402DF" }
1,
			"
contact
authorization": "
Alfredo Pai
263461",
			
"
phone
operatorTransactionCode": "00",
			"
phone2
operatorApprovalDate": "
12345678901
2023-07-19 11:26:35",
			"
position
receipt": "
Contacto Principal
10462307190818157291",
			"
officeHours
nsu": "11409373",
			
"
email
message": "
test@test
Sucesso.
com
",
			
"
timeZone
card": {
				"
refId
cardHolder": "
00000000-0000-1000-0000-000000000028" }
Alfredo Bernal",
				"
language
cardNumber": 
{
"123456*******7890",
				"
refId
document": "
00000000-0000-1000-0000-000000000017
07319150972"
			
},
			"
active
paymentUrl": 
true
"https://api.bempaggo.io/proxy/yapay/checkout/api/v3/transacao/1627652346504/20027340",
			
} }
"paymentValue": 198055,
	
{
		
"
address
interest": 0
		},
		{
			"
addressType
orderId": 
"Mailing"
3511,
			"
street
transactionId": 
"Rua Gavião Peixoto"
20027341,
			
"
outdoorNumber
establishmentCode": 
"313"
1627652346504,
			"
interiorNumber
paymentMethodCode": 
""
190,
			"
neighborhood
value": 
"Icaraí"
198055,
			"
city
valueDiscount": 
"RIO DE JANEIRO"
0,
			
"
postalCode
installments": 
"24230092"
2,
			
"
county
status": 
{
1,
			
"
refId
authorization": "
00000000-0000-1000-0000-000000020226
263462",
			"
countyCode
operatorTransactionCode": "
BE402DF" }
00",
			"
contact
operatorApprovalDate": "
Alfredo Pai
2023-07-19 11:26:35",
			"
phone
receipt": "10462307190818157292",
			
"
phone2
nsu": "
12345678901
11409374",
			
"
position
message": "
Contacto Principal
Sucesso.",
			
"
officeHours
card": 
"",
{
				"
email
cardHolder": "
test@test.com
Alfredo Bernal",
				"
timeZone
cardNumber": 
{
"123456*******7890",
				"
refId
document": "
00000000-0000-1000-0000-000000000028
07319150972"
			
},
			"
language
paymentUrl": 
{
"https://api.bempaggo.io/proxy/yapay/checkout/api/v3/transacao/1627652346504/20027340",
			"
refId
paymentValue": 
"00000000-0000-1000-0000-000000000017" }
198055,
			
"
active
interest": 
true
0
		
}
	
} ], "transaction
],
	"mixedBundling": false,
    "splitPayment": 
{}
false
}