GET
/
events
const { FedaPay, Event } = require('fedapay');
/* Replace YOUR_SECRETE_API_KEY with your real API key */
FedaPay.setApiKey("YOUR_SECRETE_API_KEY");
/* Specify whether you want to run your query in test or live mode */
FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');
/* Show events */
const event = await Event.all( params = {}, headers = {} );
[
  {
    "id": 123,
    "type": "<string>",
    "entity": {},
    "object_id": 123,
    "account_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
List of events
id
integer

Event ID.

type
string

Event type

entity
object

Event entity

object_id
integer

Object ID associated with the event

account_id
integer

Account ID associated with the event

created_at
string

Date and time of event creation.

updated_at
string

Date and time of last event update.

deleted_at
string

Date and time of customer deletion (if applicable).