The Serial And Batch Bundle 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: false
Default: false
Default: false
Default: false
{
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
} /api/stock/serial-and-batch-bundle/{id} Retrieve a serial and batch bundle
Retrieves the details of an existing serial and batch bundle. Supply the unique serial and batch bundle ID that was returned from a previous request.
Path parameters
The identifier of the serial and batch bundle to retrieve.
Returns
Returns the serial and batch bundle object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle/serial-and-batch-bundle_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
} /api/stock/serial-and-batch-bundle List all serial and batch bundles
Returns a list of serial and batch bundles. 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 serial and batch bundle objects.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
}
],
"has_more": false,
"total": 1
} /api/stock/serial-and-batch-bundle Create a serial and batch bundle
Creates a new serial and batch bundle object.
Body parameters
Default: draft
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created serial and batch bundle object if the call succeeded.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","item_code":"item_code_example","voucher_type":"voucher_type_example","type_of_transaction":"type_of_transaction_example"}' {
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
} /api/stock/serial-and-batch-bundle/{id} Update a serial and batch bundle
Updates the specified serial and batch bundle 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 bundle to update.
Body parameters
Default: draft
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated serial and batch bundle object.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle/serial-and-batch-bundle_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
} /api/stock/serial-and-batch-bundle/{id} Delete a serial and batch bundle
Permanently deletes a serial and batch bundle. This cannot be undone.
Path parameters
The identifier of the serial and batch bundle to delete.
Returns
Returns a confirmation that the serial and batch bundle has been deleted.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle/serial-and-batch-bundle_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "serial-and-batch-bundle_abc123",
"deleted": true
} /api/stock/serial-and-batch-bundle/{id}/submit Submit a serial and batch bundle
Submits a draft serial and batch bundle, transitioning its status from draft to submitted.
Path parameters
The identifier of the serial and batch bundle to act on.
Returns
Returns the serial and batch bundle object with updated status.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle/serial-and-batch-bundle_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
} /api/stock/serial-and-batch-bundle/{id}/cancel Cancel a serial and batch bundle
Cancels a submitted serial and batch bundle, transitioning its status to cancelled.
Path parameters
The identifier of the serial and batch bundle to act on.
Returns
Returns the serial and batch bundle object with updated status.
curl https://api.overplane.dev/api/stock/serial-and-batch-bundle/serial-and-batch-bundle_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "serial-and-batch-bundle_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"item_group": "item_group_example",
"has_serial_no": false,
"item_code": "item_code_example",
"item_name": "item_name_example",
"has_batch_no": false,
"voucher_type": "voucher_type_example",
"voucher_no": "voucher_no_example",
"is_cancelled": false,
"avg_rate": 0,
"total_amount": 0,
"total_qty": 0,
"warehouse": "warehouse_example",
"type_of_transaction": "type_of_transaction_example",
"is_rejected": false,
"voucher_detail_no": "voucher_detail_no_example",
"returned_against": "returned_against_example",
"is_packed": false,
"posting_datetime": "2024-01-15"
}