GET/schedule/list

List Schedules

List schedules

Implementation Notes

This API call retrieves the list of schedules defined in your account. You can fetch schedule details for a specific shop by providing the shopId. If no shopId is provided, schedules for all shops will be returned.

Parameters:

  • shopId: The identifier of the shop for which to retrieve schedules. If omitted, schedules for all shops will be shown.
  • SchedulesPerPage: Specifies the number of schedule records to display per page, helping to limit the number of records fetched at once.
  • pageNumber: Determines which page of results to view.
GET/schedule/list

Parameter Details

NameInTypeRequiredDescription
shopIdqueryintegerOptionalEnter shopId
schedulesPerPagequeryintegerOptionalThe number of items to display in a page
pageNumberqueryintegerOptionalIndicates the current page number

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X GET /schedule/list \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Example responses

200 Response
[
  {
    "totalRecords": 2,
    "fetchedRecords": 2,
    "totalPages": 1,
    "currentPage": 1,
    "pageSize": 10,
    "schedules": [
      {
        "scheduleId": 1,
        "scheduleName": "X-Mas",
        "shopId": 1234,
        "year": "*",
        "month": "*",
        "dow": "*",
        "day": "*",
        "hour": "1",
        "minute": "00",
        "startDate": "2019-08-24",
        "endDate": "2019-08-24"
      }
    ]
  }
]

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.