v1

latestOpenAPI 3.0.1Apache 2.02026-07-2473111182.6 KB
Stock

Adjust stock quantity

Adjust stock quantity for the specified business id and branch id. Currently only stock increase and deduction are supported

post/api/business/{businessId}/branch/{branchId}/stock/adjustment

Path parameters

businessIdstring required
branchIdstring required

Request body

barcodesstring[]

Example request

{
  "stocks": [
    {
      "barcode": "ab123",
      "quantity": 2,
      "operationType": "DEDUCT"
    }
  ]
}

Response

Stock quantity adjusted successfully