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

Retrieve an occurrence

Retrieve details about a specific schedule occurrence. Each occurrence represents one execution of a recurring schedule. Use this endpoint to check if a scheduled payment succeeded, investigate failed charges, and track retry information.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldPath Parameters
โ–ผ
`id`STRING(required)
The occurrence ID to retrieve. Occurrence IDs start with occu_ followed by test_ for test mode.
Example:"occu_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Successful retrieval

Returns the occurrence object with execution details, status, and result information.

Occurrence object includes:
  • id - Occurrence identifier (occu_*)
  • schedule - Parent schedule ID
  • scheduled_on - Date when occurrence was intended to be processed
  • processed_at - When occurrence was actually processed (ISO 8601)
  • status - successful, failed, or skipped
  • result - ID of created charge or transfer (null if failed/skipped)
  • message - Error message if failed, null if successful
  • retry_on - Retry date if processing failed

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

Occurrence not found or does not exist.

Common causes:
  • Invalid occurrence ID
  • Occurrence ID from different account
  • Mixing test and live mode keys

Code samplesโ€‹

curl https://api.omise.co/occurrences/occu_test_5xuy4w91xqz7d1w9u0t \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
not_foundOccurrence not foundCheck occurrence ID and ensure correct mode (test/live)

Occurrence Status Valuesโ€‹

StatusDescription
successfulCharge/transfer created successfully
failedExecution failed (card declined, insufficient funds, etc.)
skippedOccurrence was skipped (schedule suspended, customer deleted)

Common Failure Messagesโ€‹

MessageDescription
insufficient_fundCustomer has insufficient funds
card_declinedCard was declined by issuer
expired_cardCard has expired
customer_not_foundCustomer was deleted

Try it outโ€‹

Required - 1 fields
โ–ผ