Get electronic prescription
curl --request GET \
--url https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"patient_id": "<string>",
"prescriber_id": "<string>",
"source": "api_json",
"type": "NewRx",
"medications": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"electronic_prescription_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"refill_risk": {
"applicable": true,
"not_applicable_reason": null,
"at_risk": true,
"reasons": [
"prescriber_license_expiring"
],
"relevant_states": [
"CA"
],
"predicted_next_fill_date": "2026-08-15",
"last_fill_date": "2026-05-20",
"days_supply_used": 90,
"dispensed_days_supply": 90,
"is_controlled": false,
"covering_licenses": [
{
"state": "CA",
"license_number": "A12345",
"expiration_date": "2027-06-30"
}
],
"earliest_covering_expiration": "2026-07-01",
"days_until_next_fill": 26,
"days_until_license_expiry": 10
},
"patient_id": "<string>",
"prescriber_id": "<string>",
"prescription_product_id": "<string>",
"days_supply": 30,
"description": "<string>",
"directions": "<string>",
"drug_name": "<string>",
"expires_at": "2026-04-25T00:00:00",
"fills_remaining": 3,
"transfer_fills": 0,
"name": "Topical Rapamycin",
"notes": "Please dispense 30 days supply",
"product_code": "<string>",
"product_code_type": "<string>",
"quantity": 30,
"refills": 2,
"serial_number": "100721",
"sig": "<string>",
"status": "new",
"strength": "<string>",
"substitution_allowed": true,
"units": "C48480",
"written_at": "2025-04-25T00:00:00"
}
],
"reference_number": "<string>",
"xml": "<string>"
}Electronic Prescriptions
Get electronic prescription
Retrieve an electronic prescription by ID. Electronic prescriptions may contain multiple medications.
GET
/
api
/
v1
/
prescriptions
/
electronic_prescriptions
/
{electronic_prescription_id}
Get electronic prescription
curl --request GET \
--url https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.byblend.com/api/v1/prescriptions/electronic_prescriptions/{electronic_prescription_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"patient_id": "<string>",
"prescriber_id": "<string>",
"source": "api_json",
"type": "NewRx",
"medications": [
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"customer_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"electronic_prescription_id": "b658f16f-819c-4503-aede-bd555fc4ebfb",
"refill_risk": {
"applicable": true,
"not_applicable_reason": null,
"at_risk": true,
"reasons": [
"prescriber_license_expiring"
],
"relevant_states": [
"CA"
],
"predicted_next_fill_date": "2026-08-15",
"last_fill_date": "2026-05-20",
"days_supply_used": 90,
"dispensed_days_supply": 90,
"is_controlled": false,
"covering_licenses": [
{
"state": "CA",
"license_number": "A12345",
"expiration_date": "2027-06-30"
}
],
"earliest_covering_expiration": "2026-07-01",
"days_until_next_fill": 26,
"days_until_license_expiry": 10
},
"patient_id": "<string>",
"prescriber_id": "<string>",
"prescription_product_id": "<string>",
"days_supply": 30,
"description": "<string>",
"directions": "<string>",
"drug_name": "<string>",
"expires_at": "2026-04-25T00:00:00",
"fills_remaining": 3,
"transfer_fills": 0,
"name": "Topical Rapamycin",
"notes": "Please dispense 30 days supply",
"product_code": "<string>",
"product_code_type": "<string>",
"quantity": 30,
"refills": 2,
"serial_number": "100721",
"sig": "<string>",
"status": "new",
"strength": "<string>",
"substitution_allowed": true,
"units": "C48480",
"written_at": "2025-04-25T00:00:00"
}
],
"reference_number": "<string>",
"xml": "<string>"
}Authorizations
Path Parameters
Query Parameters
Response
200 - application/json
Successful response with electronic prescription