Production order webhooks
Types of triggers
Webhooks can be triggered on the following events related to production orders.
Production order status is changed
This webhook will fire when a production order's status is changed. You can select the statuses you want the webhook to trigger for
Production order is created
This webhook will fire when a production order is created.
Payload
Example
When the webhook is triggered, the following payload will be delivered to the webhook endpoint.
{
"webhookProductionOrdersId": 0,
"webhookEventId": 0,
"system": "string",
"timestamp": "2023-01-01T12:00:00.0000000",
"productionOrderId": 0,
"productionOrderNumber": "string",
"goodsOwnerId": 0,
"path": "string",
"webhookTemplate": "string",
"productionOrderStatus": {
"number": 0
},
"goodsOwnerName": "string",
"productionOrderType": {
"productionOrderTypeId": 0,
"productionOrderTypeCode": "string"
}
}
Specification
| WebhookProductionOrderPayload | ||
|---|---|---|
| webhookProductionOrdersId | 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. |
| productionOrderId | int | |
| productionOrderNumber | string | |
| goodsOwnerId | int | The Ongoing WMS system id for the goods owner. |
| path | string | REST API path to the resource. |
| webhookTemplate | string | The name of the webhook type. |
| productionOrderStatus | ProductionOrderstatus | An element of type ProductionOrderstatus. |
| goodsOwnerName | string | |
| productionOrderType | ProductionOrderType | An element of type ProductionOrderType. |
| ProductionOrderstatus | ||
|---|---|---|
| number | int | Order status ID. |
| ProductionOrderType | ||
|---|---|---|
| productionOrderTypeId | int | |
| productionOrderTypeCode | string | |