Market place modifiers

Events

Action Event name
create a new market place modifier marketplacemodifiers.created
update an existing market place modifier marketplacemodifiers.updated
delete an existing market place modifier marketplacemodifiers.deleted

Payload example created

{
  "attemptId": "2ddeb855-1cfe-43a1-ad93-f7729668e2d4",
  "created": 1634755442,
  "data": {
    "_id": "617063718c37ca13819479d9",
    "accountId": "52a377ec430c7d4e220001fc",
    "channel": "backoffice",
    "createdAt": {
      "offset": 0,
      "value": "2021-10-20T18:44:01.957Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "currency": "CAD",
    "destinationId": "",
    "loyaltyAccumulateRatio": 0,
    "loyaltyRedeemRatio": 0,
    "onewayPriceModifier": {
      "type": "%",
      "value": 12000
    },
    "openReturnPriceModifier": {
      "type": "%",
      "value": 0
    },
    "operatingCompanyId": "60124ad1b853e227502ec796",
    "originId": "",
    "productId": "52a377ec430c7d4e220001fe",
    "returnPriceModifier": {
      "type": "%",
      "value": 0
    },
    "sameDayRoundtripPriceModifier": {
      "type": "%",
      "value": 0
    },
    "updatedAt": {
      "offset": 0,
      "value": "2021-10-20T18:44:01.958Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6",
    "weight": 5120
  },
  "event": "marketplacemodifiers.created",
  "id": "74d17558-896e-4b82-a752-84ed98237a7f",
  "livemode": true
}

Payload example updated

{
  "attemptId": "a53c0979-c965-49a9-8bb1-388a41d9364c",
  "created": 1634755850,
  "data": {
    "_id": "61577d04a25cf913db0fa912",
    "accountId": "52a377ec430c7d4e220001fc",
    "channel": "backoffice",
    "createdAt": {
      "offset": 0,
      "value": "2021-10-01T21:26:28.645Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "currency": "CAD",
    "destinationId": "",
    "loyaltyAccumulateRatio": 0,
    "loyaltyRedeemRatio": 0,
    "onewayPriceModifier": {
      "type": "$",
      "value": 235000
    },
    "openReturnPriceModifier": {
      "type": "%",
      "value": 0
    },
    "operatingCompanyId": "611bbe812fccef3a94f9b00b",
    "originId": "",
    "productId": "52a377ec430c7d4e220001fe",
    "returnPriceModifier": {
      "type": "%",
      "value": 0
    },
    "sameDayRoundtripPriceModifier": {
      "type": "%",
      "value": 0
    },
    "updatedAt": {
      "offset": 0,
      "value": "2021-10-20T18:50:44.469Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6",
    "weight": 5120
  },
  "event": "marketplacemodifiers.updated",
  "id": "c504e355-0d10-4516-98e6-a62b97e739c7",
  "livemode": true
}

Payload example deleted

{
  "attemptId": "68f8601d-f49c-44cf-a7aa-e89c37d2dad3",
  "created": 1634755852,
  "data": {
    "marketplaceModifierId": "61577d04a25cf913db0fa912"
  },
  "event": "marketplacemodifiers.deleted",
  "id": "65298dd1-a335-4ec0-8175-1fa53f8eaf60",
  "livemode": true
}