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": {
					"
type
description": "
string" }, "orderConsolidatorId": {
Identificador externo del pago",
					"type": "string"
				},
			
},
	
"
required
collectionOrderId": 
[
{
					"
orderId
description"
,
: 
"orderConsolidatorId" ] }, "paymentDate": {
"Identificador externo del pago por tarjeta", 
					"type": "string"
				},
				"
parentGuardian
consolidatorOrderId": {
					"
type
description": "
object", "properties": { "refId": {
Identificador externo del agrupador, unificador de empresas",
					"type": "string"
				},
				"
document
consolidatorValue": {
"type": "string" } }, "required": [ "refId", "document" ] }, "paymentMethod": { "type": "string" }, "conciliationAccount": { "type": "string" }, "price": { "type": "number" }, "originalPrice": { "type": "number" }, "discountList": { "type": "array", "items": [ { "type": "object", "properties": { "porcentage
                    "description": "Valor total de la compra por cada una de las empresas",
                    "type": number,
					"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": [
								"cardHolder",
								"cardNumber",
								"document"
							]
						},
						"paymentUrl": {
							"description": "Este campo es obligatorio cuando es un pago fraccionado",
							"type": "string"
						},
						"paymentValue": {
							"type": "integer"
						},
						"interest": {
							"description": "Es la diferencia entre paymentValue menos value",
							"type": "integer"
						}
					},
					"required": [
						"orderId",
						"transactionId",
						"establishmentCode",
						"paymentMethodCode",
						"value",
						"valueDiscount",
						"installments",
						"status",
						"authorization",
						"operatorTransactionCode",
						"operatorApprovalDate",
						"receipt",
						"nsu",
						"paymentUrl"
					]
				}
			]
		},
		"splitPayment": {
			"description": "Indicador de que la información es parte de un pago realizado con 2 tarjetas",
			"type": boolean,
			"example": true
		},
		"mixedBundling": {
			"description": "Indicador de que el pago es fraccionado",
			"type": boolean,
			"example": true
		},
		"multipleBusinesses": {
			"description": "Indicador de que el pago es parte de una compra multi-sello",
			"type": boolean,
			"example": false
		}
	},
	"required": [
		"external",
		"paymentDate",
		"parentGuardian",
		"paymentMethod",
		"price",
		"originalPrice",
		"taxes",
		"taxRate",
		"itemList",
		"freight",
		"addressList",
		"invoiceData",
		"transaction",
		"splitPayment",
		"mixedBundling",
		"multipleBusinesses"
	]
}


Code Block
languagejs
titleEjemplo - Pago por paquete
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-000012282310",
		"document": "03915826588"
	},
	"paymentMethod": "TCV",
	"conciliationAccount": "YAPY",
	"price": 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",
				"personRefId": "00000000-0000-1000-0000-000012271661"
			},
			"totalItem": 1,
			"price": 559.2617,
			"originalPrice": 2203.3980,
			"discountList": [
				{
					"rate": 23.7097,
					"reason": "COM",
					"amount": 522.4191
				},
				{
					"rate": 36.7300,
					"reason": "FFS",
					"amount": 1121.7172
				},
				{
					"rate": 25.0000,
					"reason": "IT",
					"amount": 1121.7172
				}
			],
			"taxes": 0.0000,
			"taxRate": 0.0000,
			"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": [
				{
					"rate": 23.7097,
					"reason": "COM",
					"amount": 522.4191
				},
				{
					"rate": 66.7300,
					"reason": "HP",
					"amount": 1121.7172
				}
			],
			"taxes": 0.0000,
			"taxRate": 0.0000,
			"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": {
					
"
type
refId": "
number
00000000-0000-1000-0000-000000000028"
				
},
				"
amount
language": {
					"
type
refId": "
number
00000000-0000-1000-0000-000000000017"
				
}
}
,
				
"
required
active": 
[
true
			}
		
"porcentage"
},
		
{
			"
amount
address": {
				
]
"addressType": "Mailing",
				
} ]
"street": "Rua Gavião Peixoto",
		
},
		"
itemList
outdoorNumber": 
{
"313",
				"
type
interiorNumber": "
array
",
				"
items
neighborhood": 
[
"Icaraí",
				
{
"city": "RIO DE JANEIRO",
				"
type
postalCode": "
object
24230092",
				
"
properties
county": {
					"
articleRefId
refId": 
{
"00000000-0000-1000-0000-000000020226",
					
"
type
countyCode": "
string
BE402DF"
				
},
				
"
student
contact":
{
 "Alfredo Pai",
				"phone": "",
				"
type
phone2": "
object
12345678901",
				"
properties
position": 
{
"Contacto Principal",
				
"
refId
officeHours": 
{
"",
				
"
type
email": "
string" }
test@test.com",
				
"
personRefId
timeZone": {
					
"
type
refId": "
string
00000000-0000-1000-0000-000000000028"
				
}
}
,
				
"
required
language": 
[
{
					
"refId
",
": "00000000-0000-1000-0000-000000000017"
				},
				"
personRefId
active": true
			}
		}
	
],
  	"invoiceData": {
    	"name": "Alfredo",
    	"lastName": "Bernal",
    	"document": "07319150972",
    	"isLegalPerson": false  
  	},
	
"
totalItem
transaction": {
		
"
type
orderId": 
"integer"
3511,
		
}, "price": { "type": "number" }, "originalPrice": { "type": "number" }, "discountList": { "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" }, "salesChannel": { "type": "string" }, "installments": { "type": "integer" }, "componentList": { "type": "array", "items": [ { "type": "object", "properties": { "articleRefId": { "type": "integer" }, "totalItem": { "type": "integer" }, "price": { "type": "integer" }, "taxes": { "type": "integer" }, "discountList": { "type": "array", "items": [ { "type": "object", "properties": { "porcentage": { "type": "integer" }, "reason
"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,
							"reason": "VEFR",
							"amount": 119.5477
						}
					],
					"salesTerms": {
						
"type
"familyCode": "
string
idiomas",
						"code": 1,
			
},
			"group": 2,
						"digitalCode": "22006077",
						"
amount
isExclusive": 
{
false
					}
				},
				{
					"
type
articleRefId": "
integer"
00000000-0000-1000-0000-00000094584",
					"totalItem": 1,
					"price": 66.7202,
					
}
"originalPrice": 102,
					"markupRate": 20.0000,
					"priceWithMarkup": 0.0000,
					
}
"taxes": 0.0000,
					
"taxRate": 0.0000,
					"
required
discountList": [
						{
							
"
porcentage
rate": 45.4900,
							"reason": "VEFR",
							
"
reason",
amount": 55.6798
						}
					],
					"
amount
salesTerms": {
						"familyCode": "idiomas",
						"code": 1,
		
]
				"group": 2,
						"digitalCode": "22006077",
			
}
			"isExclusive": false
					}
				
]
},
				
{
					
}
"articleRefId": "00000000-0000-1000-0000-000000094294",
					"totalItem": 1,
					
}
"price": 138.6734,
					"originalPrice": 212,
					"
required
priceWithMarkup": 
[
0.0000,
					
"markupRate": 20.0000,
					"
articleRefId
taxes": 0.0000,
					"taxRate": 0.0000,
					
"
totalItem
discountList"
,
: [
						{
							"
price
rate": 45.4900,
							
"taxes
"reason": "VEFR",
							
"
discountList
amount": 115.7266
						}
					],
					"salesTerms": {
				
}
		"familyCode": "idiomas",
						
]
"code": 1,
						
}
"group": 2,
						
}
"digitalCode": "22006077",
						"
required
isExclusive": 
[
false
					}
				
"articleRefId"
},
				{
					"
student
articleRefId": "00000000-0000-1000-0000-000000094344",
					"totalItem": 1,
					
"price"
"price": 138.6734,
					
"originalPrice": 212,
					"
discountList
priceWithMarkup": 0.0000,
					
"
porcentageTaxes
markupRate": 20.0000,
					
"taxes": 0.0000,
					
"
salesType
taxRate": 0.0000,
					
"
salesChannel
discountList"
,
: [
						
"installments",
{
							"
componentList"
rate": 45.4900,
						
]
	"reason": "VEFR",
					
}
		"amount": 115.7266
		
}
		
]
		}
,

		
"freight": {
			
"type": "object"
],
					"
properties
salesTerms": {
						"
transportName
familyCode": 
{
"idiomas",
						"
type
code": 
"string"
1,
			
},
			
"
transportPhone
group": 
{
2,
						"
type
digitalCode": "
string
22006077",
		
},
				"
transportCode
isExclusive": 
{
false
					
"type": "string"
}
				},
				
"orderNote":
{
					"
type
articleRefId": "
string"
00000000-0000-1000-0000-000000094291",
				
}
	"totalItem": 1,
					"
orderFreightValue
price": 
{
138.6734,
					"
type
originalPrice": 
"integer"
212,
				
}
	"markupRate": 20.0000,
					"
orderDeliveryForecast
priceWithMarkup": 
{
0.0000,
					"
type
taxes": 
"string"
0.0000,
				
},
	"
orderEstablishment
taxRate": 
{
0.0000,
					"
type
discountList": 
"string"
[
						
}
{
				
},
			"
required
rate": 
[
45.4900,
				
"transportName",
			
"
transportPhone
reason"
,
: 
"
transportCode
VEFR",
				
"orderNote",
			
"
orderFreightValue",
amount": 115.7266
				
"orderDeliveryForecast",
		}
		
"orderEstablishment"
			],
			
},
		"
addressList
salesTerms": {
						"
type
familyCode": "
array
idiomas",
						"
items
code": 
[
1,
				
{
		"group": 2,
						"
type
digitalCode": "
object
22006077",
						"
properties
isExclusive": 
{
false
					
"address":
}
				},
				{
					
"
type
articleRefId": "
object
00000000-0000-1000-0000-000000094604",
					"
properties
totalItem": 
{
1,
					
"
addressType
price": 
{
115.1251,
					"originalPrice": 176,
					"
type
markupRate": 
"string"
20,
					
}
"priceWithMarkup": 0.0000,
					"
street
taxes": 
{
0,
					"taxRate": 0,
					"
type
discountList": 
"string"
[
						
},
{
							
"
outdoorNumber
rate": 
{
45.49,
							
"
type
reason": "
string
VEFR",
							"amount": 96.0749
						}
,

					],
					"
interiorNumber
salesTerms": {
						
"
type
familyCode": "
string" }
idiomas",
						
"
neighborhood
code": 
{
1,
						
"
type
group": 
"string" }
2,
						"
city
digitalCode": 
{
"22006077",
						
"
type
isExclusive": 
"string"
false
					}
				}
,

			]
		}
	
],
	"
postalCode
freight": {
		
"transportName": "",
		"transportPhone": "",
		"
type
transportCode": "
string
",
		
}
"orderNote": "",
		
"county
"orderFreightValue": 
{
19.61,
		
"type
"orderDeliveryForecast": "2023-06-07T16:21:38+00:00",
		"orderEstablishment": "
object
"
	},
	
"properties
"addressList": 
{
[
		{
			
"
refId
address": {
				
"type
"addressType": "
string" },
Physical",
				"
countyCode
street": 
{
"Rua Gavião Peixoto",
				
"type
"outdoorNumber": "
string" } }
313",
				
"interiorNumber": "",
				"
required
neighborhood": 
[
"Icaraí",
				"city": "RIO DE JANEIRO",
				
"refId
"postalCode": "24230092",
				
"
countyCode
county": {
					
] }
"refId": "00000000-0000-1000-0000-000000020226",
					
"
contact
countyCode": 
{
"BE402DF"
				
},
				"
type
contact": "
string" },
Alfredo Pai",
				"phone": 
{
"",
				"phone2": "12345678901",
				
"
type
position": "
string
Contacto Principal",
				"officeHours": "",
				
}
"email": "test@test.com",
				"
phone2
timeZone": {
					
"
type
refId": "
string
00000000-0000-1000-0000-000000000028"
				
},
				"language": {
					"
position
refId": 
{
"00000000-0000-1000-0000-000000000017"
				},
				
"
type
active": 
"string"
true
			}
		
},
		
{
			
"
officeHours
address": {
				
"addressType": "Mailing",
				"
type
street": "
string
Rua Gavião Peixoto",
				"outdoorNumber": "313",
				
}
"interiorNumber": "",
				"neighborhood": "Icaraí",
				"
email
city": 
{
"RIO DE JANEIRO",
				
"
type
postalCode": "
string
24230092",
				"county": {
					
}
"refId": "00000000-0000-1000-0000-000000020226",
					
"
timeZone
countyCode": 
{
"BE402DF"
				},
				
"
type
contact": "
object
Alfredo Pai",
				
"phone": "",
				"
properties
phone2": 
{
"12345678901",
				
"position": "Contacto Principal",
				"
refId
officeHours": 
{
"",
				
"
type
email": "
string
test@test.com",
				"timeZone": {
					
}
"refId": "00000000-0000-1000-0000-000000000028"
				
},

				"
required
language": 
[
{
					
"refId": "00000000-0000-1000-0000-000000000017"
				},
				
]
"active": true
			}
		}
	
}
],
"language
  	"invoiceData": {
    	"name": "Alfredo",
    	
"type
"lastName": "Bernal",
    	"document": "
object
07319150972",
    	"
properties
isLegalPerson": false  
 
{
 	
"refId
},
	"transactions": 
{
[
		{
			
"type
"orderId": 
"string"
3511,
			
} }
"transactionId": 20027340,
			
"required
"establishmentCode": 
[
1627652346504,
			
"refId" ] },
"paymentMethodCode": 190,
			"value": 198055,
			"
active
valueDiscount": 
{
0,
			"installments": 2,
			"status": 1,
			"
type
authorization": "
boolean
263461",
			"operatorTransactionCode": "00",
			
} }
"operatorApprovalDate": "2023-07-19 11:26:35",
			
"
required
receipt": 
[
"10462307190818157291",
			
"addressType
"nsu": "11409373",
			
"street
"message": "Sucesso.",
			"card": {
				
"outdoorNumber
"cardHolder": "Alfredo Bernal",
				"cardNumber": "123456*******7890",
				"document": "
interiorNumber
07319150972"
,

			},
			
"neighborhood
"paymentUrl": "https://api.bempaggo.io/proxy/yapay/checkout/api/v3/transacao/1627652346504/20027340",
			
"
city
paymentValue": 198055,
			
"
postalCode
interest"
,
: 0
		
},
		{
			"
county
orderId": 3511,
			
"transactionId": 20027341,
			
"
contact
establishmentCode": 1627652346504,
			"paymentMethodCode": 190,
			
"
phone
value": 198055,
			"valueDiscount": 0,
			
"
phone2
installments": 2,
			
"
position
status": 1,
			
"officeHours
"authorization": "263462",
			
"email
"operatorTransactionCode": "00",
			
"timeZone"
"operatorApprovalDate": "2023-07-19 11:26:35",
			
"language
"receipt": "10462307190818157292",
			
"
active
nsu"
]
: "11409374",
			
} },
"message": "Sucesso.",
			
"
required
card": 
[
{
				"
address
cardHolder"
] }
: "Alfredo Bernal",
			
]
	
}, "transaction
"cardNumber": 
{
"123456*******7890",
				"
type
document": "
object
07319150972"
		
}
	},
			"
required
paymentUrl": 
[ "external
"https://api.bempaggo.io/proxy/yapay/checkout/api/v3/transacao/1627652346504/20027340",
			"
paymentDate
paymentValue": 198055,
			"
parentGuardian
interest"
,
: 0
		
"paymentMethod",
}
	
"conciliationAccount"
],
	
"
price
mixedBundling"
, "originalPrice", "discountList", "itemList", "freight", "addressList", "transaction" ]
: false,
    "splitPayment": false
}