[
{
"product": {
"id": 1,
"name": "132392 - KitKat",
"uom": "PCS"
},
"available_storage_bins": [
// NOTE: It contains the storage bin storing the product. Otherwise, this's the blank array.
{
"storage_bin": 1,
"storage_bin_name": "SB1 - Storage bin 01",
"available_quantity": 6
},
{
"storage_bin": 2,
"storage_bin_name": "SB2 - Storage bin 02",
"available_quantity": 5
},
{
"storage_bin": 3,
"storage_bin_name": "SB3 - Storage bin 03",
"available_quantity": 8
},
]
},
{
"product": {
"id": 2,
"name": "132392 - KitKat",
"uom": "PCK"
},
"available_storage_bins": [
// NOTE: It contains the storage bin storing the product. Otherwise, this's the blank array.
]
}
]
The Sample API Response
Module name: Available product info in a source warehouse
Sample view: Response
Provide the product information which is available for transfer to other warehouses given the id of source warehouse.
** Request **
URL: "/api/warehouse/<id>/available-source-products/?product=<product_id>" where <id> represents the ID of warehouse and <product_id> represents the ID of a given product.
Request Method: GET
Module name: Available product info in a source warehouse
Sample view: Response
Provide the product information which is available for transfer to other warehouses given the id of source warehouse.
** Request **
URL: "/api/warehouse/<id>/available-source-products/?product=<product_id>" where <id> represents the ID of warehouse and <product_id> represents the ID of a given product.
Request Method: GET
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.