Events
Action |
Event name |
creating a zone price overages |
zonepriceoverages.created |
editing zone price overages |
zonepriceoverages.updated |
deleting zone price overages |
zonepriceoverages.deleted |
Payload example created
{
"attemptId": "03e7651b-3aa5-4d32-9601-991fec816a67",
"created": 1628024835,
"data": {
"_id": "6109afcc598e472c24a437ce",
"accountId": "52a377ec430c7d4e220001fc",
"arrivalZones": [
"z2"
],
"createdAt": {
"offset": 0,
"value": "2021-08-03T21:06:20.161Z"
},
"createdBy": "55fc2f318791db6e1a0000b6",
"departureZones": [
"z1"
],
"maxWeight": 12,
"minWeight": 0,
"overagePartialUnitPrice": 1.3,
"overageUnitPrice": 2.4,
"overageUnitWeight": 234,
"serviceTypeIds": [
"605ba169ea6a729a8ab19c34",
"60746c175c24d164af15e666"
],
"updatedAt": {
"offset": 0,
"value": "2021-08-03T21:06:20.161Z"
},
"updatedBy": "55fc2f318791db6e1a0000b6"
},
"event": "zonepriceoverages.created",
"id": "24b4fd63-c0ba-4732-9aef-d379cfc81d4f",
"livemode": true
}
Payload example updated
{
"attemptId": "43489008-c98f-4711-beb8-362b4026f0fa",
"created": 1628024836,
"data": {
"_id": "6109afcc598e472c24a437ce",
"accountId": "52a377ec430c7d4e220001fc",
"arrivalZones": [
"z2",
"z3",
"z4"
],
"createdAt": {
"offset": 0,
"value": "2021-08-03T21:06:20.161Z"
},
"createdBy": "55fc2f318791db6e1a0000b6",
"departureZones": [
"z1"
],
"maxWeight": 12,
"minWeight": 0,
"overagePartialUnitPrice": 0,
"overageUnitPrice": 0,
"overageUnitWeight": 0,
"serviceTypeIds": [
"605ba169ea6a729a8ab19c34",
"60746c175c24d164af15e666"
],
"updatedAt": {
"offset": 0,
"value": "2021-08-03T21:06:32.034Z"
},
"updatedBy": "55fc2f318791db6e1a0000b6"
},
"event": "zonepriceoverages.updated",
"id": "c745cedd-d645-4649-aa2d-d85964ff85de",
"livemode": true
}
Payload example deleted
{
"attemptId": "9c2abd36-aeaf-4528-ba1a-88fcd0caeabc",
"created": 1628024835,
"data": {
"zonePriceOveragesId": "61097f9c8eee37138528e012"
},
"event": "zonepriceoverages.deleted",
"id": "4ab81872-ee08-4457-9e73-b415aadc0be5",
"livemode": true
}