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

List charge events

Retrieve a paginated list of events for a specific charge. Use this endpoint to monitor charge activity, debug webhooks, and track all events related to a particular charge including creation, completion, refunds, and disputes.

Request Parametersโ€‹

Required - 1 fieldPath Parameters
โ–ผ
`id`STRING(required)
The charge ID to retrieve events for. Charge IDs start with chrg_ followed by test_ for test mode.
Example:"chrg_test_5xuy4w91xqz7d1w9u0t"
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 for the specified charge. Each event contains complete information about the action that occurred.

Response includes:
  • data - Array of event objects related to the charge
  • limit - Number of results per page
  • offset - Number of skipped results
  • total - Total number of events for the charge
  • 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

404

Not found

Charge not found or does not exist.

Common causes:
  • Invalid charge ID
  • Charge ID from different account
  • Mixing test and live mode keys

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/charges/chrg_test_5xuy4w91xqz7d1w9u0t/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
not_foundCharge not foundCheck charge ID and ensure correct mode (test/live)

Event Types for Chargesโ€‹

KeyDescription
charge.createCharge created
charge.completeCharge succeeded
charge.updateCharge updated (e.g., captured, metadata changed)
charge.reverseCharge reversed
charge.expireCharge expired
refund.createRefund processed on the charge
charge.dispute.createDispute filed against the charge
charge.dispute.updateDispute status changed
charge.dispute.closeDispute resolved

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 1 fields
โ–ผ
Your IP: ...Loading...