Warehouse

Allocate SKUs to locations

Changed on

Creates zero-stock SKU-location associations without moving Default Storage or changing quantities.

Each location-SKU pair is processed independently. Check data.failureList for failed pairs with locationId, skuNumber and reason. Requests are limited to 200 original input pairs, including duplicate or invalid inputs. Requests above the limit return INVALID_PARAMETER before allocation.

Request example

{
  "externalWarehouseId": "WH-DEMO",
  "allocations": [
    {
      "locationId": 10001,
      "skuNumbers": [
        "SKU-DEMO-1",
        "SKU-DEMO-2"
      ]
    }
  ]
}

Removing a product allocation from a location is not available via OpenAPI. Use Desty Omni (Inventori > Pengaturan Inventori > Penyesuaian Stok) to remove it.

post/api/warehouse/location/allocate

Request

  • Base URL
    https://api.desty.app
  • Auth
    none declared. Required headers: Authorization

Headers

Authorizationstring required

Authorization (Only:Bearer <access_token>)

Request body

externalWarehouseIdstring required

External warehouse ID from /api/warehouse/list. Storage must already be activated.

Response

successful operation

codestring required

Business result code: "0" on success; otherwise INVALID_PARAMETER, INVALID_TOKEN, LIMIT_REQUEST or SERVER_ERROR. SERVER_ERROR with msg "Previous setting is still in progress" means another request for the same tenant is still running; it is retryable after a few seconds.

msgstring nullable

Result message; normally null on success.

successboolean required

True when code equals "0".

Changes