Obter uma caixa de estoque
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>"
}Inventário
Obter uma caixa de estoque
Lê uma caixa física de estoque pelo id. Requer inventory:read. 404 quando não existe ou pertence a outra clínica odontológica.
GET
/
v1
/
inventory
/
boxes
/
{boxId}
Obter uma caixa de estoque
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>"
}Autorizações
Chave de API opaca mvy_test_ enviada como token Bearer. O servidor deriva dela exatamente uma clínica odontológica; o caminho nunca leva um seletor de clínica odontológica.
Parâmetros de caminho
O id opaco da caixa de estoque.
Resposta
O recurso solicitado.
Opções disponíveis:
active, quarantine, expired, depleted, disposed, in_transit A caixa da qual este contêiner foi separado; ausente em uma caixa recebida.