The Stock Closing Balance 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.
{
"id": "stock-closing-balance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"posting_datetime": "2024-01-15",
"actual_qty": 0,
"valuation_rate": 0,
"stock_value": 0,
"company": "Example Corp",
"stock_uom": "stock_uom_example",
"stock_value_difference": 0,
"item_name": "item_name_example",
"item_group": "item_group_example",
"stock_closing_entry": "stock_closing_entry_example",
"inventory_dimension_key": "inventory_dimension_key_example",
"batch_no": "batch_no_example",
"fifo_queue": "fifo_queue_example"
} /api/stock/stock-closing-balance/{id} Retrieve a stock closing balance
Retrieves the details of an existing stock closing balance. Supply the unique stock closing balance ID that was returned from a previous request.
Path parameters
The identifier of the stock closing balance to retrieve.
Returns
Returns the stock closing balance object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/stock-closing-balance/stock-closing-balance_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "stock-closing-balance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"posting_datetime": "2024-01-15",
"actual_qty": 0,
"valuation_rate": 0,
"stock_value": 0,
"company": "Example Corp",
"stock_uom": "stock_uom_example",
"stock_value_difference": 0,
"item_name": "item_name_example",
"item_group": "item_group_example",
"stock_closing_entry": "stock_closing_entry_example",
"inventory_dimension_key": "inventory_dimension_key_example",
"batch_no": "batch_no_example",
"fifo_queue": "fifo_queue_example"
} /api/stock/stock-closing-balance List all stock closing balances
Returns a list of stock closing balances. 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 stock closing balance objects.
curl https://api.overplane.dev/api/stock/stock-closing-balance \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "stock-closing-balance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"posting_datetime": "2024-01-15",
"actual_qty": 0,
"valuation_rate": 0,
"stock_value": 0,
"company": "Example Corp",
"stock_uom": "stock_uom_example",
"stock_value_difference": 0,
"item_name": "item_name_example",
"item_group": "item_group_example",
"stock_closing_entry": "stock_closing_entry_example",
"inventory_dimension_key": "inventory_dimension_key_example",
"batch_no": "batch_no_example",
"fifo_queue": "fifo_queue_example"
}
],
"has_more": false,
"total": 1
} /api/stock/stock-closing-balance Create a stock closing balance
Creates a new stock closing balance object.
Body parameters
Returns
Returns the newly created stock closing balance object if the call succeeded.
curl https://api.overplane.dev/api/stock/stock-closing-balance \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "stock-closing-balance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"posting_datetime": "2024-01-15",
"actual_qty": 0,
"valuation_rate": 0,
"stock_value": 0,
"company": "Example Corp",
"stock_uom": "stock_uom_example",
"stock_value_difference": 0,
"item_name": "item_name_example",
"item_group": "item_group_example",
"stock_closing_entry": "stock_closing_entry_example",
"inventory_dimension_key": "inventory_dimension_key_example",
"batch_no": "batch_no_example",
"fifo_queue": "fifo_queue_example"
} /api/stock/stock-closing-balance/{id} Update a stock closing balance
Updates the specified stock closing balance by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the stock closing balance to update.
Body parameters
Returns
Returns the updated stock closing balance object.
curl https://api.overplane.dev/api/stock/stock-closing-balance/stock-closing-balance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"item_code":"item_code_example","warehouse":"warehouse_example"}' {
"id": "stock-closing-balance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"item_code": "item_code_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"posting_datetime": "2024-01-15",
"actual_qty": 0,
"valuation_rate": 0,
"stock_value": 0,
"company": "Example Corp",
"stock_uom": "stock_uom_example",
"stock_value_difference": 0,
"item_name": "item_name_example",
"item_group": "item_group_example",
"stock_closing_entry": "stock_closing_entry_example",
"inventory_dimension_key": "inventory_dimension_key_example",
"batch_no": "batch_no_example",
"fifo_queue": "fifo_queue_example"
} /api/stock/stock-closing-balance/{id} Delete a stock closing balance
Permanently deletes a stock closing balance. This cannot be undone.
Path parameters
The identifier of the stock closing balance to delete.
Returns
Returns a confirmation that the stock closing balance has been deleted.
curl https://api.overplane.dev/api/stock/stock-closing-balance/stock-closing-balance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "stock-closing-balance_abc123",
"deleted": true
}