By means of this API you can create services within a WO in Fracttal, this type of services can be cataloged or not cataloged.
Input parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| catalogued | Boolean | Yes | True to insert a cataloged resource, false otherwise. False, default value. | 
| type | Number | Yes | 
 | 
| wo_folio | Text | Yes | WO identifier within Fracttal. | 
|  id_work_order_task  | Integer | Yes | Id of the task associated to the WO. It should not be added when sending the code or barcode. | 
| code | Text | Yes | Code of the asset associated to the WO. Not to be added when sending the id_work_order_task or barcode. | 
| qty | Number | Yes | Quantity. | 
| unit_cost | Number | Yes | Unit cost. | 
| description | Text | Yes | Description of the service. | 
| tr_description | Text | Optional | Name of the third party that will provide the service. | 
| code_account | Text | Yes | Must be sent when a cataloged resource is inserted. | 
Example:
Request: (POST)https://app.fracttal.com/api/wo_resources/OTPRB9742019
{
    "catalogued":true,
    "type": 3,
    "code":"LFR-001",
    "qty":3,  
    "unit_cost":190,
    "description": "SERVICIO DE MANTENIMIENTO FILTROS",  
    "tr_description": "ANELMAR",
    "code_account":"JCDIAZ"
}{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "SERVICES",
        "description": "SERVICIO DE MANTENIMIENTO FILTROS",
        "code": "",
        "units_description": "Hora",
        "units_code": "",
        "qty": 3,
        "unit_cost": 190,
        "total_cost": 570
    },
    "total": 1
}Test It
