Query material request

This EndPoint can be used to query information on all material requests or a specific one.

Input parameters

Parameter

Type

Required

Description

id

Integer

Optional

Material request ID. It is the id field from this same endpoint

code

Text

Optional

Warehouse code.

Can be consulted here.

(field code)

warehouse_id

Integer

Optional

Warehouse ID.

Can be consulted here.

(field id_warehouse)

since

Text

Optional

Initial date of the query. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'.

until

Text

Optional

End date of the query. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'.

start

Integer

Optional

Record number from which to start the query. All queries are limited to 100 records, when there are more than that amount this parameter must be used for pagination.

limit

Integer

Optional

Number of records that the request will display. The default value is 100.

Output parameters

ParameterTypeDescription
idIntegerMovement ID
id_companyIntegerCompany ID
id_warehouse_targetIntegerWarehouse ID
warehouse_codeTextWarehouse code
warehouses_descriptionTextDescription of the warehouse
folio_targetTextRequisition sequence in the warehouse
date_deliveryDateDelivery date
date_createDateDate of creation
documentTextReference
noteTextNote
stateIntegerRequest status ID
state_descriptionTextDescription of condition
id_priorityIntegerPriority ID
priorities_descriptionTextDescription of priority
id_responsibleIntegerID of the person responsible for the request
responsible_codeTextCode of the person responsible for the request
responsible_descriptionTextDescription of the person responsible for the request
detailsArray of JSON objectsDetail of items involved in the application (see application details table)
id_cost_centerIntegerCost center ID
costs_center_descriptionTextCost center description
id_types_1IntegerID of the first classification
types_1_descriptionTextDescription of the first classification
id_types_2IntegerID of the second classification
types_2_descriptionTextDescription of the second classification
annotationsJSONMaterial request annotations

Material request statuses

IDStatusDescription
9PARTIAL_DELIVERY_BY_INTEGRATIONPartial delivery by integration
10TOTAL_DELIVERY_BY_INTEGRATIONTotal delivery by integration
11CANCELLED_BY_INTEGRATIONCancelled by integration

Request Details

ParameterTypeDescription
id_movements_detailsIntegerRequest Detail ID
id_itemIntegerResource ID
codeTextResource code
items_descriptionTextDescription of the resource
qtyFloatQuantity
qty_pendingFloatAmount outstanding
units_descriptionTextDescription of the unit
units_codeTextUnit code

Example with Date range:

Request: (GET)https://app.fracttal.com/api/material_requests/?since=2022-06-01T20:00:00-03&until=2022-06-13T20:00:00-03

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 1452719,
            "id_company": 1190,
            "id_warehouse_target": 1410,
            "warehouse_code": "MRX-004",
            "warehouses_description": "ALMACÉN DE REPUESTOS 2",
            "folio_target": "20",
            "date_delivery": "2022-06-10",
            "date_create": "2022-06-08T06:00:24.550131+00:00",
            "document": "70285343",
            "note": "ABC",
            "state": 3,
            "state_description": "WITH_OUT_PURCHASE_ORDER",
            "id_priority": 3,
            "priorities_description": "MEDIUM",
            "id_responsible": 1540,
            "responsible_code": null,
            "responsible_description": "ALEXIS GARCIA",
            "details": [
                {
                    "id_movements_details": 2978195,
                    "id_item": 3286,
                    "code": "ACT.HERR-0003",
                    "items_description": "LLAVE TORQUE M1/2\\ 40-200NM  S.RICHMONT M1/2\\ 40-200NM { ACT.HERR-0003 }",
                    "qty": 3,
                    "qty_pending": 3,
                    "units_description": "UNIDAD",
                    "units_code": null
                }
            ],
            "id_cost_center": null,
            "costs_center_description": null,
            "id_types_1": null,
            "types_1_description": null,
            "id_types_2": null,
            "types_2_description": null,
            "annotations": {
                "id_related": "111",
                "code_related": 111
            }
        }
    ],
    "total": 1
}

Test It

Language