POST
/
v2
/
inventory
/
stock
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,
  "remarks": "Remarks",
  "record_date": "06-05-2025",
  "action": "in"
}'
{
  "success": false,
  "errors": {},
  "error_code": "",
  "message": ""
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
product_id
string
required

Product ID

Example:

"123456"

quantity
number
required

Opening Quantity

Example:

1

warehouse_id
integer
required

Warehouse ID

Example:

-1

action
enum<string>
required

Stock in or stock out

Available options:
in,
out
Example:

"in"

remarks
string

Remarks

Example:

"Remarks"

record_date
string

Record Date (DD-MM-YYYY)

Example:

"06-05-2025"

Response

Success Response

success
boolean

Success

Example:

false

errors
object

Error details

error_code
string

Error Code

Example:

""

message
string

Message

Example:

""