Platform
Get Stock
Platform
Get Stock
Retrieves the Illusory product stock.
GET
/
v1
/
stock
curl --request GET \
--url https://cmd.illusory.io/v1/stock \
--header 'Authorization: Bearer <token>'
{
"ok": true,
"message": "Retrieved stock successfully.",
"data": [
{
"city": "Austin",
"state": "TX",
"att": 0,
"verizon": 39,
"tmobile": 0,
"status": "available",
"open": true,
"visible": true
},
{
"city": "Cleveland",
"state": "OH",
"att": 0,
"verizon": 1,
"tmobile": 0,
"status": "available",
"open": true,
"visible": true
},
{
"city": "Los Angeles",
"state": "CA",
"att": 0,
"verizon": 0,
"tmobile": 0,
"status": "out",
"open": true,
"visible": true
},
{
"city": "New York",
"state": "NY",
"att": 0,
"verizon": 0,
"tmobile": 0,
"status": "coming",
"open": false,
"visible": true
}
]
}
Authorizations
The Authorization
header is used to authenticate with the API using your Master
API key. Value is of the format Bearer YOUR_KEY_HERE
.
Response
200
application/json
Server response
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://cmd.illusory.io/v1/stock \
--header 'Authorization: Bearer <token>'
{
"ok": true,
"message": "Retrieved stock successfully.",
"data": [
{
"city": "Austin",
"state": "TX",
"att": 0,
"verizon": 39,
"tmobile": 0,
"status": "available",
"open": true,
"visible": true
},
{
"city": "Cleveland",
"state": "OH",
"att": 0,
"verizon": 1,
"tmobile": 0,
"status": "available",
"open": true,
"visible": true
},
{
"city": "Los Angeles",
"state": "CA",
"att": 0,
"verizon": 0,
"tmobile": 0,
"status": "out",
"open": true,
"visible": true
},
{
"city": "New York",
"state": "NY",
"att": 0,
"verizon": 0,
"tmobile": 0,
"status": "coming",
"open": false,
"visible": true
}
]
}