Cancel a work order

Through this API you can cancel a Work Order.

This web service is part of the ADVANCED APIS add-on.

:folio = Folio number or WO number to cancel

Input Parameters

ParameterTypeRequiredDescription
folioTextYesWO code
user_codeTextYesCode of the human resource that will update the WO in Fracttal
work_orders_status_cancelTextYesCancellation reason
noteTextYesNote indicating why the WO is being canceled
id_work_orderNumberNoWO ID. This ID is optional, only required when the folio is not specified

Output Parameters

ParameterTypeDescription
idNumberTask ID in the work order
id_group_taskNumberID of the task plan where the task from which information will be obtained is located
id_requestNumberRequest ID, if the task comes from a request
id_item_logNumberID of the item log associated with the task
id_task_logNumberInternal ID of the task log
id_tasks_todoNumberInternal ID of pending tasks
id_task_triggerNumberInternal ID of the task trigger
id_taskNumberID of the task from which information will be obtained to create the WO
id_itemNumberAsset ID
id_items_availabilityNumberOut-of-service record ID
items_log_descriptionTextAsset description
task_descriptionTextTask description

Example

Request: (PUT) https://app.fracttal.com/api/work_order_cancel?folio=OT-1896

{
    "user_code": "AQOP1521",
    "work_orders_status_cancel": "Error in WO generation",
    "note": "Duplicate WO"
}
{
    "success": true,
    "message": "200",
    "data": {
        "id": 16954494,
        "id_group_task": null,
        "id_request": null,
        "id_item_log": 3696049,
        "id_task_log": 5683844,
        "id_tasks_todo": 16740135,
        "id_task_trigger": null,
        "id_task": 5911238,
        "id_item": 1,
        "id_items_availability": null,
        "items_log_description": "{ CORP-256 } MANUFACTURING SECTOR COMPANY INTERNATIONAL AVENUE ",
        "task_description": "Duplicate WO"
    },
    "total": 1
}
Language