- Introduction - BestRx APIs
- Patient API
- Drug API
- Prescription API
- Refill API
- BestPOS API
- Delivery/Shipping Provider API
- Realtime Data Feed Specification
Create Order
POST
/Order/CreateOrder
INFO
Request
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
bestrx_order_id
integer
required
Example:
123456789
bestrx_unique_order_id
integer
required
Example:
1001
pickup_date
string | null
optional
Example:
2020-05-31
requested_delivery_date
string | null
optional
Example:
2020-06-02
service_level
string | null
optional
Example:
normal
prescription_amount
number
required
Example:
32.15
otc_amount
number
required
Example:
65.24
tax_amount
number
required
Example:
54.23
total_amount
number
required
Example:
97.83
amount_to_collect
number
required
Example:
97.83
declared_amount
number
required
Example:
50
height
string
required
Example:
2 in
width
string
required
Example:
2 in
length
string
required
Example:
3 in
weight
string
required
Example:
8 oz
refrigeration_needed
boolean
required
Example:
false
signature_required
boolean
required
Example:
true
photo_id_required
boolean
required
Example:
false
delivery_notes
string | null
optional
Example:
Please leave on back porch if no one is home.
store
object
optional
bestrx_pharmacy_id
string
required
Example:
ef0a4740-0be9-44f7-b89d-9e66eeba0b9a
delivery_provider_acct_no
string
optional
Example:
98989898
name
string
required
Example:
BestRx Pharmacy
address
object
optional
phone
string
required
Example:
6308939210
fax
string
required
Example:
6303393171
email
string
required
Example:
pharmacy@bestrx.com
ncpdp
number
optional
Example:
1234567
npi
string
required
Example:
1234567890
dea
string
optional
Example:
BR1234563
recipient
object
optional
entity_name
string
required
Example:
Doe Industries
last_name
string
required
Example:
Doe
first_name
string
required
Example:
Jane
middle_name
string
optional
Example:
Joplin
address
object
optional
home_phone
string
required
Example:
6305551111
work_phone
string
optional
Example:
6305551111
mobile_phone
string
optional
Example:
45678946785
fax
string
optional
Example:
6305552222
email
string
optional
Example:
jane.doe@doeind.com
customers
array [object {5}]
optional
customer_unique_id
integer
required
Example:
111111
last_name
string
required
Example:
Doe
first_name
string
required
Example:
Jane
middle_name
string
optional
Example:
Joplin
address
object
optional
prescriptions
array [object {5}]
optional
customer_unique_id
integer
required
Example:
111111
rx_number
integer
required
Example:
610011
fill_date
string
required
Example:
2022-05-31
amount_due
number
required
Example:
10
partial_fill_seqno
number
optional
Example:
0
otc_items
array [object {5}]
optional
customer_unique_id
integer
required
Example:
111111
upc
string
required
Example:
616784366630
item_description
string
required
Example:
BANDAGE ELASTIC 6IN N LTX 3666
quantity
number
required
Example:
1
amount_due
number
required
Example:
25.26
consents
array [object {4}]
optional
consent_header
string
required
Example:
Enroll in Auto-Refills?
consent_text
string
required
Example:
The prescriptions in your order are eligible for our auto-refill program. Would you like to enroll in that program so that your prescriptions can be automatically refilled without you having to contact the pharmacy?
consent_inputs
array[string]
optional
consent_type
enum<integer>
optional
Allowed values:
01
Example
{
"bestrx_order_id": 123456789,
"bestrx_unique_order_id": 1001,
"pickup_date": "2020-05-31",
"requested_delivery_date": "2020-06-02",
"service_level": "normal",
"prescription_amount": 32.15,
"otc_amount": 65.24,
"tax_amount": 54.23,
"total_amount": 97.83,
"amount_to_collect": 97.83,
"declared_amount": 50,
"height": "2 in",
"width": "2 in",
"length": "3 in",
"weight": "8 oz",
"refrigeration_needed": "false",
"signature_required": "true",
"photo_id_required": "false",
"delivery_notes": "Please leave on back porch if no one is home.",
"store": {
"bestrx_pharmacy_id": "ef0a4740-0be9-44f7-b89d-9e66eeba0b9a",
"delivery_provider_acct_no": "98989898",
"name": "BestRx Pharmacy",
"address": {
"address_line_1": "2625 Butterfield Rd",
"address_line_2": "Suite 200S",
"city": "Oak Brook",
"state": "IL",
"zip_code": "60523"
},
"phone": "6308939210",
"fax": "6303393171",
"email": "pharmacy@bestrx.com",
"ncpdp": 1234567,
"npi": "1234567890",
"dea": "BR1234563"
},
"recipient": {
"entity_name": "Doe Industries",
"last_name": "Doe",
"first_name": "Jane",
"middle_name": "Joplin",
"address": {
"address_line_1": "500 Second Ave",
"address_line_2": "Suite 100",
"city": "Bloomingdale",
"state": "IL",
"zip_code": "60108"
},
"home_phone": "6305551111",
"work_phone": "6305551111",
"mobile_phone": "45678946785",
"fax": "6305552222",
"email": "jane.doe@doeind.com"
},
"customers": [
{
"customer_unique_id": 111111,
"last_name": "Doe",
"first_name": "Jane",
"middle_name": "Joplin",
"address": {
"address_line_1": "123 Main St",
"address_line_2": "Suite 10",
"city": "Lombard",
"state": "IL",
"zip_code": "60523"
}
}
],
"prescriptions": [
{
"customer_unique_id": 111111,
"rx_number": 610011,
"fill_date": "2022-05-31",
"amount_due": 10,
"partial_fill_seqno": 1
}
],
"otc_items": [
{
"customer_unique_id": 111111,
"upc": "616784366630",
"item_description": "BANDAGE ELASTIC 6IN N LTX 3666",
"quantity": 1,
"amount_due": 25.26
}
],
"consents": [
{
"consent_header": "Enroll in Auto-Refills?",
"consent_text": "The prescriptions in your order are eligible for our auto-refill program. Would you like to enroll in that program so that your prescriptions can be automatically refilled without you having to contact the pharmacy?",
"consent_inputs": [
"no"
],
"consent_type": "0"
}
]
}
Responses
🟢200OK
application/json
Body
data
object
optional
bestrx_order_id
integer
required
provider_order_id
string
required
Example:
123456
tracking_id
string
required
Example:
789456123
bestrx_pharmacy_id
string
optional
Example:
ef0a4740-0be9-44f7-b89d-9e66eeba0b9a
order_status
object
required
label_url
string
optional
Example:
https://developer.bestrxconnect.com/TestDispensingConsumerapi/images/BestRxDispenseLable.PNG
label_file_type
enum<integer>
optional
Allowed values:
1234
label_image
string
optional
Example:
Image in base 64 encoded string
manifesto_url
string
optional
Example:
https://developer.bestrxconnect.com/TestDispensingConsumerapi/images/BestRxDispenseLable.PNG
manifesto_file_type
enum<integer>
optional
Allowed values:
1234
manifesto_image
string
optional
Example:
Image in base 64 encoded string
bestrx_unique_order_id
integer
required
Example:
1001
tracking_url
string
optional
Example:
"https://developer.bestrxconnect.com/ordes/789456123"
request_is_valid
boolean
optional
Example:
true
messages
array [object {3}]
optional
message_code
string
optional
Example:
TP0001
message
string
optional
Example:
Error when insert order information.
message_type
enum<integer>
optional
Allowed values:
0123-1
Example
{
"data": {
"bestrx_order_id": 123456789,
"bestrx_unique_order_id": 1001,
"provider_order_id": "123456",
"tracking_id": "789456123",
"tracking_url": "https://developer.bestrxconnect.com/ordes/789456123",
"bestrx_pharmacy_id": "ef0a4740-0be9-44f7-b89d-9e66eeba0b9a",
"label_url": "https://developer.bestrxconnect.com/TestDispensingConsumerapi/images/BestRxDispenseLable.PNG",
"label_image": "",
"label_file_type": 1,
"manifesto_url": "https://developer.bestrxconnect.com/TestDispensingConsumerapi/images/BestRxDispenseLable.PNG",
"manifesto_image": "",
"manifesto_file_type": 1,
"order_status": {
"date": "2022-09-10T09:47:27.5232761Z",
"status_code": "1",
"status_code_description": "Order Created",
"status_notes": "An example would be if there was a delivery exception, the reason for that exception could be displayed here (\"recipient not home\")."
}
},
"request_is_valid": "true",
"messages": []
}
Modified at 2024-06-14 19:17:54