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 | ||
|---|---|---|
| webhookPurchaseOrderLinesId | int | Internal ID for the webhook. |
| webhookEventId | int | Internal ID for this particular event. |
| system | string | The name of the Ongoing WMS instance where the event happened. |
| timestamp | string | When the event happened. |
| goodsOwnerId | int | The Ongoing WMS system id for the goods owner. |
| webhookTemplate | string | The name of the webhook type. |
| goodsOwnerName | string | |
| purchaseOrderInfo | PurchaseOrderInfo | An element of type PurchaseOrderInfo. |
| purchaseOrderLineInfo | PurchaseOrderLineInfo | An element of type PurchaseOrderLineInfo. |
| PurchaseOrderInfo | ||
|---|---|---|
| purchaseOrderId | int | Purchase order ID. |
| purchaseOrderNumber | string | Purchase order number. |
| purchaseOrderStatus | PurchaseOrderStatus | An element of type PurchaseOrderStatus. |
| PurchaseOrderStatus | ||
|---|---|---|
| number | int | |
| PurchaseOrderLineInfo | ||
|---|---|---|
| purchaseOrderLineId | int | Purchase order line ID. |