Fare tables

Events

Action Event name
adding a fare table for another currency fareTable.created
editing a fare table fareTable.updated

Payload example for created and updated

{
  "attemptId": "e71b6354-9d57-4337-9506-fc93590a21f4",
  "created": 1626467338,
  "data": {
    "_id": "60ede85aebec750ec7aa9468",
    "currency": "CAD",
    "fares": {
      "As (test)": {},
      "B (testB)": {
        "As (test)": 950000
      },
      "C": {
        "As (test)": 500000,
        "B (testB)": 400000
      },
      "D": {
        "As (test)": 500000,
        "B (testB)": 400000,
        "C": 300000
      },
      "E1": {
        "As (test)": 1100000,
        "B (testB)": 1200000,
        "C": 1300000,
        "D": 1400000
      }
    },
    "faresById": {
      "52a378c1430c7d4e2200020c": {},
      "52a378c8430c7d4e2200020e": {
        "52a378c1430c7d4e2200020c": 950000
      },
      "52a378dc430c7d4e22000211": {
        "52a378c1430c7d4e2200020c": 500000,
        "52a378c8430c7d4e2200020e": 400000
      },
      "52a3793d430c7d4e22000213": {
        "52a378c1430c7d4e2200020c": 500000,
        "52a378c8430c7d4e2200020e": 400000,
        "52a378dc430c7d4e22000211": 300000
      },
      "52a379a9430c7d4e22000214": {
        "52a378c1430c7d4e2200020c": 1100000,
        "52a378c8430c7d4e2200020e": 1200000,
        "52a378dc430c7d4e22000211": 1300000,
        "52a3793d430c7d4e22000213": 1400000
      }
    },
    "productId": "57ed5cfc391e701938000001",
    "routeId": "55d349a5f86794781a000115",
    "createdAt": {
      "offset": 0,
      "value": "2021-07-21T21:27:47.865Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "updatedAt": {
      "offset": 0,
      "value": "2021-07-21T21:27:47.865Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "fareTable.updated",
  "id": "d140e964-04fb-41b4-83e2-c89362099a74",
  "livemode": false
}