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"
    }
  ]
}
'
{
"statusCode": 201,
"message": "All prescriptions created successfully",
"summary": {
"total": 2,
"successCount": 2,
"failureCount": 0
},
"success": [
{
"index": 0,
"prescription": {
"prescriptionId": "9594641e-1204-4af4-a51a-988c3ba26a81",
"cartItemId": "9594641e-1204-4af4-a51a-988c3ba26a81",
"patientId": "3a4b8a88-83e9-4ebd-ba62-dcbd218583ab",
"clinicId": "3b47a23f-9080-4a2e-a4fa-654d9aa76e80",
"prescriberId": "14b8f448-4081-7002-acaa-f14c4994917b"
},
"orders": {
"orderIds": [
"27920f00-68eb-45c0-92ef-9035ef416e8f"
],
"prescriptionIds": [
"9594641e-1204-4af4-a51a-988c3ba26a81"
]
},
"messages": {
"prescription": "Prescription added successfully",
"order": "Order(s) created successfully"
}
},
{
"index": 1,
"prescription": {
"prescriptionId": "45535eb5-ef0e-4ca9-862b-fbe7add7d41e",
"cartItemId": "45535eb5-ef0e-4ca9-862b-fbe7add7d41e",
"patientId": "3a4b8a88-83e9-4ebd-ba62-dcbd218583ab",
"clinicId": "3b47a23f-9080-4a2e-a4fa-654d9aa76e80",
"prescriberId": "14b8f448-4081-7002-acaa-f14c4994917b"
},
"orders": {
"orderIds": [
"0086572b-c34e-40af-a05b-0054837892b0"
],
"prescriptionIds": [
"45535eb5-ef0e-4ca9-862b-fbe7add7d41e"
]
},
"messages": {
"prescription": "Prescription added successfully",
"order": "Order(s) created successfully"
}
}
],
"errors": []
}

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.