The Serial And Batch Entry object
Attributes
Unique identifier for the object.
Default: 1
Default: false
Default: 0
Default: false
{
"id": "serial-and-batch-entry_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"qty": 1,
"warehouse": "warehouse_example",
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_value_difference": 0,
"is_outward": false,
"stock_queue": "stock_queue_example",
"delivered_qty": 0,
"reference_for_reservation": "reference_for_reservation_example",
"posting_datetime": "2024-01-15",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"type_of_transaction": "type_of_transaction_example",
"is_cancelled": false,
"item_code": "item_code_example"
} /api/stock/serial-and-batch-entry?parent_id={id} List serial and batch entrys by parent
Returns all serial and batch entrys belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of serial and batch entry objects belonging to the parent.
curl https://api.overplane.dev/api/stock/serial-and-batch-entry?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "serial-and-batch-entry_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"qty": 1,
"warehouse": "warehouse_example",
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_value_difference": 0,
"is_outward": false,
"stock_queue": "stock_queue_example",
"delivered_qty": 0,
"reference_for_reservation": "reference_for_reservation_example",
"posting_datetime": "2024-01-15",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"type_of_transaction": "type_of_transaction_example",
"is_cancelled": false,
"item_code": "item_code_example"
}
],
"has_more": false,
"total": 1
} /api/stock/serial-and-batch-entry Create a serial and batch entry
Creates a new serial and batch entry object.
Body parameters
Default: 1
Default: false
Default: 0
Default: false
Returns
Returns the newly created serial and batch entry object if the call succeeded.
curl https://api.overplane.dev/api/stock/serial-and-batch-entry \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example"}' {
"id": "serial-and-batch-entry_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"qty": 1,
"warehouse": "warehouse_example",
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_value_difference": 0,
"is_outward": false,
"stock_queue": "stock_queue_example",
"delivered_qty": 0,
"reference_for_reservation": "reference_for_reservation_example",
"posting_datetime": "2024-01-15",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"type_of_transaction": "type_of_transaction_example",
"is_cancelled": false,
"item_code": "item_code_example"
} /api/stock/serial-and-batch-entry/{id} Update a serial and batch entry
Updates the specified serial and batch entry by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the serial and batch entry to update.
Body parameters
Default: 1
Default: false
Default: 0
Default: false
Returns
Returns the updated serial and batch entry object.
curl https://api.overplane.dev/api/stock/serial-and-batch-entry/serial-and-batch-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "serial-and-batch-entry_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"qty": 1,
"warehouse": "warehouse_example",
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_value_difference": 0,
"is_outward": false,
"stock_queue": "stock_queue_example",
"delivered_qty": 0,
"reference_for_reservation": "reference_for_reservation_example",
"posting_datetime": "2024-01-15",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"type_of_transaction": "type_of_transaction_example",
"is_cancelled": false,
"item_code": "item_code_example"
} /api/stock/serial-and-batch-entry/{id} Delete a serial and batch entry
Permanently deletes a serial and batch entry. This cannot be undone.
Path parameters
The identifier of the serial and batch entry to delete.
Returns
Returns a confirmation that the serial and batch entry has been deleted.
curl https://api.overplane.dev/api/stock/serial-and-batch-entry/serial-and-batch-entry_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "serial-and-batch-entry_abc123",
"deleted": true
} /api/stock/serial-and-batch-entry/reorder Reorder serial and batch entrys
Updates the sort order of serial and batch entrys within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/stock/serial-and-batch-entry/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "serial-and-batch-entry_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"serial_no": "serial_no_example",
"batch_no": "batch_no_example",
"qty": 1,
"warehouse": "warehouse_example",
"incoming_rate": 0,
"outgoing_rate": 0,
"stock_value_difference": 0,
"is_outward": false,
"stock_queue": "stock_queue_example",
"delivered_qty": 0,
"reference_for_reservation": "reference_for_reservation_example",
"posting_datetime": "2024-01-15",
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"voucher_detail_no": "voucher_detail_no_example",
"type_of_transaction": "type_of_transaction_example",
"is_cancelled": false,
"item_code": "item_code_example"
}