Inventory

Move stock between locations within a warehouse

Changed on
  • Moves stock between two already-associated Storage locations in one warehouse; warehouse on-hand total is unchanged. Use /api/warehouse/location/allocate first if the normal destination lacks the SKU association.
  • Moves for the same SKU follow input order. Failed moves do not roll back successful moves; retry only failed items to avoid moving stock again.

Request example

{
  "externalWarehouseId": "WH-DEMO",
  "moves": [
    {
      "skuNumber": "SKU-DEMO-1",
      "fromLocationId": 10001,
      "toLocationId": 10003,
      "quantity": 2
    }
  ]
}
post/api/inventory/stock/location/move

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 returned by POST /api/warehouse/list. Storage must be activated for this warehouse.

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