POST
/
v1
/
work_order_line_items
curl --location --request POST 'https://api.stateset.com/v1/work_order_line_item' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "current_token": ""
}'
{
  {
    "data": {
      "insert_work_order_line_items": {
        "returning": [
          {
            "id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30",
            "line_status": "In Progress",
            "line_type": "Part",
            "part_name": "Part 1",
            "part_number": "123456",
            "total_quantity": 10,
            "unit_quantity": 1,
            "work_order_number": "WO-0001"
          }
        ]
      }
    }
  }
}

Body

id
string

This is the unique identifier of the work order line item.

line_status
string

This is the status or state of the work order line item.

line_type
string

This is the type or category of the work order line item.

part_name
string

This is the name of the part or item included in the work order line item.

part_number
string

This is the number or code associated with the part or item included in the work order line item.

total_quantity
number

This is the total quantity of the part or item required or used in the work order line item.

unit_quantity
number

This is the quantity of the part or item required or used per unit in the work order line item.

work_order_number
string

This is the number associated with the work order to which the line item belongs.

Response

id
string

This is the unique identifier of the work order line item.

line_status
string

This is the status or state of the work order line item.

line_type
string

This is the type or category of the work order line item.

part_name
string

This is the name of the part or item included in the work order line item.

part_number
string

This is the number or code associated with the part or item included in the work order line item.

total_quantity
number

This is the total quantity of the part or item required or used in the work order line item.

unit_quantity
number

This is the quantity of the part or item required or used per unit in the work order line item.

work_order_number
string

This is the number associated with the work order to which the line item belongs.

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