Inventory webhooks

Types of triggers

Webhooks can be triggered on the following events related to stock adjustment transactions.

Inventory transaction has been performed

This webhook will fire when an inventory transaction is made.

Payload

Example

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

{
  "webhookInventoryId": 0,
  "webhookEventId": 0,
  "system": "string",
  "timestamp": "2023-01-01T12:00:00.0000000",
  "goodsOwnerId": 0,
  "goodsOwnerName": "string",
  "transaction": {
    "transactionNumberOfItems": 0.0,
    "inventoryAdjustmentCause": {
      "id": 0,
      "code": "string"
    },
    "returnRemovedByOrder": {
      "orderId": 0
    }
  },
  "inventory": {
    "inventoryId": 0,
    "isCountInventory": false,
    "inventoryComment": "string"
  },
  "article": {
    "articleSystemId": 0,
    "articleNumber": "string",
    "barCode": "string"
  },
  "articleItem": {
    "articleItemId": 0,
    "originalArticleItemId": 0,
    "serial": "string",
    "batch": "string",
    "expiryDate": "2023-01-01T12:00:00",
    "numberOfItems": 0.0,
    "articleItemStatus": {
      "articleItemStatusId": 0,
      "articleItemStatusCode": "string",
      "articleItemStatusName": "string",
      "isStatusLocked": false,
      "isStatusLockedForSale": false
    }
  },
  "byComputer": {
    "computerId": 0,
    "computerName": "string"
  },
  "byUser": {
    "userId": 0
  },
  "purchaseOrder": {
    "purchaseOrderId": 0,
    "purchaseOrderNumber": "string",
    "purchaseOrderLine": {
      "id": 0,
      "rowNumber": "string"
    }
  },
  "location": {
    "location": "string",
    "locationId": 0,
    "isLocked": false,
    "isLockedForSale": false,
    "warehouse": {
      "warehouseId": 0,
      "warehouseCode": "string",
      "warehouseName": "string"
    }
  },
  "webhookTemplate": "string"
}

Specification

WebhookInventoryPayload
webhookInventoryIdint
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.
goodsOwnerNamestring
transactionInventoryTransactionAn element of type InventoryTransaction.
inventoryInventoryInfoAn element of type InventoryInfo.
articleArticleInfoAn element of type ArticleInfo.
articleItemArticleItemInfoAn element of type ArticleItemInfo.
byComputerByComputerInfoAn element of type ByComputerInfo.
byUserByUserInfoAn element of type ByUserInfo.
purchaseOrderPurchaseOrderInfoAn element of type PurchaseOrderInfo.
locationLocationInfoAn element of type LocationInfo.
webhookTemplatestringThe name of the webhook type.
InventoryTransaction
transactionNumberOfItemsdecimal
inventoryAdjustmentCauseInventoryAdjustmentCauseInfoAn element of type InventoryAdjustmentCauseInfo.
returnRemovedByOrderReturnRemovedByOrderAn element of type ReturnRemovedByOrder.
InventoryAdjustmentCauseInfo
idint
codestring
ReturnRemovedByOrder
orderIdint
InventoryInfo
inventoryIdint
isCountInventoryboolean
inventoryCommentstring
ArticleInfo
articleSystemIdint
articleNumberstring
barCodestring
ArticleItemInfo
articleItemIdint
originalArticleItemIdint
serialstring
batchstring
expiryDatedateTime (nullable)
numberOfItemsdecimal
articleItemStatusArticleItemStatusInfoAn element of type ArticleItemStatusInfo.
ArticleItemStatusInfo
articleItemStatusIdint
articleItemStatusCodestring
articleItemStatusNamestring
isStatusLockedboolean
isStatusLockedForSaleboolean
ByComputerInfo
computerIdintOngoing WMS workstation ID of the workstation which the user was logged in to.
computerNamestringOngoing WMS workstation name of the workstation which the user was logged in to.
ByUserInfo
userIdintOngoing WMS user ID of the user who performed the action.
PurchaseOrderInfo
purchaseOrderIdint
purchaseOrderNumberstring
purchaseOrderLinePurchaseOrderLineInfoAn element of type PurchaseOrderLineInfo.
PurchaseOrderLineInfo
idint
rowNumberstring
LocationInfo
locationstring
locationIdint
isLockedboolean
isLockedForSaleboolean
warehouseWarehouseInfoAn element of type WarehouseInfo.
WarehouseInfo
warehouseIdint
warehouseCodestring
warehouseNamestring