Obter um pedido
curl --request GET \
--url https://api.muveya.com/v1/orders/{orderId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"orderId": "<string>",
"number": 123,
"type": "general",
"status": "draft",
"requesterId": "<string>",
"clinicId": "<string>",
"destinationWarehouseId": "<string>",
"lines": [
{
"lineId": "<string>",
"catalogItemId": "<string>",
"sku": "<string>",
"name": "<string>",
"requestedQty": 123,
"unitOfMeasure": "<string>",
"category": "<string>",
"highValue": true,
"unitCost": 123,
"currency": "<string>"
}
],
"version": 123,
"preferredSourceWarehouseId": "<string>",
"justification": "<string>",
"patientRef": "<string>",
"value": 123,
"currency": "<string>",
"approvalPlan": {
"policyVersion": 123,
"requiresApproval": true,
"steps": [
{
"stage": "<string>",
"requiredScope": "<string>",
"minApprovers": 123
}
],
"evaluatedValue": 123,
"currency": "<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>"
}Pedidos
Obter um pedido
Lê um pedido com suas linhas. Requer orders:read. O valor do pedido e a referência de paciente são omitidos; o custo das linhas exige catalog.cost:read. 404 quando não existe ou pertence a outra clínica odontológica.
GET
/
v1
/
orders
/
{orderId}
Obter um pedido
curl --request GET \
--url https://api.muveya.com/v1/orders/{orderId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/orders/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/orders/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"orderId": "<string>",
"number": 123,
"type": "general",
"status": "draft",
"requesterId": "<string>",
"clinicId": "<string>",
"destinationWarehouseId": "<string>",
"lines": [
{
"lineId": "<string>",
"catalogItemId": "<string>",
"sku": "<string>",
"name": "<string>",
"requestedQty": 123,
"unitOfMeasure": "<string>",
"category": "<string>",
"highValue": true,
"unitCost": 123,
"currency": "<string>"
}
],
"version": 123,
"preferredSourceWarehouseId": "<string>",
"justification": "<string>",
"patientRef": "<string>",
"value": 123,
"currency": "<string>",
"approvalPlan": {
"policyVersion": 123,
"requiresApproval": true,
"steps": [
{
"stage": "<string>",
"requiredScope": "<string>",
"minApprovers": 123
}
],
"evaluatedValue": 123,
"currency": "<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 do pedido.
Resposta
O recurso solicitado.
Opções disponíveis:
general, clinical Opções disponíveis:
draft, submitted, pending_approval, approved, rejected, cancelled, allocated, picking, dispatched, delivered, exception, received, partially_fulfilled, closed Show child attributes
Show child attributes
Omitido (ausente) a menos que a chave tenha orders.patient_ref:read (nunca na /v1).
Total do pedido em unidades menores da moeda. Presente apenas com orders.value:read (nunca na /v1).
Show child attributes
Show child attributes