Subscriptions

Get Subscription Events

Get events for a specific subscription

get/customers/{customer_id}/subscriptions/{id}/events

Request

Path parameters

customer_idstring required
Example:cus_2tGzG1GxtDAZHEGPH

Identifier of the customer resource

idstring required
Example:sub_2tGzG1GxtDAZHEGPH

Identifier of the subscription resource

Query parameters

limitinteger

The numbers of items to return, the maximum value is 250

searchstring

General order search, e.g. by mail, reference etc.

nextstring

next page

previousstring

previous page

Headers

Accept-Language'es' | 'en'

Use for knowing which language to use

X-Child-Company-Idstring

In the case of a holding company, the company id of the child company to which will process the request.

Response

successful

has_moreboolean required

Indicates if there are more pages to be requested

objectstring required

Object type, in this case is list

next_page_urlstring nullable

URL of the next page.

previous_page_urlstring nullable

Url of the previous page.

Example response

{
  "object": "list",
  "next_page_url": "https://api.conekta.io/resources?limit=10&next=chrg_1",
  "previous_page_url": "https://api.conekta.io/resources?limit=10&previous=chrg_1",
  "data": [
    {
      "created_at": 1661445644,
      "data": {
        "action": "ping",
        "livemode": true
      },
      "id": "6307a60c41de27127515a575",
      "livemode": true,
      "object": "event",
      "type": "webhook_ping",
      "webhook_logs": [
        {
          "failed_attempts": 10,
          "id": "webhl_2svd2sh6GbqzyWBNZ",
          "last_attempted_at": 1669651274,
          "last_http_response_status": 200,
          "object": "webhook_log",
          "response_data": {
            "amount": 3000,
            "payable": true
          },
          "url": "https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval"
        }
      ],
      "webhook_status": "successful"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.