The Material Request 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: {material_request_type}
Default: false
{
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} /api/stock/material-request/{id} Retrieve a material request
Retrieves the details of an existing material request. Supply the unique material request ID that was returned from a previous request.
Path parameters
The identifier of the material request to retrieve.
Returns
Returns the material request object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/material-request/material-request_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} /api/stock/material-request List all material requests
Returns a list of material requests. 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 material request objects.
curl https://api.overplane.dev/api/stock/material-request \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
}
],
"has_more": false,
"total": 1
} /api/stock/material-request Create a material request
Creates a new material request object.
Body parameters
Default: draft
Default: {material_request_type}
Default: false
Returns
Returns the newly created material request object if the call succeeded.
curl https://api.overplane.dev/api/stock/material-request \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"material_request_type":"material_request_type_example","company":"Example Corp","transaction_date":"2024-01-15"}' {
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} /api/stock/material-request/{id} Update a material request
Updates the specified material request by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the material request to update.
Body parameters
Default: draft
Default: {material_request_type}
Default: false
Returns
Returns the updated material request object.
curl https://api.overplane.dev/api/stock/material-request/material-request_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","title":"{material_request_type}"}' {
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} /api/stock/material-request/{id} Delete a material request
Permanently deletes a material request. This cannot be undone.
Path parameters
The identifier of the material request to delete.
Returns
Returns a confirmation that the material request has been deleted.
curl https://api.overplane.dev/api/stock/material-request/material-request_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "material-request_abc123",
"deleted": true
} /api/stock/material-request/{id}/submit Submit a material request
Submits a draft material request, transitioning its status from draft to submitted.
Path parameters
The identifier of the material request to act on.
Returns
Returns the material request object with updated status.
curl https://api.overplane.dev/api/stock/material-request/material-request_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} /api/stock/material-request/{id}/cancel Cancel a material request
Cancels a submitted material request, transitioning its status to cancelled.
Path parameters
The identifier of the material request to act on.
Returns
Returns the material request object with updated status.
curl https://api.overplane.dev/api/stock/material-request/material-request_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "material-request_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"title": "{material_request_type}",
"material_request_type": "material_request_type_example",
"customer": "customer_example",
"schedule_date": "2024-01-15",
"company": "Example Corp",
"scan_barcode": "scan_barcode_example",
"transaction_date": "2024-01-15",
"per_ordered": 0,
"per_received": 0,
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"job_card": "job_card_example",
"set_warehouse": "set_warehouse_example",
"set_from_warehouse": "set_from_warehouse_example",
"transfer_status": "transfer_status_example",
"work_order": "work_order_example",
"buying_price_list": "buying_price_list_example",
"auto_created_via_reorder": false
} Line items
Child objects that belong to this material request. These are accessed via the parent's ID.
Material Request Item
Attributes
Endpoints
/api/stock/material-request-item?parent_id={id} /api/stock/material-request-item /api/stock/material-request-item/{id} /api/stock/material-request-item/{id} /api/stock/material-request-item/reorder {
"id": "material-request-item_abc123",
"idx": 1,
"material_request_id": "material_request_id_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"image": "image_example",
"qty": 0,
"uom": "uom_example",
"conversion_factor": 0,
"stock_uom": "stock_uom_example",
"warehouse": "warehouse_example",
"schedule_date": "2024-01-15",
"rate": 0,
"amount": 0,
"stock_qty": 0,
"item_group": "item_group_example",
"brand": "brand_example",
"lead_time_date": "2024-01-15",
"sales_order": "sales_order_example",
"sales_order_item": "sales_order_item_example",
"project": "project_example",
"production_plan": "production_plan_example",
"material_request_plan_item": "material_request_plan_item_example",
"min_order_qty": 0,
"projected_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"expense_account": "expense_account_example",
"cost_center": "cost_center_example",
"page_break": false,
"received_qty": 0,
"manufacturer": "manufacturer_example",
"manufacturer_part_no": "manufacturer_part_no_example",
"from_warehouse": "from_warehouse_example",
"bom_no": "bom_no_example",
"job_card_item": "job_card_item_example",
"wip_composite_asset": "wip_composite_asset_example",
"price_list_rate": 0,
"reorder_level": 0,
"reorder_qty": 0,
"projected_on_hand": 0,
"picked_qty": 0,
"transferred_qty": 0,
"packed_item": "packed_item_example"
}