Holidays

Events

Action Event name
create a new holiday holiday.created
update an existing holiday holiday.updated
delete an existing holiday holiday.deleted

Payload example created

{
  "attemptId": "92814c89-0523-4850-91f2-59f56d307da0",
  "created": 1623794313,
  "data": {
    "_id": "60c92280d9e6c43f77b5a583",
    "accountId": "52a377ec430c7d4e220001fc",
    "blackout": false,
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:24.501Z"
    },
    "date": {
      "offset": 0,
      "value": "2021-12-24T00:00:00.000Z"
    },
    "day": 24,
    "deleted": false,
    "month": 12,
    "name": "Christmas eve",
    "recurring": true,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:24.519Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "year": 2021
  },
  "event": "holiday.created",
  "id": "0d0db269-657a-4262-a39b-8dad900656d6",
  "livemode": true
}

Payload example updated

{
  "attemptId": "50a1e4e9-f82f-451d-a706-7bb09a73253f",
  "created": 1623794314,
  "data": {
    "_id": "60c92280d9e6c43f77b5a583",
    "accountId": "52a377ec430c7d4e220001fc",
    "blackout": false,
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:24.501Z"
    },
    "date": {
      "offset": 0,
      "value": "2021-12-24T00:00:00.000Z"
    },
    "day": 24,
    "deleted": false,
    "month": 12,
    "name": "Christmas eve",
    "recurring": true,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:29.963Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "year": 2021
  },
  "event": "holiday.updated",
  "id": "da2d0382-ae42-4e24-b7ec-8bbe06996e2c",
  "livemode": true
}

Payload example deleted

{
  "attemptId": "d454ab80-ae4a-4afa-91d1-4c833c7814ca",
  "created": 1623794318,
  "data": {
    "_id": "60c92280d9e6c43f77b5a583",
    "accountId": "52a377ec430c7d4e220001fc",
    "blackout": false,
    "createdAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:24.501Z"
    },
    "date": {
      "offset": 0,
      "value": "2021-12-24T00:00:00.000Z"
    },
    "day": 24,
    "deleted": false,
    "month": 12,
    "name": "Christmas eve",
    "recurring": true,
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-15T21:58:33.606Z"
    },
    "userId": "55fc2f318791db6e1a0000b6",
    "year": 2021
  },
  "event": "holiday.deleted",
  "id": "dd2debe2-e8c8-4414-a4f6-5a7e8badb4f6",
  "livemode": true
}