Products | Inventory

Perform inventory updates by specifying delta instead of total. Supports multiple updates to the same inventory item in the same request. Concurrent requests for the same inventory item are applied one after the other. If an item keeps changing under concurrent writers the request returns 409 Conflict listing the updates that were not applied; every other update in the request is persisted.

post/api/Inventory/ProcessInventoryTransactions

Request

  • Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
  • URL: https://api.omnium.no/api/Inventory/ProcessInventoryTransactions
  • Auth: API key in header Authorization

Request body

skuIdstring nullable

Primary identifier for the inventory item, should represent the product SKU / Code / Variant / ID

warehouseCodestring nullable

Warehouse Code / ID

virtualWarehouseCodestring nullable

Only in use with virtual stock locations in Omnium. Specifies the virtual warehouse location of a virtual inventory item and will cause a reduction in both physical and virtual inventory levels for the sku. NB! Must be null for all physical inventories.

inventoryChangenumber

The change in inventory level

adjustReservedInventoryboolean

If true both the inventory and reserved inventory level will be updated with the specified change.

orderIdstring nullable

The order Id of the order related with the change.

reasonstring nullable

[Optional] Reason for inventory change

locationCodestring nullable

[Optional] Location code within the warehouse. When provided and warehouse location management is enabled, the inventory change is applied to both the warehouse total and the specified location. When null, only the warehouse total is updated.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.