Inventory V2

Update inventory stock

Records a manual stock movement for a product — in adds stock, out removes it. Use warehouse_id -1 for the default warehouse and record_date to backdate the movement. Sales and purchase documents also move stock automatically.

post/v2/inventory/stock

Request

  • Base URL
    https://app.getswipe.in/api/partner
  • URL
    https://app.getswipe.in/api/partner/v2/inventory/stock
  • Auth
    HTTP bearer

Request body

product_idstring required

Product ID

quantitynumber required

Opening Quantity

warehouse_idinteger required

Warehouse ID

remarksstring

Remarks

record_datestring

Record Date (DD-MM-YYYY)

action'in' | 'out' required

Stock in or stock out

Example request

{
  "product_id": "123456",
  "quantity": 1,
  "warehouse_id": -1,
  "remarks": "Remarks",
  "record_date": "06-05-2025",
  "action": "in"
}

Response

Success Response

successboolean

Success

errorsobject

Error details

error_codestring

Error Code

messagestring

Message

Changes

No recorded changes to this operation across all 2 revisions of this API.