This webhook will be called when there have been added an image or signature for the deliver history. The request from the webhook would look like this:
{
"webhookId": "64d05979a6ea2d015600f8d5",
"name": "deliverOrderFile",
"sent": "2023-07-06T08:40:28.297ZZ",
"data": [
{
"orderId": "5ad066886a9deecd679e6ac5",
"orderNumber": "WUX-123-45678901",
"requisition": "this-is-requisition",
"historyId": "64cefc58e5012800e57eec70",
"type": "image",
"fileURL": "https://example-url.com/image",
"deliverTime": "2024-04-21T12:34:56.789Z"
}
]
}
The data contains
Key | Description |
---|---|
orderId | The id of the order. |
orderNumber | The order number the order have been given. |
requisition | The requisition the order have been given. |
historyId | The id of the history where the file have been added to |
type | What kind of file, at the moment it's either "file" or "signature" |
fileURL | The url to the file |
deliverTime | The time when the deliver history was registered that this file have been added to |
If orderNumber or requisition is not set, it will not be in the payload.
historyId and deliverTime can be used to group multiple deliveries for an order together. For example any delivery for on an order will each have their own historyId unique for that.