get https://app.fracttal.com/api/items_locations
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
Parameter | Type | Required | Description |
---|---|---|---|
code | Text | Optional | Code of the asset |
since | Text | Optional | Initial 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) |
until | Text | Optional | End 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 | Integer | Optional | Record number from which the query will start, by default it starts at item 0. |
limit | Integer | Optional | Final record number to be returned by the query. By default 100 records are returned (Maximum value). |
Output parameters
Parameter | Type | Description |
---|---|---|
description | Text | Descripción del activo |
code | Text | Asset code |
source | Text | Initial Location |
destination | Text | Final Location |
date | Text | Date on which the change of location took place |
personnel_description | Text | Person 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