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
Orders
Create a custom compounding reason
Add a new compounding reason to the Blend inventory.
POST
/
api
/
v1
/
reasons
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/reasons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Physical location",
"description": "Patient cannot access physical pharmacy due to natural disasters or similar event.",
"parent_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}'
Copy
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"name": "Adherence or Compliance",
"description": "Issues related to patient adherence and medication compliance.",
"is_global": true,
"parent_id": null
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201 - application/json
Compounding reason created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/reasons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Physical location",
"description": "Patient cannot access physical pharmacy due to natural disasters or similar event.",
"parent_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}'
Copy
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"name": "Adherence or Compliance",
"description": "Issues related to patient adherence and medication compliance.",
"is_global": true,
"parent_id": null
}
Assistant
Responses are generated using AI and may contain mistakes.