Skip to main content
POST
/
api
/
public
/
v1
/
events
/
recent
Get recent events (Admin Only)
curl --request POST \
  --url https://app.tagadapay.com/api/public/v1/events/recent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "limit": 10
}'
[
  {
    "id": "evt_123",
    "accountId": "acc_456",
    "storeId": "store_123",
    "customerId": "cus_789",
    "eventType": "s_order_paid",
    "properties": {
      "orderId": "ord_123",
      "amount": 2999,
      "currency": "USD"
    },
    "draft": false,
    "processedAt": "2024-03-20T10:35:00Z",
    "createdAt": "2024-03-20T10:30:00Z",
    "customer": {
      "id": "cus_789",
      "email": "john@example.com",
      "firstName": "John",
      "lastName": "Doe"
    },
    "store": {
      "id": "store_123",
      "name": "My Store"
    }
  }
]

Authorizations

Authorization
string
header
required

Enter your API key as: Bearer your-api-key

Body

application/json
limit
integer
default:10
Required range: 1 <= x <= 100

Response

Successful response

The response is of type any.