Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic Path Schedules API

You can schedule your billing, tax, and payment runs. By scheduling billing, tax, and payment runs, you automate the process, reducing manual intervention and ensuring the jobs are run in a timely manner. You can define a schedule in the format (`* * * * *`) which is a set of five fields in a line, indicating when a job should be executed. For example, you can define a schedule so that your job runs multiple times a day, or runs on specific days and months.Subscriptions runs on Coordinated Universal Time (UTC) time and conforms to [**RFC 3339**](https://www.rfc-editor.org/rfc/rfc3339). ### Unrestricted fieldsSetting a field to an asterisk (`*`) is sometimes referred to as leaving a field unrestricted because it is not restricted to a specific value.You can use the asterisk (`*`) to indicate the range of all values for the field. When you use the asterisk, the first value in the range is: 0 for the minute, hour, and day of the week (Sunday) fields, and 1 for day of the month and the month fields.### Configuring fieldsThe time fields have the following format and possible values and must be specified in the following order:| Field | Format | Description | | --- | --- | -----|| Minute | 0-59 | Indicates how far past the top of the hour your job runs, in minutes. For example if a minute is set to 0, then the job runs at the top of the hour because it is 0 minutes after the hour. This means if the hour is 8.00 AM, the job runs at 8.00 AM. || Hour | 0-23 | Indicates how far past midnight your job runs, in hours. This is rounded down to the nearest hours. This is because minutes are indicated by the minute field. || Day of the month | 0-31 | Indicates the calendar date of the month. For example, 1 for the first day of the month. || Month | 1-12 or JAN to DEC | Indicates the month. Specify the month number or the first three letters of the month name in uppercase. For example, 1 or JAN for January. || Day of the week | 0-6 (or SUN to SAT, or 7 for Sunday) | Indicates the day of the week. Monday is 1, Tuesday is 2, and so on. Either 0 or 7 indicates Sunday. Alternatively, specify the day of the week using the first three letters of the weekday name in uppercase. For example SUN for Sunday. If you use this field with the day of the month field, then this field is evaluated as an inclusive OR. For example, if the day of the month is set to 1 and the day of the week is set to SAT, the job runs on the first day of the month and on every Saturday of the month, even if the first day of the month is not a Saturday. If the day of the week is marked by an asterisk (*) then the field is marked as unrestricted. This means the job only runs on the first day of the month. |### Matching all valuesTo match all values for a field, set the field to an asterisk (`*`). When a field is set to an asterisk, the field matches all valid values for that field whenever the other field conditions are satisfied. Here are some examples. - `* 0 1 1 1`: the job runs every minute of the midnight hour on January 1st and Mondays. - `* * * * *`: the job runs every minute (of every hour, of every day of the month, of every month, every day of the week, because each of these is unrestricted). ### Matching a range To match a range of values, specify your start and stop values, separated by a hyphen (`-`). Do not include spaces in the range. Ranges are inclusive. The first number must be less than the second number. If you are using abbreviated names for the month or weekday (for example, JAN instead of 1 for the first month of the year), the first value must come earlier in the month or week than the second value.The following equivalent examples run at midnight on Mondays, Tuesdays, Wednesdays, Thursdays, and Fridays (for all months): - `0 0 * * 1-5` - `0 0 * * MON-FRI`### Matching a listLists can contain any valid value for the field, including ranges. Specify your values, separated by a comma (,). Do not include spaces in the list.Examples:- `0 0,12 * * *`: the job runs at midnight and noon.- `0-5,30-35 * * * *`: the job runs in each of the first five minutes of every half hour (at the top of the hour and at half past the hour).### Skipping values in a rangeYou can skip values in a range by specifying a rate at which to step through the range. To do this, specify the range, followed by the forward slash (`/`) and the rate at which you want to skip through the range.The step value cannot be larger than the largest possible value for the field. The default step is 1, so the step function `/1` is the same as not using a step function at all.Example ranges that use step functions:- `*/2`: this is a valid step function for any field. - For the minute field, it matches 0, 2, 4, ... , 58. - For the hour, it matches 0, 2, 4, ... , 22. - For the day of the month, it matches 1, 3, 5, ... , 31 (for a month with 31 days). - For the month, it matches 1, 3, 5, ... , 11. - For the day of the week, it matches 0, 2, 4, 6.- `0-12/2`: this is a valid step function for the minute and hour fields. It matches 0, 2, 4, ... , 12.Example schedules using step functions:- `*/2 * * * *`: the job runs every two minutes.- `0 0-12/2 * * *`: the job runs every two hours, on the hour. The first run is at midnight. The last run is at noon.

Elastic Path Schedules API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Schedules. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 5 operations across 2 paths, and defines 21 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.

Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.

5 operations 2 paths 21 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
25.1126.6886238
Base URL
https://useast.api.elasticpath.com
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Elastic Path Schedules API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerToken). By default, every request must be authenticated.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Schedules 5

You can schedule your billing, tax, and payment runs. By scheduling billing, tax, and payment runs, you automate the process, reducing manual intervention and ensuring the jobs ar…

GET
/v2/subscriptions/schedules
List schedules
ListSchedules 3 params → 200400500
POST
/v2/subscriptions/schedules
Create a schedule
CreateSchedule 1 param body → 201400500
GET
/v2/subscriptions/schedules/{schedule_uuid}
Get a schedule
GetSchedule 1 param → 200400404500
PUT
/v2/subscriptions/schedules/{schedule_uuid}
Update a schedule
UpdateSchedule 1 param body → 200400403404409500
DELETE
/v2/subscriptions/schedules/{schedule_uuid}
Delete schedule
DeleteSchedule 1 param → 204400500

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are ScheduleUpdateAttributes (5 properties), ScheduleAttributes (5 properties), Error (4 properties), Schedule (4 properties). Each schema is shown below with its type and property counts.

Timestamps
object
2 properties 2 required
Link
Error
object
4 properties 2 required
ErrorResponse
object
1 property 1 required
Links
object
SubscriptionScheduleType
string
ScheduleJob
object
1 property 1 required
LinkObject
object
3 properties
ScheduleCreate
object
2 properties 2 required
ScheduleUpdate
object
3 properties 3 required
ScheduleAttributes
object
5 properties 3 required
ScheduleResponseAttributes
ScheduleMeta
object
3 properties 2 required
UUID
string
The unique identifier.
LinkURI
string
Schedule
object
4 properties 3 required
OwnerMeta
string
The owner of a resource, either store or organization.
ExternalRefUpdate
string
A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.
ScheduleUpdateAttributes
object
5 properties
ExternalRef
string
A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.
ScheduleJobType
string
The type of job. One of the following: - billing-run - a billing run job. - payment-run - a payment run job. - notification-run - a notification run job.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-path-schedules-api-openapi.yml Raw ↑

Other APIs Elastic Path publishes across the network.

Elastic Path GraphQL API
Elastic Path Account Addresses API
Elastic Path Account Authentication Settings API
Elastic Path Account Cart Associations API
Elastic Path Account Management Authentication API
Elastic Path Account Members API
Elastic Path Account Membership API
Elastic Path Account Membership Settings API
Elastic Path Account Tags API
Elastic Path Accounts API
Elastic Path Administrator Latest Releases Catalog API API
Elastic Path Application Keys API