Preview
List all events
List events, going back up to 30 days. Each event data is rendered according to the API version at its creation time, specified in event object. api_version attribute (not according to your current API version.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/events
curl https://api.paypercut.io/v1/events \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"items": [
{
"id": "01KA9T0VGBB5YAB0X9TN7VHWW8",
"account": "01KAKB228G3K4E98NFVE2MGHW4",
"api_version": "v1",
"type": "checkout_session.completed",
"created": "2023-11-21T10:30:45Z",
"livemode": true,
"data": {
"object": {
"id": "01KA9T0VG5MDBTN4BBZK10QT0G",
"object": "checkout_session",
"amount_total": 2000,
"currency": {
"iso": "USD",
"scale": 2
},
"payment_status": "paid",
"status": "complete",
"customer": "01KA9SXYZ123456789ABCDEFGH",
"payment_intent": "01KA9T0ABC123456789DEFGHIJ",
"mode": "payment",
"metadata": {
"order_id": "12345"
},
"created": "2023-11-21T10:30:00Z",
"livemode": true
}
}
},
{
"id": "01KA9T5WXYZ987654321ABCDEF",
"account": "01KAKB228G3K4E98NFVE2MGHW4",
"api_version": "v1",
"type": "payment_intent.authorized",
"created": "2023-11-21T10:35:12Z",
"livemode": true,
"data": {
"object": {
"id": "01KA9T0ABC123456789DEFGHIJ",
"object": "payment_intent",
"amount": 2000,
"currency": {
"iso": "USD",
"scale": 2
},
"status": "requires_capture",
"customer": "01KA9SXYZ123456789ABCDEFGH",
"payment_method": "01KA9T5VCARD123456789ABCD",
"metadata": {
"order_id": "12345"
},
"created": "2023-11-21T10:35:00Z",
"livemode": true
}
}
}
],
"last_key": "eyJsYXN0SWQiOiIwMUtBOVQ1V1hZWjk4NzY1NDMyMUFCQ0RFRiJ9"
}
