API Endpoints
Fracttal →

Query budget

id = The id of the budget if you want to filter by a particular budget.

Input parameters

ParameterTypeRequiredDescription
idTextOptionalBudget Id
wo_folioTextOptionalTO ID (If the budget ID is sent, the TO ID will not be taken into account and vice versa).
sinceTextOptionalInitial date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03′. (Default is 30 days before)
untilTextOptionalEnd date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03′. (Defaults to the current date.
type_dateTextOptionalType of date to make the query. It can be:

ValueDescription
creation_dateDate of creation of the TO (Default value)
initial_date
Date of creation of the TO (Default value). Initial date of the task
final_dateEnd date of the task
approval_dateApproval date
.
startIntegerOptionalNumber of records from which you want to start the query. All queries are limited to 100 records, when there are more than that amount you must use this parameter for pagination.
limitIntegerOptionalFinal record number to be returned by the query.

Output parameters

ParamterTypeDescription
folioTextBudget Id
referenceTextBudget reference
noteIntegerBudget notes
exchange_valueIntegerExchange value
id_priorityIntegerBudget Priority 1: Very High 2: High 3: Medium 4: Low 5: Very Low
date_createDateBudget creation date
statusTextBudget status 1: Pending approval 2: Approved 3: Rejected
approved_byTextApproved by
note_statusTextNotes to the budget status change
discountRealDiscount
id_currencyIntegerCoin ID
created_byTextCreated by
third_parties_nameTextName of the third party associated with the budget
third_parties_codeTextCode of the third party associated with the budget
third_parties_addressTextAddress of the third party associated with the budget
third_parties_emailTextTrue if the asset is stopped and False if the asset is NOT stopped.
third_parties_cityIntegerAsset stop time (seconds)
third_parties_countryTextType of task
third_parties_telephone_1TextLocation of the asset
third_parties_telephone_2TextSum of hours of human resources used
costs_center_descriptionTextActivator Type
items_descriptionTextName of the WO asset that is associated with the budget
items_groups_descriptionTextType of asset
items_groups_1_descriptionTextAsset classification 1
items_groups_2_descriptionIntegerAsset classification 2
conditions_descriptionTextDescription of conditions
currency_descriptionTextDescription of the coin
symbolTextCurrency symbol
wo_folioTextNumber of WO to which the budget is associated
id_status_work_orderText1: WO in Process 2: WO in Review
final_dateText3: WO terminated 4: WO cancelled WO end date
user_assignedTextUser assigned to the WO
list_itemsjsonList of assets that are associated with the budget
approval_dateDateBudget approval date

Example:

Request: (GET) https://app.fracttal.com/api/wo_budget/22

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 22,
            "id_company": 69,
            "id_work_order": 1243,
            "id_third_parties_log": 16,
            "id_cost_center": 2,
            "folio": "22",
            "id_currency": 4,
            "exchange_value": 1,
            "reference": "Referencia",
            "id_priority": 1,
            "note": "Notas",
            "id_item_log": 170,
            "date_create": "2019-05-07T14:15:24.607382+00:00",
            "id_condition": 1,
            "status": 1,
            "approved_by": null,
            "note_status": null,
            "discount": 0,
            "created_by": "Laura Marcela Peña Jaramillo",
            "third_parties_name": "Fracttal SPA - Tercero",
            "third_parties_code": "Fttl_Tre02",
            "third_parties_address": "San Pio X",
            "third_parties_email": "[email protected]",
            "third_parties_city": "Providencia",
            "third_parties_country": "Chile",
            "third_parties_telephone_1": "555-555-55",
            "third_parties_telephone_2": null,
            "costs_center_description": "Materiales",
            "items_description": "Edificio prinicipal San pio X Santiago 000000 Región Metropolitana Chile { 7543 }",
            "items_groups_description": "Tipo 1",
            "items_groups_1_description": null,
            "items_groups_2_description": null,
            "conditions_description": "30 días",
            "currency_description": "Peso Colombiano",
            "symbol": "$",
            "wo_folio": "1279",
            "id_status_work_order": 1,
            "final_date": null,
            "user_assigned": "Carlos Jaramillo",
            "parent_description": "// Edificio prinicipal/ ",
            "list_items": [
                {
                    "id_company": 69,
                    "type_resource": 1,
                    "qty": 5,
                    "unit_cost_company": 54000,
                    "total_cost_company": 270000,
                    "unit_cost": 54000,
                    "total_cost": 270000,
                    "id_taxes": 1,
                    "hrl_description": null,
                    "items_log_description": "O-RING 24,2X3 BOMBA TRIDO 45 H (ATLASCOPCO 0663 2127-00)  -Diamec 232    { 200426 }",
                    "stl_description": null
                }
            ],
            "approval_date": null
        }
    ],
    "total": 1
}

Test It

Language