Barcoding
Notifications
Orders
Patients
- GETGet patients
- POSTCreate a patient
- GETGet a patient's details
- PUTUpdate a patient's details
- GETGet guardian relationship types
- GETGet a patient's orders
- GETGet a patient's risk factors
- POSTCreate risk factors
- POSTCreate a single risk factor
- PATCHConfirm risk factor match
- DELDeactivate a risk factor
- POSTAdd freeform risk factor text
Prescribers
Prescriptions
Products and Materials
Products and Materials Inventory
- GETGet inventory
- POSTCreate product inventory
- GETGet inventory lot details
- PUTUpdate inventory lot
- GETGet a prescription product inventory
- POSTCreate prescription product inventory
- GETGet a non-prescription product inventory
- POSTCreate non-prescription product inventory
- GETGet order material inventory
- POSTCreate order material product inventory
- PATCHAdjust inventory quantity
- GETGet inventory associations
- POSTCreate inventory association
- DELRemove inventory association
Reports
Search
Tasks
Webhooks
Reports
Get order report
Retrieve a report of orders by date range and status.
GET
/
api
/
v1
/
reports
/
orders
Copy
curl --request GET \
--url https://api.byblend.com/api/v1/reports/orders \
--header 'Authorization: Bearer <token>'
Copy
{
"date_range": "2025-01-01 to 2025-01-31",
"total_orders": 179,
"orders_by_status": [
{
"status_code": "N01",
"status_name": "Received",
"count": 23
},
{
"status_code": "P01",
"status_name": "Data Entry",
"count": 19
},
{
"status_code": "S01",
"status_name": "Shipping",
"count": 46
}
],
"orders_by_product": {
"prescription": [
{
"name": "Rapamycin 100mg",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 920
}
],
"non_prescription": [
{
"name": "PABA-free sunscreen",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 412
}
],
"order_material": [
{
"name": "Q4 2025 information packet",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 550
}
]
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Start date of the date range to report on
Example:
"2025-01-01"
End date of the date range to report on
Example:
"2025-01-31"
Optional parameter to specify which fields to return in the report (status, count, products). Separate multiple fields with commas.
Example:
"status,count"
Response
200 - application/json
Successful response with order report
The response is of type object
.
Copy
curl --request GET \
--url https://api.byblend.com/api/v1/reports/orders \
--header 'Authorization: Bearer <token>'
Copy
{
"date_range": "2025-01-01 to 2025-01-31",
"total_orders": 179,
"orders_by_status": [
{
"status_code": "N01",
"status_name": "Received",
"count": 23
},
{
"status_code": "P01",
"status_name": "Data Entry",
"count": 19
},
{
"status_code": "S01",
"status_name": "Shipping",
"count": 46
}
],
"orders_by_product": {
"prescription": [
{
"name": "Rapamycin 100mg",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 920
}
],
"non_prescription": [
{
"name": "PABA-free sunscreen",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 412
}
],
"order_material": [
{
"name": "Q4 2025 information packet",
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"count": 550
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.