API Endpoints
Fracttal →

Create no 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.

id = Id/wo_folio of the work order

Input parameters

ParameterTypeRequiredDescription
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.
qtyNumberYesQuantity.
unit_costNumberYesUnit cost.
descriptionTextYesDescription of the resource or service (Only for non-cataloged resources and for cataloged service-type resources).
external_sourceTextOptionalExternal source (Only for non-catalogued resources).

Example:

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

{
    "type": 1,
    "code":"LFR-001",
    "qty":3,  
    "unit_cost":240,
    "description": "INVENTARIO NO CATALOGADO",  
    "external_source": "ALMACEN NO CATALOGADO"
        
}
{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "INVENTORY",
        "description": "INVENTARIO NO CATALOGADO",
        "code": null,
        "units_description": null,
        "units_code": null,
        "qty": 3,
        "unit_cost": 240,
        "total_cost": 720
    },
    "total": 1
}

Test It

Language