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 los pedidos de toda la clínica dental, con paginación keyset por orden de creación y filtro opcional por estado. Requiere orders:read. El valor del pedido y la referencia de paciente siempre se omiten para una clave 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>"
}Autorizaciones
Clave de API opaca mvy_test_ enviada como token Bearer. El servidor deriva de ella exactamente una clínica dental; la ruta nunca lleva un selector de clínica dental.
Parámetros de consulta
Tamaño de página, de 1 a 200 (por defecto 50).
Rango requerido:
1 <= x <= 200Filtra por estado del ciclo de vida.
Opciones disponibles:
draft, submitted, pending_approval, approved, rejected, cancelled, allocated, picking, dispatched, delivered, exception, received, partially_fulfilled, closed Cursor keyset opaco tomado del nextCursor de una página anterior.