Skip to main content
Version: 2019-05-29 (Current)

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.
Example:20
Constraints:Minimum: 1, Maximum: 100, Default: 20
Default:20
`offset`INTEGER(optional)
Number of events to skip for pagination. Use with limit to paginate through large result sets.
Example:0
Default:0
`order`STRING(optional)
Sort order of results.
Example:"chronological"
Values:chronological, reverse_chronological
Default:"chronological"
Optional - 2 fieldsFilter Parameters

Responsesโ€‹

200

Successful retrieval

Returns a paginated list of event objects. Each event contains complete information about the action that occurred.

Response includes:
  • data - Array of event objects
  • limit - Number of results per page
  • offset - Number of skipped results
  • total - Total number of events
  • order - Sort order applied

400

Bad request

Request 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

Unauthorized

Authentication 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 https://api.omise.co/events \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-G \
-d limit=20 \
-d offset=0

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
bad_requestInvalid parametersCheck date format and parameter values
invalid_date_formatDate not in ISO 8601Use format: YYYY-MM-DDTHH:MM:SSZ

Event Typesโ€‹

KeyDescription
charge.createCharge created
charge.completeCharge succeeded
charge.updateCharge updated
refund.createRefund processed
charge.dispute.createDispute filed
customer.createCustomer created
customer.updateCustomer updated

Try it outโ€‹