The Serial No 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": "serial-no_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"item_group": "item_group_example",
"brand": "brand_example",
"asset": "asset_example",
"asset_status": "asset_status_example",
"location": "location_example",
"employee": "employee_example",
"maintenance_status": "maintenance_status_example",
"warranty_period": 0,
"warranty_expiry_date": "2024-01-15",
"amc_expiry_date": "2024-01-15",
"company": "Example Corp",
"work_order": "work_order_example",
"warehouse": "warehouse_example",
"batch_no": "batch_no_example",
"purchase_rate": 0,
"status": "draft",
"customer": "customer_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"posting_date": "2024-01-15"
} /api/stock/serial-no/{id} Retrieve a serial no
Retrieves the details of an existing serial no. Supply the unique serial no ID that was returned from a previous request.
Path parameters
The identifier of the serial no to retrieve.
Returns
Returns the serial no object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/serial-no/serial-no_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "serial-no_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"item_group": "item_group_example",
"brand": "brand_example",
"asset": "asset_example",
"asset_status": "asset_status_example",
"location": "location_example",
"employee": "employee_example",
"maintenance_status": "maintenance_status_example",
"warranty_period": 0,
"warranty_expiry_date": "2024-01-15",
"amc_expiry_date": "2024-01-15",
"company": "Example Corp",
"work_order": "work_order_example",
"warehouse": "warehouse_example",
"batch_no": "batch_no_example",
"purchase_rate": 0,
"status": "draft",
"customer": "customer_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"posting_date": "2024-01-15"
} /api/stock/serial-no List all serial nos
Returns a list of serial nos. 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 no objects.
curl https://api.overplane.dev/api/stock/serial-no \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "serial-no_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"item_group": "item_group_example",
"brand": "brand_example",
"asset": "asset_example",
"asset_status": "asset_status_example",
"location": "location_example",
"employee": "employee_example",
"maintenance_status": "maintenance_status_example",
"warranty_period": 0,
"warranty_expiry_date": "2024-01-15",
"amc_expiry_date": "2024-01-15",
"company": "Example Corp",
"work_order": "work_order_example",
"warehouse": "warehouse_example",
"batch_no": "batch_no_example",
"purchase_rate": 0,
"status": "draft",
"customer": "customer_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"posting_date": "2024-01-15"
}
],
"has_more": false,
"total": 1
} /api/stock/serial-no Create a serial no
Creates a new serial no object.
Body parameters
Returns
Returns the newly created serial no object if the call succeeded.
curl https://api.overplane.dev/api/stock/serial-no \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"serial_no":"serial_no_example","item_code":"item_code_example","company":"Example Corp"}' {
"id": "serial-no_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"item_group": "item_group_example",
"brand": "brand_example",
"asset": "asset_example",
"asset_status": "asset_status_example",
"location": "location_example",
"employee": "employee_example",
"maintenance_status": "maintenance_status_example",
"warranty_period": 0,
"warranty_expiry_date": "2024-01-15",
"amc_expiry_date": "2024-01-15",
"company": "Example Corp",
"work_order": "work_order_example",
"warehouse": "warehouse_example",
"batch_no": "batch_no_example",
"purchase_rate": 0,
"status": "draft",
"customer": "customer_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"posting_date": "2024-01-15"
} /api/stock/serial-no/{id} Update a serial no
Updates the specified serial no by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the serial no to update.
Body parameters
Returns
Returns the updated serial no object.
curl https://api.overplane.dev/api/stock/serial-no/serial-no_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"serial_no":"serial_no_example","item_code":"item_code_example"}' {
"id": "serial-no_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"serial_no": "serial_no_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"item_group": "item_group_example",
"brand": "brand_example",
"asset": "asset_example",
"asset_status": "asset_status_example",
"location": "location_example",
"employee": "employee_example",
"maintenance_status": "maintenance_status_example",
"warranty_period": 0,
"warranty_expiry_date": "2024-01-15",
"amc_expiry_date": "2024-01-15",
"company": "Example Corp",
"work_order": "work_order_example",
"warehouse": "warehouse_example",
"batch_no": "batch_no_example",
"purchase_rate": 0,
"status": "draft",
"customer": "customer_example",
"reference_doctype": "reference_doctype_example",
"reference_name": "reference_name_example",
"posting_date": "2024-01-15"
} /api/stock/serial-no/{id} Delete a serial no
Permanently deletes a serial no. This cannot be undone.
Path parameters
The identifier of the serial no to delete.
Returns
Returns a confirmation that the serial no has been deleted.
curl https://api.overplane.dev/api/stock/serial-no/serial-no_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "serial-no_abc123",
"deleted": true
}