LockerBoxTemeprature
getLockerByID
getLockers
orderCancel
orderCreate
orderDispatched
orderGetByUID
orderHistory
orderPlaceIN
DATA (php):
stdClass Object
(
[id] => ORD123
[location_id] => locationUID
[time_slot] => stdClass Object
(
[starts_at] => 2022-06-30T10:07:09+00:00
[ends_at] => 2022-06-30T14:07:09+00:00
)
[boxes] => Array
(
[0] => stdClass Object
(
[size] => small
[temperature] => cold
)
[1] => stdClass Object
(
[size] => mediium
[temperature] => cold
)
[2] => stdClass Object
(
[size] => large
[temperature] => cold
)
)
[webhook] => http://applications.greenbees.cloud/webhook/
)
DATA (json):
{
"id":"ORD123",
"location_id":"locationUID",
"time_slot":
{
"starts_at":"2022-06-30T10:07:09+00:00",
"ends_at":"2022-06-30T14:07:09+00:00"
},
"boxes":[
{
"size":"small",
"temperature":"cold"
},
{
"size":"mediium",
"temperature":"cold"
},
{
"size":"large",
"temperature":"cold"
}
],
"webhook":"http://applications.greenbees.cloud/webhook/"
}RESPONSE:
SQLSTATE[22032]: <>: 3141 Invalid JSON text in argument 1 to function json_extract: "Invalid value." at position 0.
trace called from: /var/www/html/core/basem.php:45
{"status":false,"message":"Bad request","data":{"boxes_3":"The required box size is not avaialble on that location"}}
JSON decoded:
"
SQLSTATE[22032]: <>: 3141 Invalid JSON text in argument 1 to function json_extract: \"Invalid value.\" at position 0.<\/pre>
trace called from: \/var\/www\/html\/core\/basem.php:45
<\/pre>{\"status\":false,\"message\":\"Bad request\",\"data\":{\"boxes_3\":\"The required box size is not avaialble on that location\"}}"