File webhooks

Types of triggers

Webhooks can be triggered when a file is attached to an order, purchase order or shipment.

File

File is attached to an object

This webhook will fire when a file is attached/uploaded to an order, purchase order or shipment.

Payload

Example

When the webhook is triggered, the following payload will be delivered to the webhook endpoint.

{
  "webhookFilesId": 0,
  "webhookEventId": 0,
  "system": "string",
  "timestamp": "2023-01-01T12:00:00.0000000",
  "fileId": 0,
  "fileName": "string",
  "mimeType": "string",
  "goodsOwnerId": 0,
  "webhookTemplate": "string",
  "goodsOwnerName": "string",
  "context": {
    "order": {
      "orderId": 0
    },
    "purchaseOrder": {
      "purchaseOrderId": 0
    },
    "shipment": {
      "shipmentId": 0
    }
  }
}

Specification

WebhookFilesPayload
webhookFilesIdintInternal ID for the webhook.
webhookEventIdintInternal ID for this particular event.
systemstringThe name of the Ongoing WMS instance where the event happened.
timestampstringWhen the event happened.
fileIdint
fileNamestring
mimeTypestring
goodsOwnerIdintThe Ongoing WMS system id for the goods owner.
webhookTemplatestringThe name of the webhook type.
goodsOwnerNamestring
contextWebhookFilesContextAn element of type WebhookFilesContext.
WebhookFilesContext
orderWebhookFilesContextOrderAn element of type WebhookFilesContextOrder.
purchaseOrderWebhookFilesContextPurchaseOrderAn element of type WebhookFilesContextPurchaseOrder.
shipmentWebhookFilesContextShipmentAn element of type WebhookFilesContextShipment.
WebhookFilesContextOrder
orderIdint
WebhookFilesContextPurchaseOrder
purchaseOrderIdint
WebhookFilesContextShipment
shipmentIdint