Obtener todos los eventos de una suscripción de un cliente

Argumentos

Tipo

Descripción

id

string

Id de la suscripción.

Solicitud

curl --location --request GET 'https://apipp.conekta.io/customers/cus_zKxY5gt86gFZVnce1/subscription/events' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'Authorization: Basic a2V5X0VMemNGh0Ryb456GHdGTHYzbTdgRHc6'
Respuesta
{
    "has_more": false,
    "total": 10,
    "object": "list",
    "data": [
        {
            "data": {
                "object": {
                  id: "sub_EfhFCF65SKvdepXQk",
                  object: "subscription",
                  status: "in_trial",
                  created_at: 1597069683,
                  billing_cycle_start: 1385696776,
                  billing_cycle_end: 1386301576,
                  plan_id: "gold-plan",
                  card_id: "src_2fw8YSqoaGEYTn3"
                },
                "previous_attributes": {}
            },
            "livemode": false,
            "id": "53d146d6d7e1a0b6610021a1",
            "object": "event",
            "type": "subscription.canceled",
            "created_at": 1406224086
        },
        ...
    ]
}