Delete Work Order

Deletes a work order. This endpoint will permanently remove the work order from the Field Nation Platform Flightboard. You can use the body parameters to send a cancellation message to Field Nation support and the work order provider (if applicable).

URLs

Environment Method URL
Sandbox https://api-sandbox.fndev.net/api/rest/v2/workorders/work_order_id
Production https://api.fieldnation.com/api/rest/v2/workorders/work_order_id

Path Parameters

Parameter Type Example Notes
work_order_id integer 1731 Work Order ID.

Query Parameters

Parameter Type Example Notes
access_token string abc123defg459hijk786lmn45 Required.
async boolean &async=true Optional. Make an asynchronous request.

Body Parameters

Parameter/Type Example Mapping/Notes
notes
string
"notes":"message to field nation support" Enter a message for support (if applicable).
cancel_reason
integer
"cancel_reason":58 Required.
Options
message_to_provider
string
"message_to_provider":"message to assigned provider" Enter a message for the work order provider (if applicable).
cancel_request_not_charge
boolean
"cancel_request_not_charge":false
apply_passive_cancellation_fee
boolean
"apply_passive_cancellation_fee":false

Examples

Customer cancelled.


{
   "notes":"message to field nation support",
   "cancel_reason":58,
   "message_to_provider":"message to assigned provider",
   "cancel_request_not_charge":false,
   "apply_passive_cancellation_fee":false
}

Response

This endpoint returns the Work Order Object.

Errors

Standard HTTP and OAuth error codes.

Examples

400 Bad Request
403 Forbidden