Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Pago aplicado

Descripción
MétodoPOST
URLhttps://homol.uno-internacional.com/sif/v3/empresas/00000000-0000-1000-0000-000000000008/sessions/00000000-0000-1000-0000-000000000741/unoSchool/00000000-0000-1000-0000-000000015308/payments/apply
Ejemplo
Payload
JSON Schema
{
	"$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": "string"
		},
		"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"
		},
		"discountList": {
			"type": "array",
			"items": [
				{
					"type": "object",
					"properties": {
						"porcentage": {
							"type": "number"
						},
						"amount": {
							"type": "number"
						}
					},
					"required": [
						"porcentage",
						"amount"
					]
				}
			]
		},
		"itemList": {
			"type": "array",
			"items": [
				{
					"type": "object",
					"properties": {
						"articleRefId": {
							"type": "string"
						},
						"student": {
							"type": "object",
							"properties": {
								"refId": {
									"type": "string"
								},
								"personRefId": {
									"type": "string"
								}
							},
							"required": [
								"refId",
								"personRefId"
							]
						},
						"totalItem": {
							"type": "integer"
						},
						"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": {
																"type": "string"
															},
															"amount": {
																"type": "integer"
															}
														},
														"required": [
															"porcentage",
															"reason",
															"amount"
														]
													}
												]
											}
										},
										"required": [
											"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"
								},
								"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"
		}
	},
	"required": [
		"external",
		"paymentDate",
		"parentGuardian",
		"paymentMethod",
		"conciliationAccount",
		"price",
		"originalPrice",
		"discountList",
		"itemList",
		"freight",
		"addressList",
		"transaction"
	]
}
  • No labels