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
descriptionTextDescripción del activo
codeTextAsset code
sourceTextInitial Location
destinationTextFinal Location
dateTextDate on which the change of location took place
personnel_descriptionTextPerson who carried out the movement

Example:

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

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id": 1054,
            "id_company": 133,
            "description": "REFRIGERADOR DE VACUNAS 001827 { EQM027 }",
            "code": "EQM027",
            "id_item": 5116,
            "source": "// AMERICA DEL SUR/ ANTOFAGASTA/ ",
            "destination": "// AMERICA DEL SUR/ Fracttal Test/ Fracttal 1/ Oficina Programadores/ ",
            "date": "2019-05-07T16:05:15.968947",
            "personnel_description": "Miguel Viloria",
            "date_log": "2019-05-07T16:05:15.968947+00:00"
        },
        {
            "id": 1053,
            "id_company": 133,
            "description": "REFRIGERADOR DE VACUNAS 001827 { EQM027 }",
            "code": "EQM027",
            "id_item": 5116,
            "source": "// AMERICA DEL SUR/ CHILE/ SANTIAGO DE CHILE/ HOSPITAL / HOSPITAL GENERAL DE CONCEPCION/ SALA DE OPERACION/ RAYOS X/ ",
            "destination": "// AMERICA DEL SUR/ ANTOFAGASTA/ ",
            "date": "2019-05-07T15:26:16.236115",
            "personnel_description": "Miguel Viloria",
            "date_log": "2019-05-07T15:26:16.236115+00:00"
        }
    ],
    "total": 2
}

Test iT

Language