GET
/
v1
/
work_orders
/
:id
curl --location --request GET 'https://api.stateset.com/v1/work_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_123"

}'

{
  {
    "bill_of_materials_number": "123",
    "created_at": "2021-01-01T00:00:00.000Z",
    "created_by": "John Doe",
    "expected_completion_date": "2021-01-01T00:00:00.000Z",
    "id": "wo_123",
    "issue_date": "2021-01-01T00:00:00.000Z",
    "location": "123",
    "manufacture_order": "123",
    "memo": "123",
    "number": "123",
    "order_number": "123",
    "part": "123",
    "priority": "123",
    "site": "123",
    "status": "123",
    "updated_at": "2021-01-01T00:00:00.000Z",
    "work_order_line_items": [
      {
        "id": "wo_123",
        "line_status": "123",
        "line_type": "123",
        "part_name": "123",
        "part_number": "123",
        "total_quantity": "123",
        "unit_quantity": "123",
        "work_order_number": "123"
      }
    ]
  }
}

Body

id
string
required
This is the id of the work order.

Response

id
uuid
Unique identifier for the work order (primary key)
number
integer
Number associated with the work order
site
string
Site or location where the work order is being executed
work_order_type
string
Type of the work order
location
string
Location or site where the work order is applicable
part
string
Part or item associated with the work order
order_number
string
Identifier or reference to the order associated with the work order
manufacture_order
string
Identifier or reference to the manufacturing order associated with the work order
status
string
Current status or state of the work order
created_by
string
Name or identifier of the person who created the work order
created_at
string
Date and time when the work order was created
updated_at
string
Date and time when the work order was last updated
issue_date
string
Date when the work order was issued
expected_completion_date
string
Expected completion date for the work order
priority
string
Priority level or urgency of the work order
memo
string
Memo or additional notes related to the work order
bill_of_materials_number
integer
Number associated with the bill of materials related to the work order
actual_labor_hours
number
Actual labor hours spent on the work order
standard_labor_hours
number
Standard labor hours for the work order
capacity_utilization_id
uuid
Identifier for related capacity utilization data
bill_of_materials_id
uuid
Identifier for related bill of materials
cogs_data_id
uuid
Identifier for related COGS (Cost of Goods Sold) data
work_order_line_items
string
curl --location --request GET 'https://api.stateset.com/v1/work_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_123"

}'

{
  {
    "bill_of_materials_number": "123",
    "created_at": "2021-01-01T00:00:00.000Z",
    "created_by": "John Doe",
    "expected_completion_date": "2021-01-01T00:00:00.000Z",
    "id": "wo_123",
    "issue_date": "2021-01-01T00:00:00.000Z",
    "location": "123",
    "manufacture_order": "123",
    "memo": "123",
    "number": "123",
    "order_number": "123",
    "part": "123",
    "priority": "123",
    "site": "123",
    "status": "123",
    "updated_at": "2021-01-01T00:00:00.000Z",
    "work_order_line_items": [
      {
        "id": "wo_123",
        "line_status": "123",
        "line_type": "123",
        "part_name": "123",
        "part_number": "123",
        "total_quantity": "123",
        "unit_quantity": "123",
        "work_order_number": "123"
      }
    ]
  }
}

Work Order

NameTypeDescription
bill_of_materials_numberTextNumber associated with the bill of materials related to the work order
created_atDate/TimeDate and time when the work order was created
created_byTextName or identifier of the person who created the work order
expected_completion_dateDateExpected completion date for the work order
idTextUnique identifier for the work order
issue_dateDateDate when the work order was issued
locationTextLocation or site where the work order is applicable
manufacture_orderTextIdentifier or reference to the manufacturing order associated with the work order
memoTextMemo or additional notes related to the work order
numberTextNumber associated with the work order
order_numberTextIdentifier or reference to the order associated with the work order
partTextPart or item associated with the work order
priorityTextPriority level or urgency of the work order
siteTextSite or location where the work order is being executed
statusTextCurrent status or state of the work order
updated_atDate/TimeDate and time when the work order was last updated

Work Order Line Items

NameTypeDescription
idTextUnique identifier for the line item
line_statusTextStatus or state of the line item
line_typeTextType or category of the line item
part_nameTextName of the part or item included in the line item
part_numberTextNumber or code associated with the part or item
total_quantityNumericTotal quantity of the part or item required or used in the work order
unit_quantityNumericQuantity of the part or item required or used per unit in the work order
work_order_numberTextNumber associated with the work order to which the line item belongs