Service Name       Orders List
Service Method    GET
Service URL           /audits/orders?location=001&query=xxx&items=true&items_details=true&page=1&per_page=10

Query Parameters
location = <location code>                                         (Required)
query = <order# or a part of order#>                      (Optional)
page = <start page for list pagination>                    (Optional)
per_page = <count of records in every page>        (Optional)
items = <show item data>                                          (Optional)
items_details = <show item details>                        (Optional)

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>

},
"allow_override": <allow override status>,
"orders": [

{
"id": "order#",
"customer_name": "<customer name>",
"created_at": "<order created at>",
"assets_count": <assets count in order>,
"items": [

{
"item_number": "<item#>",
"qty": <quantity>,
"epcs": [],
"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>"

}
},
...

]
},
...

]
}

 

Example
GET: http://app.senitron.net/api/v1/audits/orders?location=001&query=104-23576&items=true&items_details=true
{
"pagination": {
"current_page": 1,
"per_page": 10,
"total_entries": 1

},
"allow_override": true,
"orders": [

{
"id": "104-23576",
"customer_name": "",
"created_at": "10/05/2019 04:35 PM",
"assets_count": 2,
"items": [

{
"item_number": "0000000124762006",
"qty": 1,
"epcs": [],
"item_details": {

"id": 6892021,
"number": "0000000124762006",
"alu": "124762-006",
"name": "Fancy Padded Girth/Double",
"upc": null,
"description": "Fancy Padded Girth/Double",
"style": null,
"colour": "HAVANA 46",
"size": null,
"dcs": null,
"dnc": null,
"total_qty": null,
"price": "149.9900",
"picture_url": null

}
},
{

"item_number": "0000000143158018",
"qty": 1,
"epcs": [],
"item_details": {

"id": 6966985,
"number": "0000000143158018",
"alu": "143158-018",
"name": "Mystery Horse Surprise",
"upc": null,
"description": "Mystery Horse Surprise",
"style": null,
"colour": "ASSORT",
"size": null,
"dcs": null,
"dnc": null,
"total_qty": null,
"price": "3.9900",
"picture_url": null

}
}
]
}
]
}