Obtener todos los eventos de una orden

Obtener los detalles de todos los eventos relacionados a una orden

Argumentos

Tipo

Descripción

id

string

El id de la orden.

Solicitud

curl --location --request GET 'https://apipp.conekta.io/orders/ord_2oDSZ7pd4fq8G5fdML/events' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: Basic a2V5X0VMemNSV0RybDenprcHd1YVYzbTk5SHc3'
Respuesta
{
    "has_more": false,
    "total": 1,
    "object": "list",
    "data": [
        {
            "data": {
                "object": {
                    "livemode": true,
                    "amount": 2422,
                    "currency": "MXN",
                    "amount_refunded": 0,
                    "customer_info": {
                        "name": "Mario Perez",
                        "email": "[email protected]",
                        "phone": "+5215555555555"
                        "object": "customer_info"
                    },
                    "shipping_contacts": {
                      "has_more": false,
                      "object": "list",
                      "total": 1,
                      "data": [{
                        "id": "ship_cont_afbur73vpdhdjwgo",
                        "object": "shipping_contact",
                        "created_at": 1600094116,
                        "phone": "55-5555-5555",
                        "receiver": "Marvin Fuller",
                        "between_streets": "Morelos Campeche",
                        "address": {
                          "object": "shipping_address",
                          "street1": "Nuevo Leon 4",
                          "city": "Ciudad de Mexico",
                          "state": "Ciudad de Mexico",
                          "country": "Mexico",
                          "postal_code": "06100",
                          "residential": true
                        },
                        "parent_id": "cus_zzmlSsnMo233Cde3"
                      }]
                    },
                    "object": "order",
                    "id": "ord_1oDSZ7p6fq3G5deND",
                    "metadata": {
                        "reference": "12347325089",
                        "more_info": ""
                    },
                    "created_at": 1597453775,
                    "updated_at": 1597453775,
                    "line_items": {
                        "object": "list",
                        "has_more": false,
                        "total": 1,
                        "data": [
                            {
                                "name": "prueba token",
                                "unit_price": 2421,
                                "quantity": 1,
                                "object": "line_item",
                                "id": "line_item_2oDSX8p4sq9G1gdTD",
                                "parent_id": "ord_1oDSZ7p6fq3G5deND",
                                "metadata": {},
                                "antifraud_info": {}
                            }
                        ]
                    },
                    "shipping_lines": {
                        "object": "list",
                        "has_more": false,
                        "total": 1,
                        "data": [
                            {
                                "amount": 1,
                                "carrier": "FEDEX",
                                "object": "shipping_line",
                                "id": "ship_lin_2oDSZ7p4fq3G5gdMJ",
                                "parent_id": "ord_1oDSZ7p6fq3G5deND"
                            }
                        ]
                    }
                },
                "previous_attributes": {}
            },
            "livemode": true,
            "id": "5f8535ch885a7373b9d616e6",
            "object": "event",
            "type": "order.created",
            "created_at": 1597453775
        }
    ]
}