Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.33 KB

get-break-type-response.md

File metadata and controls

49 lines (40 loc) · 1.33 KB

Get Break Type Response

The response to a request to get a BreakType. The response contains the requested BreakType objects and might contain a set of Error objects if the request resulted in errors.

Structure

GetBreakTypeResponse

Fields

Name Type Tags Description Getter
BreakType BreakType Optional A defined break template that sets an expectation for possible Break
instances on a Shift.
BreakType getBreakType()
Errors List<Error> Optional Any errors that occurred during the request. List getErrors()

Example (as JSON)

{
  "break_type": {
    "break_name": "Lunch Break",
    "created_at": "2019-02-21T17:50:00Z",
    "expected_duration": "PT30M",
    "id": "lA0mj_RSOprNPwMUXdYp",
    "is_paid": true,
    "location_id": "059SB0E0WCNWS",
    "updated_at": "2019-02-21T17:50:00Z",
    "version": 1
  },
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}