Inbound | PUT | /updateInventories

Summary

This API will be used by the client POS systems to update Available to promise inventory for a store.

Description

Whenever any inventory change happens, Client POS system will sent Increff OMS current absolute available to sale inventory.

Each inventory line now accepts an optional batchIdentification object, so stock for perishable SKUs can be tracked per batch (lot code, supplier, manufacturing and expiry dates). Batch details are mandatory for perishable SKUs and must be absent for non-perishable SKUs. Non-perishable integrations need no change.

<aside> Note: One batch will contain 200 skus.

</aside>

Request

{
   "excludeNonDispatchedInventory": false,
   "inventories": [
      {
        "channelSkuCode": "MILK-1L",
        "locationCode": "STORE-042",
        "quantity": 24,
        "batchIdentification": {
          "batchCode": "L2026-0431",
          "supplierCode": "SUP-88",
          "manufacturingDate": "2026-08-01T00:00:00.000+05:30",
          "expiryDate": "2026-12-01T00:00:00.000+05:30",
          "mrp":"999"
        }
      },
      {
        "channelSkuCode": "SOAP-100G",
        "locationCode": "STORE-042",
        "quantity": 50
      }
   ]
}
Parameter Name Data Type Description Mandatory
inventories Object[] List of inventories to be updated Yes
excludeNonDispatchedInventory Boolean Flag to exclude or include non-dispatched(allocated or fulfilled) inventory in updates received from POS.
• When this flag is false, the OMS will update the same inventory and same gets exposed to marketplaces.
• When this flag is true, the OMS will subtract the allocated and fulfilled qty from the inventory received from POS and then updated inventory would get exposed to marketplaces. No
(By Default it will be false)
locationCode String Identifier for a warehouse in channel Yes
quantity Integer Absolute quantity available for sale sale in Increff Omni Yes
channelSkuCode String Code used by channel to identify an SKU Yes
batchIdentification Object Optional batch identification details for an inventory entry. Can be null. Conditional
batchIdentification.batchCode String Code identifying the batch Conditional (see below)
batchIdentification.supplierCode String Supplier identifier for this batch. If omitted, the client's configured default supplier is used. Send it if the same batch code can come from more than one supplier, since a batch is identified by code and supplier together. No
batchIdentification.manufacturingDate ZonedDateTime Manufacturing date and time of the batch, including the time-zone offset (for example, 2026-01-01T00:00:00+05:30) Conditional (see below)
batchIdentification.expiryDate ZonedDateTime Expiry date and time of the batch, including the time-zone offset (for example, 2027-01-01T00:00:00+05:30) Conditional (see below)
batchIdentification.mrp String (as shown in the request example) Maximum retail price (MRP) for the batch. Example: "999". Accepted type and validation rules require confirmation. No

When to send batchIdentification

A SKU is perishable if it is flagged as such in product master data. Do not send batch details speculatively.

SKU batchIdentification Result
Perishable Sent Accepted
Perishable Omitted Rejected
Non-perishable Omitted Accepted (unchanged behaviour)
Non-perishable Sent Rejected

Allowed combinations

Fields sent Behaviour
batchCode only The batch must already exist. Nothing is created.
manufacturingDate and expiryDate Matched against existing batches on both dates; created if no match.
batchCode and both dates Created if new. If the code already exists with different dates, the request is rejected (this API does not update batch master data).

<aside>

Rules: Never send a single date — manufacturingDate and expiryDate always go together. Two lines resolving to the same SKU + batch are rejected; aggregate the quantity on your side. Perishable and non-perishable lines can be mixed in one request.

</aside>

Response

{
  "successList": [
    {
      "channelSkuCode": "MILK-1L",
      "locationCode": "STORE-042",
      "quantity": 24,
      "batchIdentification": {
        "batchCode": "L2026-0431",
        "supplierCode": "SUP-88",
        "manufacturingDate": "2026-08-01T00:00:00.000+05:30",
        "expiryDate": "2026-12-01T00:00:00.000+05:30"
      }
    },
    {
      "channelSkuCode": "SOAP-100G",
      "locationCode": "STORE-042",
      "quantity": 50
    }
  ],
  "failureList": []
}

Http Status