The Quality Inspection 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: user
Default: false
{
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} /api/stock/quality-inspection/{id} Retrieve a quality inspection
Retrieves the details of an existing quality inspection. Supply the unique quality inspection ID that was returned from a previous request.
Path parameters
The identifier of the quality inspection to retrieve.
Returns
Returns the quality inspection object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/quality-inspection/quality-inspection_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} /api/stock/quality-inspection List all quality inspections
Returns a list of quality inspections. 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 quality inspection objects.
curl https://api.overplane.dev/api/stock/quality-inspection \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
}
],
"has_more": false,
"total": 1
} /api/stock/quality-inspection Create a quality inspection
Creates a new quality inspection object.
Body parameters
Default: draft
Default: user
Default: false
Returns
Returns the newly created quality inspection object if the call succeeded.
curl https://api.overplane.dev/api/stock/quality-inspection \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"report_date":"2024-01-15","inspection_type":"inspection_type_example","reference_type":"reference_type_example","reference_name":"reference_name_example","item_code":"item_code_example","sample_size":0}' {
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} /api/stock/quality-inspection/{id} Update a quality inspection
Updates the specified quality inspection by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the quality inspection to update.
Body parameters
Default: draft
Default: user
Default: false
Returns
Returns the updated quality inspection object.
curl https://api.overplane.dev/api/stock/quality-inspection/quality-inspection_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","report_date":"2024-01-15"}' {
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} /api/stock/quality-inspection/{id} Delete a quality inspection
Permanently deletes a quality inspection. This cannot be undone.
Path parameters
The identifier of the quality inspection to delete.
Returns
Returns a confirmation that the quality inspection has been deleted.
curl https://api.overplane.dev/api/stock/quality-inspection/quality-inspection_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "quality-inspection_abc123",
"deleted": true
} /api/stock/quality-inspection/{id}/submit Submit a quality inspection
Submits a draft quality inspection, transitioning its status from draft to submitted.
Path parameters
The identifier of the quality inspection to act on.
Returns
Returns the quality inspection object with updated status.
curl https://api.overplane.dev/api/stock/quality-inspection/quality-inspection_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} /api/stock/quality-inspection/{id}/cancel Cancel a quality inspection
Cancels a submitted quality inspection, transitioning its status to cancelled.
Path parameters
The identifier of the quality inspection to act on.
Returns
Returns the quality inspection object with updated status.
curl https://api.overplane.dev/api/stock/quality-inspection/quality-inspection_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "quality-inspection_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"report_date": "2024-01-15",
"inspection_type": "inspection_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"item_code": "item_code_example",
"item_serial_no": "item_serial_no_example",
"batch_no": "batch_no_example",
"sample_size": 0,
"item_name": "item_name_example",
"description": "description_example",
"inspected_by": "user",
"verified_by": "verified_by_example",
"bom_no": "bom_no_example",
"remarks": "remarks_example",
"quality_inspection_template": "quality_inspection_template_example",
"manual_inspection": false,
"child_row_reference": "child_row_reference_example",
"company": "Example Corp",
"letter_head": "letter_head_example"
} Line items
Child objects that belong to this quality inspection. These are accessed via the parent's ID.
Quality Inspection Reading
Attributes
Endpoints
/api/stock/quality-inspection-reading?parent_id={id} /api/stock/quality-inspection-reading /api/stock/quality-inspection-reading/{id} /api/stock/quality-inspection-reading/{id} /api/stock/quality-inspection-reading/reorder {
"id": "quality-inspection-reading_abc123",
"idx": 1,
"quality_inspection_id": "quality_inspection_id_example",
"specification": "specification_example",
"value": "value_example",
"reading_1": "reading_1_example",
"reading_2": "reading_2_example",
"reading_3": "reading_3_example",
"reading_4": "reading_4_example",
"reading_5": "reading_5_example",
"reading_6": "reading_6_example",
"reading_7": "reading_7_example",
"reading_8": "reading_8_example",
"reading_9": "reading_9_example",
"reading_10": "reading_10_example",
"status": "Accepted",
"acceptance_formula": "acceptance_formula_example",
"formula_based_criteria": false,
"min_value": 0,
"max_value": 0,
"reading_value": "reading_value_example",
"manual_inspection": false,
"numeric": true,
"parameter_group": "parameter_group_example"
}