Stock
Contents
This call handles the stock for the specified product. Also stock in the future is supported. The call has an option for entering the warehouse (identification).
You can also make a call to update the stock for a specific warehouse.
The warehouse must exist in CloudSuite.
Stock
All stock in one call.
Fields
Field | Required | Remarks |
---|---|---|
company | yes | Import_key of the company. |
identification | yes | This is a purely administrative name, most of the time the name of the warehouse is used. Can also be a date or a record number. However, this value must be unique for the product. So if more than one stock quantity is send in one message, the identification must be unique. |
quantity | yes | Number of items. |
next_date | no | Date when the next_quantity is going to be available. |
next_quantity | no | Number of items on next_date. |
warehouse | no | The key of the warehouse. |
URL
POST /api/origin/{origin_code}/product/{key}/stock
Request
[
{
"company": "MyCompany_Key",
"identification": "WH",
"quantity": "4",
"next_date": "2019-11-07",
"next_quantity": "7",
"warehouse": "warehouse1"
},
{
"company": "MyCompany_Key",
"identification": "WH",
"quantity": "0",
"next_date": "2020-11-07",
"next_quantity": "55",
"warehouse": "warehouse1"
},
{
"company": "MyCompany_Key",
"identification": "RT",
"quantity": "7",
"next_date": "2019-11-09",
"next_quantity": "70",
"warehouse": "warehouse2"
}
]
All possible warehouses and future stock must be send in one message
Stock per warehouse
Only stock for a specific warehouse.
URL
POST /api/origin/{origin_code}/product/{key}/stock/warehouse2
Request
[
{
"company": "MyCompany_Key",
"identification": "RT",
"quantity": "7",
"next_date": "2019-11-09",
"next_quantity": "70"
},
{
"company": "MyCompany_Key",
"identification": "RT",
"quantity": "0",
"next_date": "2020-11-09",
"next_quantity": "99"
}
]
All possible future stock must be send in one message!
Related content
© 2024 CloudSuite BV, All rights reserved