latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Work Orders

Create new cost on a work order

post/workorders/{id}/costs

Path parameters

idinteger required

Global ID of the work order

Query parameters

skipWebhookboolean

Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks

Request body

OR

Response

Successfully created the cost

type'EXPENSE' | 'PART' | 'TIME'

Type of the entry

costPerUnitnumber nullable

Cost per part in cents or cents per hour

descriptionstring nullable

Description of the expense or part description

quantitynumber

Number of parts or number of hours

rowTotalnumber

Total cost in cents

durationTotalnumber

Total duration in seconds

userIdinteger nullable

ID of the user who logged the time entry

partIdinteger nullable

ID of the part used in this cost entry

totalnumber required

Total cost in cents of the Work order

idnumber required

Created cost Id