POST/schedules

Create Schedule

This API call allows a user to create a timetable for running a specific shop at a predetermined date and time on a set schedule. While creating the schedule, the user can also define the mode of delivery — either via a Web-Hook or a queue ID.
POST/schedules

Note

Schedule times are in UTC by default (hh:mm format, 24-hour — e.g., 16:30).

Parameter Details

NameInTypeRequiredDescription
» scheduleNamebodystringRequiredThe name under which the schedule will be created.
» shopIdbodyintegerRequiredA unique ID generated when creating the shop.
» yearbodystring(date)Required"*" – No specification, "2025" – Single year, "2025,2026" – Multiple years.
» monthbodystringRequired"*" – All 12 months, "1" – January, "2" – February, ..., "12" – December, "1,3" – January & March.
» dowbodystringRequired"*" – All days, "0" – Sunday, "1" – Monday, "2" – Tuesday, "3" – Wednesday, "4" – Thursday, "5" – Friday, "6" – Saturday, "1,3,5" – Runs every Monday, Wednesday, and Friday.
» daybodystringRequired"*" – All days in the month, "1-31" – Day of the month. Can be passed as an expression (e.g., "1,3,5").
» hourbodystringRequired"*" – Every hour, "0-23" – Specific hours (e.g., "1,3,5").
» minutebodystringRequired"0-59" – A single minute value (e.g., "30").
» startDatebodystring(date)RequiredDate when the schedule starts.
» endDatebodystring(date)RequiredDate when the schedule ends. If undefined, the schedule runs indefinitely.

Responses

StatusMeaningDescriptionSchema
201CreatedCreated
400Bad RequestBad RequestNone
401UnauthorizedUnauthorizedNone
403ForbiddenForbidden - Access deniedNone
404Not FoundSchedule not foundNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST /schedules \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  -d '{"scheduleName":"string","shopId":0,"year":"string","month":"string","dow":"string","day":"string","hour":"string","minute":"string","startDate":"string","endDate":"string"}'

Body parameter

{
  "scheduleName": "My Schedule",
  "shopId": 0,
  "year": "*",
  "month": "*",
  "dow": "*",
  "day": "*",
  "hour": "*",
  "minute": "00",
  "startDate": "2019-08-24",
  "endDate": "2019-08-24"
}

Example responses

201 Response
{
  "message": "Schedule created successfully.",
  "scheduleId": 1
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.