API Endpoints
Fracttal →

Query asset location history

Using this API you can query the location history of all assets or of a particular asset.

You can query with the asset code to get the specific history of an asset.

Endpoint with asset filter: https://app.fracttal.com/api/items_locations/:code_asset

Input parameters

ParameterTypeRequiredDescription
codeTextOptionalCode of the asset
sinceTextOptionalInitial date of the query. Applies to the date on which the location movement was made.
Format: 'YYYYY-MM-DDTHH:MM:SS-UTC'
Example: '2016-07-12T20:00:00-03' (Default 30 days earlier)
untilTextOptionalEnd date of the query.
Applies to the date on which the location movement was performed.
Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. (Defaults to the current date.
start IntegerOptionalRecord number from which the query will start, by default it starts at item 0.
limit IntegerOptionalFinal record number to be returned by the query. By default 100 records are returned (Maximum value).

Output parameters

ParameterTypeDescription
idEnteroMovement id
id_companyEnteroCompany id
descriptionTextAsset description
codeTextAsset code
id_itemEnteroAsset id
sourceTextInitial Location
destinationTextFinal Location
dateTextDate on which the change of location took place
personnel_descriptionTextPerson who carried out the movement
id_item_sourceEnteroInitial location id
id_item_destinationEnteroFinal location id

Example:

Petición: (GET) https://app.fracttal.com/api/items_locations/006

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 46899,
            "id_company": 1190,
            "description": "{ 006 } EQUIPO DE MRX  ",
            "code": "006",
            "id_item": 33644875,
            "source": "// EMPRESA SECTOR SERVICIOS/ CLIENTES CHILE/ FRUTOS DEL MAIPO/ ",
            "destination": "// MUNDO MRX/ HIJO 2 MUNDO MRX/ ",
            "date": "2024-07-19T01:25:49.955758",
            "personnel_description": "MIR LONDOÑO",
            "date_log": "2024-07-19T01:25:49.955758+00:00",
            "id_item_source": 12,
            "id_item_destination": 33962679
        },
        {
            "id": 46898,
            "id_company": 1190,
            "description": "{ 006 } EQUIPO DE MRX  ",
            "code": "006",
            "id_item": 33644875,
            "source": "// EMPRESA SECTOR MANUFACTURA/ PLANTA 1 - PRODUCCIÓN ALIMENTOS/ ",
            "destination": "// EMPRESA SECTOR SERVICIOS/ CLIENTES CHILE/ FRUTOS DEL MAIPO/ ",
            "date": "2024-07-19T01:23:51.565723",
            "personnel_description": "MIR LONDOÑO",
            "date_log": "2024-07-19T01:23:51.565723+00:00",
            "id_item_source": 3,
            "id_item_destination": 12
        },
        {
            "id": 46897,
            "id_company": 1190,
            "description": "{ 006 } EQUIPO DE MRX  ",
            "code": "006",
            "id_item": 33644875,
            "source": "// ",
            "destination": "// EMPRESA SECTOR MANUFACTURA/ PLANTA 1 - PRODUCCIÓN ALIMENTOS/ ",
            "date": "2024-07-19T01:22:37.051276",
            "personnel_description": "MIR LONDOÑO",
            "date_log": "2024-07-19T01:22:37.051276+00:00",
            "id_item_source": null,
            "id_item_destination": 3
        }
    ],
    "total": 3
}
Language