SDK does not support newer events fields in orders API yet.
Example
Here's an example of an order with the events field that can be provided using POST /v1/orders.
{
"id": "Pedido000005",
"total_amount": 123.45,
"shipping_amount": 10.01,
"tax_amount": 0.01,
"installments": 2,
"ip": "123.123.123.123",
"currency": "BRL",
"payment": [
{
"type": "credit",
"sha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"bin": "490172",
"last4": "1234",
"expiration_date": "92017",
"cvv_result": "A",
"avs_result": "X",
"status": "approved",
"number_of_retries": 1,
"amount": 123.45,
"description": "pagamento via cartão de crédito"
}
],
"customer": {
"id": "2937293",
"name": "Fulano's de Tal",
"tax_id": "283938282893",
"phone1": "+551112344321",
"email": "email@deteste.com",
"dob": "1970-02-02"
},
"events": [
{
"name": "Safadão no Maracanã",
"date": "2021-01-01T03:00:00Z",
"type": "show",
"subtype": "sertanejo",
"venue": {
"name": "Estádio do Maracanã",
"capacity": 80000,
"address": "Av. Maracanã s/n",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR"
},
"tickets": [
{
"category": "regular",
"premium": true,
"section": "Pista Premium",
"attendee": {
"document": "12345678900",
"document_type": "cpf",
"dob": "1990-10-28"
}
},
{
"category": "student",
"premium": false
}
]
},
{
"name": "Heat @ Knicks",
"date": "2020-11-21T01:00:00Z",
"type": "sports",
"subtype": "NBA",
"tickets": [
{
"category": "regular",
"premium": true,
"section": "general"
},
{
"category": "regular",
"section": "general",
"premium": true
}
]
}
]
}
SDK does not support newer events fields in orders API yet.
Example
Here's an example of an order with the events field that can be provided using
POST /v1/orders.{ "id": "Pedido000005", "total_amount": 123.45, "shipping_amount": 10.01, "tax_amount": 0.01, "installments": 2, "ip": "123.123.123.123", "currency": "BRL", "payment": [ { "type": "credit", "sha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "bin": "490172", "last4": "1234", "expiration_date": "92017", "cvv_result": "A", "avs_result": "X", "status": "approved", "number_of_retries": 1, "amount": 123.45, "description": "pagamento via cartão de crédito" } ], "customer": { "id": "2937293", "name": "Fulano's de Tal", "tax_id": "283938282893", "phone1": "+551112344321", "email": "email@deteste.com", "dob": "1970-02-02" }, "events": [ { "name": "Safadão no Maracanã", "date": "2021-01-01T03:00:00Z", "type": "show", "subtype": "sertanejo", "venue": { "name": "Estádio do Maracanã", "capacity": 80000, "address": "Av. Maracanã s/n", "city": "Rio de Janeiro", "state": "RJ", "country": "BR" }, "tickets": [ { "category": "regular", "premium": true, "section": "Pista Premium", "attendee": { "document": "12345678900", "document_type": "cpf", "dob": "1990-10-28" } }, { "category": "student", "premium": false } ] }, { "name": "Heat @ Knicks", "date": "2020-11-21T01:00:00Z", "type": "sports", "subtype": "NBA", "tickets": [ { "category": "regular", "premium": true, "section": "general" }, { "category": "regular", "section": "general", "premium": true } ] } ] }