Create no cataloged service-type resources in a WO

By means of this API it is possible to insert within a TO 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

Parameter

Type

Required

Description

type

Number

Yes

Type of resource to be inserted: 1 : For inventory type resources 2 : For human resources 3 : For service type resources

code

Text

Yes

Code of the asset associated to the WO. Not to be added when sending the id_work_order_task

qty

Number

Yes

Quantity

unit_cost

Number

Yes

Unit cost

description

Text

Yes

Description of the resource or service (Only for non-catalogued resources and for catalogued service type resources)

external_source

Text

Optional

External source (Only for non-catalogued resources)

Example:

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

{
    "type": 3,
    "code":"LFR-001",
    "qty":2,  
    "unit_cost":240,
    "description": "SERVICIO NO CATALOGADO",  
    "external_source": "PROVEEDOR NO CATALOGADO"        
}
{
    "success": true,
    "message": "200",
    "data": {
        "type_description": "SERVICES",
        "description": "SERVICIO NO CATALOGADO",
        "code": "",
        "units_description": null,
        "units_code": "",
        "qty": 2,
        "unit_cost": 240,
        "total_cost": 480
    },
    "total": 1
}

Test It

Language