Promos

Events

Action Event name
creating a promo promo.created
updating a promo or a promo rule promo.updated
delete an existing promo rule promo.deleted

Payload example

{
  "id": "string",
  "attemptId": "string",
  "livemode": "boolean",
  "created": "int",
  "event": "string",
  "data": {
    "_id": "string",
    "valueType": "string",
    "value": "int",
    "validPeriod": {
      "to": "string",
      "from": "string"
    },
    "userId": "string",
    "updatedByUserEmail": "string",
    "updatedBy": "string",
    "to": "string",
    "rules": [],
    "qty": "int",
    "productType": "string",
    "name": "string",
    "internalId": "string",
    "from": "string",
    "fare": "string",
    "disabled": "boolean",
    "createdByUserEmail": "string",
    "createdBy": "string",
    "campaign": "string",
    "available": "int",
    "appliesOnlyWhenLoggedIn": "boolean",
    "accountId": "string",
    "deleted": "boolean",
    "createdAt": {
      "value": "string",
      "offset": "int"
    },
    "updatedAt": {
      "value": "string",
      "offset": "int"
    }
  }
}