Fracttal →

Create cataloged inventory-type resources in a WO

By means of this API it is possible to insert within a WO resources in the following way:

-Cataloged: of type inventory, human resources and services -Non-cataloged: of type inventory and services.

Input parameters

ParámetroTipoRequeridoDescripción
cataloguedBooleanYesTrue to insert a cataloged resource, false otherwise. False, default value.
typeNumberYesType of resource to be inserted: 1 : For inventory type resources 2 : For human resources 3 : For service type resources.
codeTextYesCode of the asset associated to the WO. Not to be added when sending the id_work_order_task or barcode.
code_resourceTextYesCode of the cataloged resource to be inserted (only for inventory type cataloged resources).
code_warehouseTextYesCode of the warehouse from where the resource is needed (only for resources catalogued as inventory type).
qtyNumberYesQuantity.
unit_costNumberYesUnit cost.
code_accountTextYesMust be sent when a cataloged resource is inserted.

Catalogued Resource - Inventory

Request: (POST) https://app.fracttal.com/api/wo_resources/OTPRB9742019

{
    "catalogued":true,
    "type": 1,
    "code":"LFR-001",
    "qty":3,  
    "unit_cost":100,
    "code_resource": "MRX-EN-003",  
    "code_warehouse": "MRX-005",
    "code_account":"JCDIAZ"    
}
{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "INVENTORY",
        "description": "000 HERRAMIENTA PARA EXISTENCIA NEG MRX 3    { MRX-EN-003 }",
        "code": "MRX-EN-003",
        "units_description": "C/U                 ",
        "units_code": "C/U       ",
        "qty": 3,
        "unit_cost": 100,
        "total_cost": 300
    },
    "total": 1
}

Test It

Language