Through this API history locations of all or a particular asset can be consult.
You can query with the asset code to get the specific history of an asset.
EndPoint
https://app.fracttal.com/api/items_locations
Endpoint with filter by asset: https://app.fracttal.com/api/items_locations/:code_asset
Method GET
Input Parameters
Parameter | Type of field | Required | Description |
code | text | Optional | Asset code. |
since | Text | Optional | Initial date of consultation. Applies to the date on which the location movement was made 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. (By default 30 days before) |
until | Text | Optional | Final date of the query. Applies to the date on which the location movement was made. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. (By default the current date) |
start | Entire | Optional | Record number from which the query will start. By default it starts at item 0. |
limit | Entire | Optional | Final record number that the query will return. By default 100 records are returned (Maximum Value) |
Output Parameters
Parameter | Type of field | Description |
description | Text | Asset description |
code | Text | Asset code |
source | Text | Initial location |
destination | Text | Final location |
date | Text | Date on which the location change was made |
personnel_description | Text | Person who made the movement |
Example:
Petition: https://app.fracttal.com/api/items_locations/EQM027
Example Response:
{
"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
}