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
Webhooks
Webhook endpoint
This is a webhook endpoint that will receive events from Blend.
To use webhooks:
- Create a subscription using /api/v1/notifications
- Provide your endpoint URL in the subscription request
- Implement this endpoint on your server to receive webhook events
Your endpoint should:
- Accept POST requests
- Return a 2xx status code within 10 seconds
- Handle retries with exponential backoff
POST
/
webhooks
Copy
{
"event_code": "order.created",
"data": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-16T22:55:37.920593",
"updated_at": "2025-03-16T22:55:37.920593",
"url": "https://app.byblend.com/orders/0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"order_number": "ORD250316225537XHWD",
"last_name": "Davis",
"first_name": "Rodrigo",
"status_name": "Received",
"status_code": "N01"
}
}
Body
application/json
Response
200
Webhook received successfully
Copy
{
"event_code": "order.created",
"data": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-16T22:55:37.920593",
"updated_at": "2025-03-16T22:55:37.920593",
"url": "https://app.byblend.com/orders/0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"order_number": "ORD250316225537XHWD",
"last_name": "Davis",
"first_name": "Rodrigo",
"status_name": "Received",
"status_code": "N01"
}
}
Assistant
Responses are generated using AI and may contain mistakes.