The Stock Ledger Entry 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: draft
Default: false
Default: true
Default: false
Default: false
Default: false
Default: false
Default: false
{
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
} /api/stock/stock-ledger-entry/{id} Retrieve a stock ledger entry
Retrieves the details of an existing stock ledger entry. Supply the unique stock ledger entry ID that was returned from a previous request.
Path parameters
The identifier of the stock ledger entry to retrieve.
Returns
Returns the stock ledger entry object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/stock-ledger-entry/stock-ledger-entry_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
} /api/stock/stock-ledger-entry List all stock ledger entrys
Returns a list of stock ledger entrys. 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 ledger entry objects.
curl https://api.overplane.dev/api/stock/stock-ledger-entry \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
}
],
"has_more": false,
"total": 1
} /api/stock/stock-ledger-entry Create a stock ledger entry
Creates a new stock ledger entry object.
Body parameters
Default: draft
Default: false
Default: true
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created stock ledger entry object if the call succeeded.
curl https://api.overplane.dev/api/stock/stock-ledger-entry \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
} /api/stock/stock-ledger-entry/{id} Update a stock ledger entry
Updates the specified stock ledger entry by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the stock ledger entry to update.
Body parameters
Default: draft
Default: false
Default: true
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated stock ledger entry object.
curl https://api.overplane.dev/api/stock/stock-ledger-entry/stock-ledger-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","item_code":"item_code_example"}' {
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
} /api/stock/stock-ledger-entry/{id} Delete a stock ledger entry
Permanently deletes a stock ledger entry. This cannot be undone.
Path parameters
The identifier of the stock ledger entry to delete.
Returns
Returns a confirmation that the stock ledger entry has been deleted.
curl https://api.overplane.dev/api/stock/stock-ledger-entry/stock-ledger-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "stock-ledger-entry_abc123",
"deleted": true
} /api/stock/stock-ledger-entry/{id}/submit Submit a stock ledger entry
Submits a draft stock ledger entry, transitioning its status from draft to submitted.
Path parameters
The identifier of the stock ledger entry to act on.
Returns
Returns the stock ledger entry object with updated status.
curl https://api.overplane.dev/api/stock/stock-ledger-entry/stock-ledger-entry_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
} /api/stock/stock-ledger-entry/{id}/cancel Cancel a stock ledger entry
Cancels a submitted stock ledger entry, transitioning its status to cancelled.
Path parameters
The identifier of the stock ledger entry to act on.
Returns
Returns the stock ledger entry object with updated status.
curl https://api.overplane.dev/api/stock/stock-ledger-entry/stock-ledger-entry_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "stock-ledger-entry_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"item_code": "item_code_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"warehouse": "warehouse_example",
"posting_date": "2024-01-15",
"posting_time": "posting_time_example",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"actual_qty": 0,
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_uom": "stock_uom_example",
"qty_after_transaction": 0,
"valuation_rate": 0,
"stock_value": 0,
"stock_value_difference": 0,
"stock_queue": "stock_queue_example",
"project": "project_example",
"company": "Example Corp",
"fiscal_year": "fiscal_year_example",
"is_cancelled": false,
"to_rename": true,
"dependant_sle_voucher_detail_no": "dependant_sle_voucher_detail_no_example",
"recalculate_rate": false,
"serial_and_batch_bundle": "serial_and_batch_bundle_example",
"has_batch_no": false,
"has_serial_no": false,
"is_adjustment_entry": false,
"auto_created_serial_and_batch_bundle": false,
"posting_datetime": "2024-01-15"
}