Merchant settings operating hours code examples

The merchant settings operating hours API allows you to query and update the opening and closing hours of your store using the API.

Get merchant settings operating hours

Bash:

# You can also use wget
curl -X GET https://app.staging.shippit.com/api/3/merchants/settings/locations/operating_hours \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

HTTP:

GET https://app.staging.shippit.com/api/3/merchants/settings/locations/operating_hours HTTP/1.1
Host: app.staging.shippit.com
Accept: application/json

Update merchant settings operating hours

Bash:

# You can also use wget
curl -X PUT https://app.staging.shippit.com/api/3/merchants/settings/locations/operating_hours \
  -H 'Content-Type: application/json' \
  -H 'Authorization: API_KEY' \
  -d '{
    "working_days": [
      {
        "day": "monday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": true
      },
      {
        "day": "tuesday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": true
      },
      {
        "day": "wednesday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": true
      },
      {
        "day": "thursday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": true
      },
      {
        "day": "friday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": true
      },
      {
        "day": "saturday",
        "beginning_of_workday": "09:00",
        "end_of_workday": "17:00",
        "is_open": false
      },
      {
        "day": "sunday",
        "beginning_of_workday": "00:00",
        "end_of_workday": "17:00",
        "is_open": false
      }
    ]
  }'