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

Retrieve a schedule

Retrieve details of a specific schedule including status, frequency, next execution dates, and occurrence history. Use this endpoint to check subscription status, view payment history, and monitor upcoming charges.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldPath Parameters
โ–ผ
`id`STRING(required)
The schedule ID to retrieve. Schedule IDs start with schd_ followed by test_ for test mode.
Example:"schd_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Successful retrieval

Returns the schedule object with complete details including configuration, status, and occurrence history.

Schedule object includes:
  • id - Schedule identifier (schd_*)
  • status - active, expired, suspended, deleted, or paused
  • every - Frequency multiplier (1, 2, 3, etc.)
  • period - Time unit (day, week, month)
  • on - Specific timing configuration (days_of_month, weekday_of_month)
  • next_occurrences_on - Array of upcoming execution dates
  • charge or transfer - Operation parameters
  • start_date and end_date - Schedule duration

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

Schedule not found or does not exist.

Common causes:
  • Invalid schedule ID
  • Schedule ID from different account
  • Mixing test and live mode keys
  • Schedule has been deleted

Code samplesโ€‹

curl https://api.omise.co/schedules/schd_test_5xuy4w91xqz7d1w9u0t \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Common Error Codesโ€‹

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

Schedule Status Valuesโ€‹

StatusDescription
activeSchedule is running normally
expiredSchedule has passed end date
suspendedSchedule is paused (failures, card expiry)
deletedSchedule has been cancelled
pausedSchedule manually paused

Try it outโ€‹

Required - 1 fields
โ–ผ