Service Name             Assets List
Service Method          GET
Service URL                /assets?page=1&per_page=10&query=xxx&items_details=true

Query Parameters
query = <serial# or part of serial#>                             (Optional)
page = <start page for list pagination>                       (Optional)
per_page = <count of records in every page>            (Optional)
items_details = <show item details>                            (Optional)

Note:
Default value for page is 1 and default value for per_page is 10. If you don't send value for query, API returns list of all assets.

Request Header Fields
Content-Type = application/json
Authorization = <token>

Response Data (JSON)
{
"pagination": {
"current_page": <page number>,
"per_page": <page size>,
"total_entries": <total records>

},
"assets": [

{
"id": <asset id>,
"serial_number": "<serial number>",
"epc": "<epc>",
"text3": "<asset special text3>",
"status": {

"id": <status id>,
"name": "<status name>"

},
"item_details": {
"id": <item id>,
"number": "<item#>",
"name": "<item name>",
"upc": 0,
"alu": "",
"description": "<item description>",
"style": "<item style>",
"colour": "<item color>",
"size": "<item size>",
"dcs": "",
"dnc": false,
"total_qty": <item total quantity>,
"price": "<item price>",
"picture_url": "<item picture url>",
"item_type_name": "<item type>",
"categories": [

{
id": <item category code>,
"name": "<item category name>"

}
],
"text1": "<item special text1>",
"text2": "<item special text2>",
"in_stock": <item in stock quantity>,

}
},
...

]
}

 

Example
GET: http://app.senitron.net/api/v1/assets?page=1&per_page=2&query=1590&items_details=true
{
"pagination": {
"current_page": 1,
"per_page": 2,
"total_entries": 11

},
"assets": [

{
"id": 67158,
"serial_number": "243107431590",
"epc": "CF000002011E67789A5504A6",
"text3": "03/06/2020 07:24 AM,HH: R1 Inside 1st Floor",
"status": {

"id": 1040,
"name": "Live"

},
"item_details": {

"id": 6926910,
"number": "0000000134511005",
"name": "Samshield Gloves",
"upc": 0,
"alu": "134511-005",
"description": "Samshield Gloves",
"style": "",
"colour": "BLACK 8",
"size": "",
"dcs": "",
"dnc": false,
"total_qty": 0,
"price": "64.4900",
"picture_url": "",
"item_type_name": "Regular",
"categories": [

{
"id": 381209,
"name": "1g"

}
],
"text1": "134511-005 Samshield Gloves",
"text2": "BLACK 8,64.49",
"in_stock": 0

}
},
{

"id": 28895,
"serial_number": "243107315900",
"epc": "CF00000196AB6CB89A5340BC",
"text3": "01/20/2020 08:36 AM,HH: R1 Inside 1st Floor",
"status": {

"id": 1045,
"name": "Pending Visibility"

},
"item_details": {

"id": 6851280,
"number": "0000000106606002",
"name": "Leather Lead 6ft/Snap",
"upc": 0,
"alu": "106606-002",
"description": "Leather Lead 6ft/Snap",
"style": "",
"colour": "BLACK CHROME",
"size": "",
"dcs": "",
"dnc": false,
"total_qty": 0,
"price": "39.9900",
"picture_url": "",
"item_type_name": "Regular",
"categories": [

{
"id": 381354,
"name": "Tll"

}
],
"text1": "106606-002 Leather Lead 6ft/Snap",
"text2": "BLACK CHROME,39.99",
"in_stock": 0

}
}
]
}