Zone prices

Events

Action Event name
creating a zone price zoneprices.created
editing zone price zoneprices.updated
deleting zone price zoneprices.deleted

Payload example created

{
  "attemptId": "230997cc-a346-438a-94f1-758b90816707",
  "created": 1623871688,
  "data": {
    "_id": "60ca50c08b8bf3199e511e8f",
    "accountId": "52a377ec430c7d4e220001fc",
    "arrivalZones": [
      "zone2"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2021-06-16T19:28:00.223Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "departureZones": [
      "zone 1"
    ],
    "maxVolume": 123,
    "maxWeight": 123,
    "minVolume": 0,
    "minWeight": 0,
    "price": 10,
    "serviceTypeIds": [
      "605ba169ea6a729a8ab19c34"
    ],
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T19:28:00.223Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "zoneprices.created",
  "id": "d778070d-02d9-448c-bc9d-d375e6f060d4",
  "livemode": true
}

Payload example updated

{
  "attemptId": "af31b301-addc-4685-9b9f-445171fda672",
  "created": 1623871665,
  "data": {
    "_id": "609ed2f589fda03dd95171a3",
    "accountId": "52a377ec430c7d4e220001fc",
    "arrivalZones": [
      "1",
      "2"
    ],
    "createdAt": {
      "offset": 0,
      "value": "2021-04-30T13:30:24.521Z"
    },
    "createdBy": "55fc2f318791db6e1a0000b6",
    "departureZones": [
      "1",
      "2"
    ],
    "maxVolume": 999999999,
    "maxWeight": 5000000,
    "minVolume": 0,
    "minWeight": 0,
    "price": 123.45,
    "sellEndDate": "2022-11-26T00:00:00.000Z",
    "sellStartDate": "2021-04-01T00:00:00.000Z",
    "serviceTypeIds": [
      "605ba169ea6a729a8ab19c34",
      "60a296835ecfc4facf3878a4"
    ],
    "updatedAt": {
      "offset": 0,
      "value": "2021-06-16T19:27:40.726Z"
    },
    "updatedBy": "55fc2f318791db6e1a0000b6"
  },
  "event": "zoneprices.updated",
  "id": "0f50637a-8d82-4723-a6ad-e1e0b101fa21",
  "livemode": true
}

Payload example deleted

{
  "attemptId": "f3cd5c00-3ead-4121-9e48-56131b6c4727",
  "created": 1623871652,
  "data": {
    "zonePriceId": "608c06705f9dbf32f7b9a517"
  },
  "event": "zoneprices.deleted",
  "id": "24a854ea-28d1-407e-a421-23a76ceb0001",
  "livemode": true
}