Listar pedidos
curl --request GET \
--url https://api.muveya.com/v1/orders \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"orderId": "<string>",
"number": 123,
"type": "general",
"status": "draft",
"requesterId": "<string>",
"clinicId": "<string>",
"destinationWarehouseId": "<string>",
"version": 123,
"preferredSourceWarehouseId": "<string>",
"justification": "<string>",
"value": 123,
"currency": "<string>"
}
],
"hasMore": true,
"nextCursor": "<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
Listar pedidos
Lista os pedidos de toda a clínica odontológica, com paginação keyset por ordem de criação e filtro opcional por status. Requer orders:read. O valor do pedido e a referência de paciente são sempre omitidos para uma chave de máquina.
GET
/
v1
/
orders
Listar pedidos
curl --request GET \
--url https://api.muveya.com/v1/orders \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"orderId": "<string>",
"number": 123,
"type": "general",
"status": "draft",
"requesterId": "<string>",
"clinicId": "<string>",
"destinationWarehouseId": "<string>",
"version": 123,
"preferredSourceWarehouseId": "<string>",
"justification": "<string>",
"value": 123,
"currency": "<string>"
}
],
"hasMore": true,
"nextCursor": "<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 consulta
Tamanho da página, de 1 a 200 (padrão 50).
Intervalo necessário:
1 <= x <= 200Filtra por status do ciclo de vida.
Opções disponíveis:
draft, submitted, pending_approval, approved, rejected, cancelled, allocated, picking, dispatched, delivered, exception, received, partially_fulfilled, closed Cursor keyset opaco obtido do nextCursor de uma página anterior.