cURL
curl --request POST \ --url https://app.getswipe.in/api/partner/v2/inventory/stock \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "product_id": "123456", "quantity": 1, "warehouse_id": -1, "action": "in", "remarks": "Remarks", "record_date": "06-05-2025" } '
{ "success": false, "errors": {}, "error_code": "", "message": "" }
Bearer authentication header of the form Bearer , where is your auth token.
Product ID
"123456"
Opening Quantity
1
Warehouse ID
-1
Stock in or stock out
in
out
"in"
Remarks
"Remarks"
Record Date (DD-MM-YYYY)
"06-05-2025"
Success Response
Success
false
Error details
Error Code
""
Message