Add product Inventory
POST/api/products/:id/inventory
Add new product Stock
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
quantity number
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id integer
product_id string
quantity integer
created_by_id string
created_at date-time
updated_at date-time
{
"id": 9,
"product_id": "4",
"quantity": 4000,
"created_by_id": "1",
"created_at": "2024-08-03T21:19:40.356+03:00",
"updated_at": "2024-08-03T21:42:05.503+03:00"
}
Loading...