The Bin object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
{
"id": "bin_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"warehouse": "warehouse_example",
"item_code": "item_code_example",
"reserved_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"indented_qty": 0,
"planned_qty": 0,
"projected_qty": 0,
"reserved_qty_for_production": 0,
"reserved_qty_for_sub_contract": 0,
"stock_uom": "stock_uom_example",
"company": "Example Corp",
"valuation_rate": 0,
"stock_value": 0,
"reserved_qty_for_production_plan": 0,
"reserved_stock": 0
} /api/stock/bin/{id} Retrieve a bin
Retrieves the details of an existing bin. Supply the unique bin ID that was returned from a previous request.
Path parameters
The identifier of the bin to retrieve.
Returns
Returns the bin object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/bin/bin_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "bin_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"warehouse": "warehouse_example",
"item_code": "item_code_example",
"reserved_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"indented_qty": 0,
"planned_qty": 0,
"projected_qty": 0,
"reserved_qty_for_production": 0,
"reserved_qty_for_sub_contract": 0,
"stock_uom": "stock_uom_example",
"company": "Example Corp",
"valuation_rate": 0,
"stock_value": 0,
"reserved_qty_for_production_plan": 0,
"reserved_stock": 0
} /api/stock/bin List all bins
Returns a list of bins. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of bin objects.
curl https://api.overplane.dev/api/stock/bin \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "bin_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"warehouse": "warehouse_example",
"item_code": "item_code_example",
"reserved_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"indented_qty": 0,
"planned_qty": 0,
"projected_qty": 0,
"reserved_qty_for_production": 0,
"reserved_qty_for_sub_contract": 0,
"stock_uom": "stock_uom_example",
"company": "Example Corp",
"valuation_rate": 0,
"stock_value": 0,
"reserved_qty_for_production_plan": 0,
"reserved_stock": 0
}
],
"has_more": false,
"total": 1
} /api/stock/bin Create a bin
Creates a new bin object.
Body parameters
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the newly created bin object if the call succeeded.
curl https://api.overplane.dev/api/stock/bin \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"warehouse":"warehouse_example","item_code":"item_code_example"}' {
"id": "bin_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"warehouse": "warehouse_example",
"item_code": "item_code_example",
"reserved_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"indented_qty": 0,
"planned_qty": 0,
"projected_qty": 0,
"reserved_qty_for_production": 0,
"reserved_qty_for_sub_contract": 0,
"stock_uom": "stock_uom_example",
"company": "Example Corp",
"valuation_rate": 0,
"stock_value": 0,
"reserved_qty_for_production_plan": 0,
"reserved_stock": 0
} /api/stock/bin/{id} Update a bin
Updates the specified bin by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the bin to update.
Body parameters
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the updated bin object.
curl https://api.overplane.dev/api/stock/bin/bin_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"warehouse":"warehouse_example","item_code":"item_code_example"}' {
"id": "bin_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"warehouse": "warehouse_example",
"item_code": "item_code_example",
"reserved_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"indented_qty": 0,
"planned_qty": 0,
"projected_qty": 0,
"reserved_qty_for_production": 0,
"reserved_qty_for_sub_contract": 0,
"stock_uom": "stock_uom_example",
"company": "Example Corp",
"valuation_rate": 0,
"stock_value": 0,
"reserved_qty_for_production_plan": 0,
"reserved_stock": 0
} /api/stock/bin/{id} Delete a bin
Permanently deletes a bin. This cannot be undone.
Path parameters
The identifier of the bin to delete.
Returns
Returns a confirmation that the bin has been deleted.
curl https://api.overplane.dev/api/stock/bin/bin_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "bin_abc123",
"deleted": true
}