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

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

id

Entero

Movement id

id_company

Entero

Company id

description

Text

Asset description

code

Text

Asset code

id_item

Entero

Asset id

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

id_item_source

Entero

Initial location id

id_item_destination

Entero

Final 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