Fracttal →

Create cataloged services-type resources in a WO

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

ParameterTypeRequiredDescription
cataloguedBooleanYesTrue to insert a cataloged resource, false otherwise. False, default value.
typeNumberYes3. The number 3 must be sent to create resources of type services.
wo_folioTextYesWO identifier within Fracttal.
id_work_order_task IntegerYesId of the task associated to the WO. It should not be added when sending the code or barcode.
codeTextYesCode of the asset associated to the WO. Not to be added when sending the id_work_order_task or barcode.
qtyNumberYesQuantity.
unit_costNumberYesUnit cost.
descriptionTextYesDescription of the service.
tr_descriptionTextOptionalName of the third party that will provide the service.
code_accountTextYesMust 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

Language