Get an order
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>"
}Orders
Get an order
Reads one order with its lines. Requires orders:read. Order value and the patient reference are redacted; line cost needs catalog.cost:read. 404 when absent or in another workspace.
GET
/
v1
/
orders
/
{orderId}
Get an order
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>"
}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 order id.
Response
The requested resource.
Available options:
general, clinical Available options:
draft, submitted, pending_approval, approved, rejected, cancelled, allocated, picking, dispatched, delivered, exception, received, partially_fulfilled, closed Show child attributes
Show child attributes
Redacted (absent) unless the key holds orders.patient_ref:read (never on /v1).
Order total in minor units. Present only with orders.value:read (never on /v1).
Show child attributes
Show child attributes