Journey pricing

Events

Action Event name
creating a Journey Pricing rule journeypricing.created
updating a Journey Pricing rule journeypricing.updated
deleting a Journey Pricing rule journeypricing.deleted

Payload example for create and updated

{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    "id": "string",
    "versionId": "string",
    "accountId": "string",
    "productId": "string",
    "fareClassIds": [
      "string"
    ],
    "fareIds": [
      "string"
    ],
    "amenityGroupIds": [
      "string"
    ],
    "originId": "string",
    "destinationId": "string",
    "price": "int",
    "openReturnPrice": "int",
    "currency": "string",
    "taxExempted": "boolean",
    "regularPrice": "int",
    "sellStartDate": "string",
    "sellEndDate": "string",
    "tripStartDate": "string",
    "tripEndDate": "string",
    "dow": {
      "monday": "boolean",
      "tuesday": "boolean",
      "wednesday": "boolean",
      "thursday": "boolean",
      "friday": "boolean",
      "saturday": "boolean",
      "sunday": "boolean",
    },
    "advancePurchaseTo": "int",
    "advancePurchaseFrom": "int",
    "ticketsPerManifest": "int",
    "roundTripDiscount": {
      "value": "int",
      "type": "string"
    },
    "sameDayRoundTripDiscount": {
      "value": "int",
      "type": "string"
    },
    "onlyApplyToSchedules": [
      "string"
    ],
    "neverApplyToSchedules": [
      "string"
    ],
      "channels": [
      "string"
    ],
    "shiftZones": [
      "string"
    ],
    "loyaltyPointsToAccumulate": "int",
    "loyaltyPointsForRedemption": "int",
    "base": "boolean",
    "loadFactorFrom": "int",
    "loadFactorTo": "int",
    "brandIds": [
      "string"
    ],
    "externalField1": "string",
    "externalField2": "string",
    "externalField3": "string",
    "disabled": "boolean",
    "weight": "int",
    "updatedBy": "string",
    "createdBy": "string",
    "updatedByUserEmail": "string",
    "createdByUserEmail": "string"
  }
}

## Payload example for `delete`
{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    "id": "string" // deleted journey pricing rule id
  }
}