Location closure

Events

Action Event name
Closing a shift location locationClosures.created
Adding a comment to a location closure locationClosures.comment.created

Payload example created

{
  "attemptId": "ab7d4ace-4834-4220-bd96-75e450b590b6",
  "created": 1678134365,
  "data": {
    "_id": "64064c594ca2b60681fb8234",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2023-03-06T20:26:01.803Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "deposits": [
      {
        "accountNumber": "452345342603864536",
        "amount": 13.5,
        "bankId": "63dd3bf792fa353f64d2d092",
        "bankName": "Scotiabank",
        "currency": "CAD",
        "operationDate": "2023-03-06T05:00:00.000Z",
        "operationNumber": "0001"
      }
    ],
    "location": {
      "country": "CA",
      "name": "As (test1)",
      "province": "Ontario",
      "stationId": "52a378c1430c7d4e2200020c"
    },
    "payments": {
      "tableHeader": {
        "no-invoice": "no-invoice",
        "rowTotal": "total"
      },
      "totalsByPaymentMethod": {
        "Cash": {
          "currencySymbol": "$",
          "isocode": "USD",
          "no-invoice": 13.5,
          "rowTotal": 13.5
        },
        "total": {
          "currencySymbol": "$",
          "isocode": "USD",
          "no-invoice": 13.5,
          "rowTotal": 13.5
        }
      }
    },
    "shiftIds": [
      "63ef9738b7f85a0676cb9fa3"
    ],
    "shiftNumbers": [
      "S-SHAG4AV"
    ],
    "updatedAt": {
      "offset": 0,
      "value": "2023-03-06T20:26:01.803Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6",
    "user": {
      "_id": "55fc2f318791db6e1a0000b6",
      "email": "hernan+break@betterez.com"
    },
    "userComments": []
  },
  "event": "locationClosures.created",
  "id": "a94de37b-39dd-4f82-a063-8050df961253",
  "livemode": true
}

Payload example comments

{
  "attemptId": "0868b4d2-2432-4d41-b5b4-9d55291b0361",
  "created": 1678206171,
  "data": {
    "comment": "Testing comments webhooks",
    "createdAt": {
      "offset": 0,
      "value": "2023-03-07T16:22:50.635Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "createdByEmail": "hernan+break@betterez.com"
  },
  "event": "locationClosures.comment.created",
  "id": "6d00894a-865f-42a5-9ee7-57f797b9f685",
  "livemode": true
}