Get a stock box
curl --request GET \
--url https://api.muveya.com/v1/inventory/boxes/{boxId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/inventory/boxes/{boxId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/inventory/boxes/{boxId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"boxId": "<string>",
"code": "<string>",
"catalogItemId": "<string>",
"warehouseId": "<string>",
"initialQty": 123,
"status": "active",
"receivedAt": "2023-11-07T05:31:56Z",
"lotNumber": "<string>",
"serials": [
"<string>"
],
"expiryDate": "2023-11-07T05:31:56Z",
"sourceRef": "<string>",
"parentBoxId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Inventory
Get a stock box
Reads one physical stock box by id. Requires inventory:read. 404 when absent or in another workspace.
GET
/
v1
/
inventory
/
boxes
/
{boxId}
Get a stock box
curl --request GET \
--url https://api.muveya.com/v1/inventory/boxes/{boxId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/inventory/boxes/{boxId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/inventory/boxes/{boxId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"boxId": "<string>",
"code": "<string>",
"catalogItemId": "<string>",
"warehouseId": "<string>",
"initialQty": 123,
"status": "active",
"receivedAt": "2023-11-07T05:31:56Z",
"lotNumber": "<string>",
"serials": [
"<string>"
],
"expiryDate": "2023-11-07T05:31:56Z",
"sourceRef": "<string>",
"parentBoxId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Authorizations
Opaque mvy_test_ API key sent as a Bearer token. It derives exactly one workspace server-side; the path never carries a workspace selector.
Path Parameters
The opaque stock box id.
Response
The requested resource.
Available options:
active, quarantine, expired, depleted, disposed, in_transit The box this container was separated from; absent on a received box.