Edit order

This webhook is activated when an order has been edited. It will show what the original value was with the new value of the field that has been changed.

The request from the webhook will look like this:

{
  "webhookId": "6984039d8c9f1700d21b7b9a",
  "name": "editOrder",
  "sent": "2026-02-05T02:42:36.389Z",
  "created": "2026-02-05T02:42:37.332Z",
  "data": [
    {
      "orderId": "696a71052d9b87006df3bf1e",
      "orderNumber": "TESTING-CAS-20251211-1",
      "requisition": "TEST-ORDER-REFERENCE",
      "tntKey": "2b21a41c-e522-415e-98ea-fd92e754d8fe",
      "changes": [
        {
          "key": "originPhoneNumber",
          "index": null,
          "originalValue": 12345678,
          "newValue": 23456789
        },
        {
          "key": "destinationComments",
          "index": null,
          "originalValue": "Destination comment 1",
          "newValue": "Destination comment 2"
        },
				{
          "key": "cargoAmount",
          "index": 1,
          "originalValue": 3,
          "newValue": 5
        }
      ]
    }
  ]
}

What does changes contain:

KeyDescription
keyDescribes which field that have been changed
indexIf changes has happen in an array, this will define what the index in array it was. However with cargo it will define which line in the cargo that has been changed
originalValueShows what the value was before the edit
newValueShows what the new value is after the edit