Skip to content

Latest commit

 

History

History
59 lines (51 loc) · 1.76 KB

list-cash-drawer-shifts-response.md

File metadata and controls

59 lines (51 loc) · 1.76 KB

List Cash Drawer Shifts Response

Structure

ListCashDrawerShiftsResponse

Fields

Name Type Tags Description Getter Setter
cursor ?string Optional Opaque cursor for fetching the next page of results. Cursor is not
present in the last page of results.
getCursor(): ?string setCursor(?string cursor): void
errors ?(Error[]) Optional Any errors that occurred during the request. getErrors(): ?array setErrors(?array errors): void
cashDrawerShifts ?(CashDrawerShiftSummary[]) Optional A collection of CashDrawerShiftSummary objects for shifts that match
the query.
getCashDrawerShifts(): ?array setCashDrawerShifts(?array cashDrawerShifts): void

Example (as JSON)

{
  "cash_drawer_shifts": [
    {
      "closed_at": "2019-11-22T00:44:49.000Z",
      "closed_cash_money": {
        "amount": 9970,
        "currency": "USD"
      },
      "description": "Misplaced some change",
      "ended_at": "2019-11-22T00:44:49.000Z",
      "expected_cash_money": {
        "amount": 10000,
        "currency": "USD"
      },
      "id": "DCC99978-09A6-4926-849F-300BE9C5793A",
      "opened_at": "2019-11-22T00:42:54.000Z",
      "opened_cash_money": {
        "amount": 10000,
        "currency": "USD"
      },
      "state": "CLOSED"
    }
  ],
  "cursor": "cursor6",
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ]
}