Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.39 KB

update-workweek-config-response.md

File metadata and controls

53 lines (44 loc) · 1.39 KB

Update Workweek Config Response

The response to a request to update a WorkweekConfig object. The response contains the updated WorkweekConfig object and might contain a set of Error objects if the request resulted in errors.

Structure

Update Workweek Config Response

Fields

Name Type Tags Description
workweek_config Workweek Config Optional Sets the day of the week and hour of the day that a business starts a
workweek. This is used to calculate overtime pay.
errors List Error Optional Any errors that occurred during the request.

Example (as JSON)

{
  "workweek_config": {
    "created_at": "2016-02-04T00:58:24Z",
    "id": "FY4VCAQN700GM",
    "start_of_day_local_time": "10:00",
    "start_of_week": "MON",
    "updated_at": "2019-02-28T01:04:35Z",
    "version": 11
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}