BestRx APIs
Contact Us
  1. Delivery/Shipping Provider API
  • Introduction - BestRx APIs
  • Patient API
    • Overview
    • Error Codes
    • Add Patient
      POST
    • Update Patient
      POST
    • Get Patient
      POST
    • Submit Charge Account Payment
      POST
  • Drug API
    • Overview
    • Error Codes
    • Get Drug Information
      POST
  • Prescription API
    • Overview
    • Error Codes
    • Submit Rx Transfer Request
      POST
    • Return to Stock
      POST
    • Save Rx Signature
      POST
  • Refill API
    • Overview
    • Error Codes
    • GetPatientProfile
      POST
    • Send Refill Request
      POST
  • BestPOS API
    • Overview
    • Error Codes
    • Create POS Transaction
    • Get POS Transaction Status
    • Get Item Details
  • Delivery/Shipping Provider API
    • Overview
    • Error Codes
    • Address Validation
      POST
    • Create Order
      POST
    • Update Order Status
      POST
    • Cancel Order
      POST
  • Realtime Data Feed Specification
    • Overview
    • Patient Update Callback
    • E-Prescription Notification Callback
    • Prescription Update Callback
  1. Delivery/Shipping Provider API

Create Order

POST
/Order/CreateOrder
INFO
This endpoint is used to create an order.

Request

Header Params

Body Params application/json

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

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
Previous
Address Validation
Next
Update Order Status