Waitlists

Events

Action Event name
creating a waitlist waitlists.created
deleting a waitlist waitlists.deleted

Payload example created

{
  "attemptId": "8c07fb33-c355-47b7-a219-6abb25be8da7",
  "created": 1628105368,
  "data": {
    "_id": "610aea87c409e43dfd83b918",
    "accountId": "52a377ec430c7d4e220001fc",
    "agencyId": "",
    "createdAt": {
      "offset": 0,
      "value": "2021-08-04T19:29:11.814Z"
    },
    "createdBy": "60dc7626c818c7449c4a135d",
    "dateOfTravel": {
      "offset": 0,
      "value": "2021-08-04T00:00:00.000Z"
    },
    "dateOfTravelStr": "2021-08-04",
    "destinationId": "52a378c8430c7d4e2200020e",
    "destinationName": "B (testB)",
    "originId": "52a378c1430c7d4e2200020c",
    "originName": "As (test)",
    "passengers": [
      {
        "email": "mail@domain.com",
        "fareId": "55d34a3af86794781a00011c",
        "first": "Firstname",
        "last": "Lastname",
        "lexiconKeys": {
          "fareName": "fare-name-52a377ec430c7d4e220001fc-36413a61-7c95-4f0e-a6db-48c86ff935e8"
        },
        "phone": "11223344"
      },
      {
        "fareId": "56b3a310a22d7a7709000139",
        "lexiconKeys": {
          "fareName": "fare-name-52a377ec430c7d4e220001fc-ff3de2ef-7f0e-4ad1-8b84-85012ad74c64"
        }
      },
      {
        "fareId": "5fc6c756bc92389265e052db",
        "lexiconKeys": {
          "fareName": "fares-name-52a377ec430c7d4e220001fc-21b19c5f-b887-4c30-b150-feb3d65868de"
        }
      }
    ],
    "providerId": "52a377ec430c7d4e220001fc",
    "trip": [
      {
        "destinationId": "52a378c8430c7d4e2200020e",
        "destinationName": "B (testB)",
        "manifestDateStr": "2021-08-04",
        "originId": "52a378c1430c7d4e2200020c",
        "originName": "As (test)",
        "routeId": "5c90f854d99e27e20d000001",
        "scheduleId": "cadb8607-3bf1-4661-ab57-a37398cae5fa"
      }
    ],
    "updatedAt": {
      "offset": 0,
      "value": "2021-08-04T19:29:11.814Z"
    },
    "updatedBy": "60dc7626c818c7449c4a135d"
  },
  "event": "waitlists.created",
  "id": "b1115015-703d-4143-aabf-8f967c793e41",
  "livemode": true
}

Payload example deleted

{
  "attemptId": "058597b8-0543-4759-aa4f-889ca7516f54",
  "created": 1628105680,
  "data": {
    "waitlistId": "610aeaa9c409e43dfd83b91a"
  },
  "event": "waitlists.deleted",
  "id": "14016226-63c3-4d60-a682-f247228cb261",
  "livemode": true
}