Operating companies

Events

Action Event name
create a new operating company operatingcompany.created
update an existing operating company operatingcompany.updated

Payload example created

{
  "attemptId": "9a95f37e-f223-495b-a87d-98f436df1fb9",
  "created": 1623858339,
  "data": {
    "_id": "60ca1c728b8bf3199e511e8d",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-16T15:44:50.407Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "enabled": true,
    "infoOnPrintedTicket": "here",
    "name": "name",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T15:44:50.407Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "operatingcompany.created",
  "id": "e78a907d-23cd-4cbd-8278-7007228b4b33",
  "livemode": true
}

Payload example updated

{
  "attemptId": "db9e4535-54bf-4f9e-b9b3-5a612f0b4c67",
  "created": 1623864176,
  "data": {
    "_id": "60ca1c728b8bf3199e511e8d",
    "accountId": "52a377ec430c7d4e220001fc",
    "createdAt": {
      "offset": 0,
      "value": "2021-06-16T15:44:50.407Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "enabled": false,
    "infoOnPrintedTicket": "here",
    "name": "name now",
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T17:22:54.980Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "operatingcompany.updated",
  "id": "66b2d0f3-3b67-4715-a9e4-88b600bcb2f7",
  "livemode": true
}