Skip to main content
POST
/
prescriptions
/
create
curl --request POST \
  --url https://apidev.epiqconnect.com/prescriptions/create \
  --header 'Content-Type: application/json' \
  --header 'clinicId: <clinicid>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "patientId": "3a4b8a88-83e9-4ebd-ba62-dcbd218583ab",
  "external_patient_id": "PAT-2025-001",
  "address": {
    "address1": "465 W President George Bush Hwy",
    "address2": "Suite 240",
    "city": "Richardson",
    "state": "TX",
    "zipCode": "75080",
    "country": "US"
  },
  "prescriptions": [
    {
      "external_tracking_id": "RX-2025-001",
      "ndc": "12345-6789-01",
      "npi": "1234567890",
      "days_supply": 30,
      "quantity": 30,
      "sig": "Take one tablet by mouth once daily",
      "refills": 2,
      "isControlledDrug": false,
      "notes": "Patient reports no side effects with previous prescription",
      "isSubAllowed": true,
      "isAutoFlow": true,
      "rxCreateDate": "2025-10-06T10:00:00",
      "rxTransmitDate": "2025-10-06T10:00:00",
      "dea": "",
      "rxAttachment": "",
      "prescriberSig": ""
    },
    {
      "external_tracking_id": "RX-2025-002",
      "ndc": "98765-4321-02",
      "npi": "1234567890",
      "days_supply": 30,
      "quantity": 60,
      "sig": "Take two tablets by mouth once daily with food",
      "refills": 0,
      "isControlledDrug": true,
      "dea": "AB1234563",
      "rxAttachment": "base64EncodedPrescriptionHere",
      "prescriberSig": "base64EncodedSignatureHere",
      "notes": "Patient aware of potential side effects",
      "isSubAllowed": false,
      "isAutoFlow": true,
      "rxCreateDate": "2025-10-06T10:00:00",
      "rxTransmitDate": "2025-10-06T10:00:00"
    }
  ]
}
'
{
"order": {
"orderId": "ORD-JD-B46FFEBE5893",
"clinicId": "3b47a23f-9080-4a2e-a4fa-654d9aa76e80",
"prescriberId": "f488c428-f021-70f4-02d5-a38a31f01a8b",
"patientId": "3a4b8a88-83e9-4ebd-ba62-dcbd218583ab",
"success": {
"prescriptions": [
{
"prescriptionId": "ae59621c-7b43-4506-b783-a4842726b09f",
"rxNumber": null,
"ndc": "99999-0312-01",
"refills-remaining": 2,
"external_tracking_id": "RX-2025-001"
},
{
"prescriptionId": "4b0cfe38-38e2-4582-a36c-0b6aaf01d979",
"rxNumber": null,
"ndc": "99999-1002-01",
"refills-remaining": 2,
"external_tracking_id": "RX-2025-011"
}
]
},
"errors": null
}
}

Headers

clinicId
string
required

Clinic identifier

x-api-key
string
required

API Key for authentication

Body

application/json
patientId
string
required

Unique PatientID of the patient

Example:

"3a4b8a88-83e9-4ebd-ba62-dcbd218583ab"

external_patient_id
string
required

External patient ID in source system

Example:

"PAT-2025-001"

address
object
required

Patient address information

Example:
{
"address1": "465 W President George Bush Hwy",
"address2": "Suite 240",
"city": "Richardson",
"state": "TX",
"zipCode": "75080",
"country": "USA"
}
prescriptions
object[]
required

Array of prescription entries to be created for this patient

Example:
[
{
"external_tracking_id": "RX-2025-001",
"ndc": "12345-6789-01",
"npi": "1234567890",
"days_supply": 30,
"quantity": 30,
"sig": "Take one tablet by mouth once daily",
"refills": 2,
"isControlledDrug": false,
"notes": "Patient reports no side effects with previous prescription",
"isSubAllowed": true,
"isAutoFlow": true,
"rxCreateDate": "2025-10-06T10:00:00",
"rxTransmitDate": "2025-10-06T10:00:00",
"dea": "",
"rxAttachment": "",
"prescriberSig": ""
}
]

Response

Prescriptions added successfully.