Purchase order line webhooks

Types of triggers

Webhooks can be triggered on the following events related to purchase orders lines.

Purchase order line is created

This webhook will fire when a purchase order line is created. There is a setting called "Fire when purchase order is created" which controls whether or not you want the webhook to fire if the line is created at the same time that the purchase order itself is created.

Purchase order line is changed

This webhook will fire when a purchase order line is changed.

Purchase order line is deleted

This webhook will fire when a purchase order line is deleted.

Payload

Example

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

{
  "webhookPurchaseOrderLinesId": 0,
  "webhookEventId": 0,
  "system": "string",
  "timestamp": "2023-01-01T12:00:00.0000000",
  "goodsOwnerId": 0,
  "webhookTemplate": "string",
  "goodsOwnerName": "string",
  "purchaseOrderInfo": {
    "purchaseOrderId": 0,
    "purchaseOrderNumber": "string",
    "purchaseOrderStatus": {
      "number": 0
    }
  },
  "purchaseOrderLineInfo": {
    "purchaseOrderLineId": 0
  }
}

Specification

WebhookPurchaseOrderLinePayload
webhookPurchaseOrderLinesIdintInternal 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.
goodsOwnerIdintThe Ongoing WMS system id for the goods owner.
webhookTemplatestringThe name of the webhook type.
goodsOwnerNamestring
purchaseOrderInfoPurchaseOrderInfoAn element of type PurchaseOrderInfo.
purchaseOrderLineInfoPurchaseOrderLineInfoAn element of type PurchaseOrderLineInfo.
PurchaseOrderInfo
purchaseOrderIdintPurchase order ID.
purchaseOrderNumberstringPurchase order number.
purchaseOrderStatusPurchaseOrderStatusAn element of type PurchaseOrderStatus.
PurchaseOrderStatus
numberint
PurchaseOrderLineInfo
purchaseOrderLineIdintPurchase order line ID.