Obtener todos los eventos de un cargo de una orden

Argumentos

Tipo

Descripción

id

string

El id de la orden.

id

string

El id de del cargo.

Solicitud

curl --location --request GET 'https://apipp.conekta.io/orders/ord_2oDSZ7p4vq3d4gdMM/charges/5f3735cfP85ad123b9d616fb/events' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: Basic a2V5X1VMenNSV0RabnprcHd6POYzbTk5RHc6'
Response
{
    "has_more": false,
    "total": 1,
    "object": "list",
    "data": [
        {
            "data": {
                "object": {
                    id: "589026bbedbb6e56430016ad",
                    object: "charge",
                    status: "pending_payment",
                    amount: 35000,
                    fee: 1279,
                    reference_id: "Tracking number: 54323456",
                    order_id: "ord_2fw8EWJusiRrxdPzT",
                    livemode: false,
                    created_at: 1597069683,
                    currency: "MXN",
                    payment_method: {
                        service_name: "OxxoPay",
                        object: "cash_payment",
                        type: "oxxo",
                        expires_at: 1599661683,
                        store_name: "OXXO",
                        reference: "93345678901234"
                    }
                },
                "previous_attributes": {}
            },
            "livemode": false,
            "id": "5f3735cf885a4173b9d616ee",
            "object": "event",
            "type": "charge.created",
            "created_at": 1597453775
        }
    ]
}