curl --request GET \
--url https://api.byblend.com/api/v1/search/orders \
--header 'Authorization: Bearer <token>'{
"results": [
{
"rank": 0.7,
"is_patient_order": true,
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"address": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"address_1": "140 Lindgren Streets",
"address_2": "Apt 227",
"city": "North Consueloburgh",
"state": "CA",
"country": "US",
"type": "shipping",
"zip_code": "02108"
},
"custom_shipping": {
"label_url": "https://example.com/label.pdf",
"tracking_number": "TEST123456",
"tracking_url": "https://example.com/track/TEST123456",
"carrier": "UPS"
},
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"external_id": "my-system-128318AA2",
"is_replacement": false,
"order_number": "ORD250312003548IAU4",
"original_order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"replacement_order_ids": [
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
],
"replacement_reason": "Product arrived damaged",
"patient": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"first_name": "Willard",
"middle_name": "Moises",
"last_name": "Donnelly",
"gender": "male",
"email": "[email protected]",
"phone": "6417383445",
"date_of_birth": "1990-01-01",
"driver_license_number": "B49188319",
"driver_license_state": "CA",
"ssn": "123456789",
"primary_language": "en",
"guardian_name": "John Guardian",
"guardian_phone": "6417383445",
"guardian_email": "[email protected]",
"guardian_relationship": "parent",
"height_inches": 72,
"weight_pounds": 180,
"external_id": "1234567890",
"is_smoker": false,
"is_diabetic": false,
"is_pregnant": false,
"receive_sms": true,
"receive_email": true,
"address": {
"address_1": "140 Lindgren Streets",
"city": "North Consueloburgh",
"state": "CA",
"zip_code": "02108",
"address_2": "Apt 227",
"country": "US"
}
},
"priority_requested": false,
"products": {
"prescription": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Mupirocin",
"description": "A topical cream that is used to treat skin infections.",
"product_code": "SUPERSPRAY15",
"category": "topicals",
"form": "cream",
"is_active": true,
"label_orientation": "portrait",
"strength": "1%",
"quantity": 2,
"reasons": [
{
"id": "00000000-0000-0000-0000-000000000201",
"name": "Palatability",
"description": "Commercial formulation has an unpleasant taste, texture, or odor."
}
]
}
],
"non_prescription": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Krill Farms Fish Oil",
"description": "A fish oil supplement complementary to prescribed products.",
"category": "nutrition",
"form": "liquid",
"is_active": true,
"quantity": 1
}
],
"order_material": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Referral Brochure",
"description": "Customer brochure included in every shipment.",
"category": "marketing",
"current_stock": 927,
"reorder_threshold": 100,
"has_inventory": true,
"is_global": false,
"quantity": 1
}
]
},
"replacement_requested": false,
"replacement_requested_at": "2025-01-01T00:00:00Z",
"replacement_requested_reason": "Product arrived damaged",
"shipments": [
{
"carrier": "USPS",
"id": "0239CA06-9A71-4FFE-8A8D-5403540A19E7",
"service_level": "Ground Advantage",
"shipped_at": "2025-01-01T00:00:00Z",
"tracking_number": "9200190347375200467807",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9200190347375200467807"
}
],
"shipping": {
"carrier": "usps",
"service_level": "usps_ground_advantage"
},
"status": "received"
}
]
}Search orders by order number, ID, patient fields, or a substring.
curl --request GET \
--url https://api.byblend.com/api/v1/search/orders \
--header 'Authorization: Bearer <token>'{
"results": [
{
"rank": 0.7,
"is_patient_order": true,
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"address": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"address_1": "140 Lindgren Streets",
"address_2": "Apt 227",
"city": "North Consueloburgh",
"state": "CA",
"country": "US",
"type": "shipping",
"zip_code": "02108"
},
"custom_shipping": {
"label_url": "https://example.com/label.pdf",
"tracking_number": "TEST123456",
"tracking_url": "https://example.com/track/TEST123456",
"carrier": "UPS"
},
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"external_id": "my-system-128318AA2",
"is_replacement": false,
"order_number": "ORD250312003548IAU4",
"original_order_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"replacement_order_ids": [
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
],
"replacement_reason": "Product arrived damaged",
"patient": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"first_name": "Willard",
"middle_name": "Moises",
"last_name": "Donnelly",
"gender": "male",
"email": "[email protected]",
"phone": "6417383445",
"date_of_birth": "1990-01-01",
"driver_license_number": "B49188319",
"driver_license_state": "CA",
"ssn": "123456789",
"primary_language": "en",
"guardian_name": "John Guardian",
"guardian_phone": "6417383445",
"guardian_email": "[email protected]",
"guardian_relationship": "parent",
"height_inches": 72,
"weight_pounds": 180,
"external_id": "1234567890",
"is_smoker": false,
"is_diabetic": false,
"is_pregnant": false,
"receive_sms": true,
"receive_email": true,
"address": {
"address_1": "140 Lindgren Streets",
"city": "North Consueloburgh",
"state": "CA",
"zip_code": "02108",
"address_2": "Apt 227",
"country": "US"
}
},
"priority_requested": false,
"products": {
"prescription": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Mupirocin",
"description": "A topical cream that is used to treat skin infections.",
"product_code": "SUPERSPRAY15",
"category": "topicals",
"form": "cream",
"is_active": true,
"label_orientation": "portrait",
"strength": "1%",
"quantity": 2,
"reasons": [
{
"id": "00000000-0000-0000-0000-000000000201",
"name": "Palatability",
"description": "Commercial formulation has an unpleasant taste, texture, or odor."
}
]
}
],
"non_prescription": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Krill Farms Fish Oil",
"description": "A fish oil supplement complementary to prescribed products.",
"category": "nutrition",
"form": "liquid",
"is_active": true,
"quantity": 1
}
],
"order_material": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"sku": "1234567890",
"name": "Referral Brochure",
"description": "Customer brochure included in every shipment.",
"category": "marketing",
"current_stock": 927,
"reorder_threshold": 100,
"has_inventory": true,
"is_global": false,
"quantity": 1
}
]
},
"replacement_requested": false,
"replacement_requested_at": "2025-01-01T00:00:00Z",
"replacement_requested_reason": "Product arrived damaged",
"shipments": [
{
"carrier": "USPS",
"id": "0239CA06-9A71-4FFE-8A8D-5403540A19E7",
"service_level": "Ground Advantage",
"shipped_at": "2025-01-01T00:00:00Z",
"tracking_number": "9200190347375200467807",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9200190347375200467807"
}
],
"shipping": {
"carrier": "usps",
"service_level": "usps_ground_advantage"
},
"status": "received"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Search query
"ORD8272"
Optional limit on the number of results to return. Max is 100, default is 50.
10
Successful response with array of orders
Show child attributes
Ranking score of the search result, from 0 to 1, indicating relevance to the search query
0.7
If the result matched on the order's patient.
true
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
"140 Lindgren Streets"
"Apt 227"
"North Consueloburgh"
Two-letter state abbreviation
"CA"
Two-letter country code
"US"
Type of address, if applicable
"shipping"
5-digit ZIP code or ZIP+4 code, e.g. 02108 or 02108-1234
"02108"
Custom shipping details for the order if your account has custom shipping enabled, and you have provided prepaid label details.
Show child attributes
URL of the printable (4x6) custom shipping label
"https://example.com/label.pdf"
Tracking number from the custom shipping label
"TEST123456"
Tracking URL of the custom shipping label
"https://example.com/track/TEST123456"
Carrier of the custom shipping label
"UPS"
"b658f16f-819c-4503-aede-bd555fc4ebfb"
External (your own system's) ID associated with the order.
"my-system-128318AA2"
Whether the order is a replacement order
false
Friendlier identifier for the order. Auto-generated.
"ORD250312003548IAU4"
ID of the original order, if this is a replacement order
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
IDs of any replacement orders, if they have been created from this order
If this is a replacement order, reason for the replacement
"Product arrived damaged"
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
"Willard"
"Moises"
"Donnelly"
Gender of the patient
male, female "male"
10-digit phone number without formatting, e.g. 6417383445
"6417383445"
"1990-01-01"
"B49188319"
"CA"
Social Security number. Can be provided with or without hyphens.
"123456789"
ISO 639-1 language code
"en"
Name of the patient's guardian. Required if patient is a minor.
"John Guardian"
"6417383445"
Relationship of the guardian to the patient. See relationship types lookup for available values; most common are parent and legal_guardian; and other can be used.
"parent"
Height of the patient in inches
72
Weight of the patient in pounds
180
External (your own) ID for the patient, to be used for prescription matching
"1234567890"
Whether the patient is a smoker
false
Whether the patient is diabetic
false
Whether the patient is pregnant
false
Whether the patient should receive SMS notifications for shipments. This is only applicable if you have authorized Blend to send patient communications on your behalf.
true
Whether the patient should receive email notifications for shipments. This is only applicable if you have authorized Blend to send patient communications on your behalf.
true
Show child attributes
"140 Lindgren Streets"
"North Consueloburgh"
Two-letter state abbreviation
"CA"
5-digit ZIP code or 9-digit ZIP+4 code, e.g. 02108 or 02108-1234.
"02108"
"Apt 227"
Two-letter country code, defaults to US
"US"
Whether the order has a priority request
false
Show child attributes
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
Unique inventory identifier for the product
"1234567890"
"Mupirocin"
"A topical cream that is used to treat skin infections."
Customer reference for the product for use in electronic prescriptions.
"SUPERSPRAY15"
Optional category of the product for customer use, if desired.
"topicals"
Optional form of the product for customer use, if desired.
"cream"
Whether the product is currently active for purchase or prescription
true
Orientation of the printed product label, either portrait or landscape.
"portrait"
Optional strength of the product for customer use, if desired.
"1%"
Quantity of product in this specific order
2
Show child attributes
"00000000-0000-0000-0000-000000000201"
"Palatability"
"Commercial formulation has an unpleasant taste, texture, or odor."
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
Unique inventory identifier for the product
"1234567890"
"Krill Farms Fish Oil"
"A fish oil supplement complementary to prescribed products."
Optional category of the product
"nutrition"
Optional form of the product for customer use, if desired.
"liquid"
Whether the product is currently active for purchase
true
Quantity in this specific order
1
Show child attributes
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
Unique inventory identifier for the product
"1234567890"
"Referral Brochure"
"Customer brochure included in every shipment."
"marketing"
927
100
Whether the product has any inventory associated with it
true
Whether the material is customer-specific or Blend-wide (e.g. regulatory inserts)
false
Quantity of the material in this specific order
1
Whether the order has a replacement request
false
Date and time a replacement request was made
"2025-01-01T00:00:00Z"
Reason for the replacement request
"Product arrived damaged"
Show child attributes
Shipment carrier.
"USPS"
Blend internal shipment ID.
"0239CA06-9A71-4FFE-8A8D-5403540A19E7"
Shipment service level.
"Ground Advantage"
Date and time the package label was purchased and the item marked shipped.
"2025-01-01T00:00:00Z"
Tracking number for the shipment.
"9200190347375200467807"
Tracking URL for the shipment.
"https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9200190347375200467807"
"received"