List all events
Retrieve a paginated list of all events in your account. Events represent actions that occurred, such as charges, refunds, disputes, and transfers. Use this endpoint to monitor account activity, debug webhooks, and audit transactions.
API Credentials
Request Parametersโ
Optional - 3 fieldsPagination Parameters
`limit`INTEGER(optional)
Number of events to return per page.
`offset`INTEGER(optional)
Number of events to skip for pagination. Use with limit to paginate through large result sets.
`order`STRING(optional)
Sort order of results.
Optional - 2 fieldsFilter Parameters
Responsesโ
200
Successful retrievalReturns a paginated list of event objects. Each event contains complete information about the action that occurred.
Response includes:
data- Array of event objectslimit- Number of results per pageoffset- Number of skipped resultstotal- Total number of eventsorder- Sort order applied
400
Bad requestRequest validation failed. Check the error message for details.
Common causes:
- Invalid date format (must be ISO 8601)
- Limit exceeds maximum (100)
- Invalid order parameter
401
UnauthorizedAuthentication failed. Invalid or missing API key.
Common causes:
- Missing Authorization header
- Invalid secret key
- Using public key instead of secret key
- Incorrect HTTP Basic Auth format
Code samplesโ
- cURL
- Ruby
- Python
- Node.js
- PHP
- Java
- C#
- Go
curl https://api.omise.co/events \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d limit=20 \
-d offset=0
require 'omise'
Omise.api_key = 'skey_test_5xuy4w91xqz7d1w9u0t'
events = Omise::Event.list({
limit: 20,
offset: 0
})
import omise
omise.api_secret = 'skey_test_5xuy4w91xqz7d1w9u0t'
events = omise.Event.list(
limit=20,
offset=0
)
const omise = require('omise')({
secretKey: 'skey_test_5xuy4w91xqz7d1w9u0t'
});
const events = await omise.events.list({
limit: 20,
offset: 0
});
<?php
define('OMISE_SECRET_KEY', 'skey_test_5xuy4w91xqz7d1w9u0t');
$events = OmiseEvent::retrieve(array(
'limit' => 20,
'offset' => 0
));
Client client = new Client.Builder()
.secretKey("skey_test_5xuy4w91xqz7d1w9u0t")
.build();
ScopedList<Event> events = client.events().list()
.limit(20)
.offset(0)
.send();
var client = new Client("skey_test_5xuy4w91xqz7d1w9u0t");
var events = await client.Events.GetList(new ListRequest
{
Limit = 20,
Offset = 0
});
client, _ := omise.NewClient(
"pkey_test_5xuy4w91xqz7d1w9u0t",
"skey_test_5xuy4w91xqz7d1w9u0t",
)
events, _ := client.ListEvents(&operations.ListEvents{
Limit: 20,
Offset: 0,
})
Error and result codesโ
Common Error Codesโ
| Code | Description | Resolution |
|---|---|---|
authentication_failure | Invalid API key | Verify your secret key is correct |
bad_request | Invalid parameters | Check date format and parameter values |
invalid_date_format | Date not in ISO 8601 | Use format: YYYY-MM-DDTHH:MM:SSZ |
Event Typesโ
| Key | Description |
|---|---|
charge.create | Charge created |
charge.complete | Charge succeeded |
charge.update | Charge updated |
refund.create | Refund processed |
charge.dispute.create | Dispute filed |
customer.create | Customer created |
customer.update | Customer updated |