Pharmacy
Prescriptions
Prescriptions Send

Send Prescription

Send a prescription related to an order to an external pharmacy or system

Overview

  • Method: POST
  • Path: /pharmacy/prescriptions/prescriptions/send
  • Tags: pharmacy

Parameters

No parameters required.

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
orderIdstringYesminLength: 1, maxLength: 200
documentsarray<object>Yes
externalPharmacyUrlstringNo
externalPharmacyApiKeystringYes

documents

  • Type: object

Responses

200

Successful response

Content Type: application/json

{
  "success": true,
  "message": "string",
  "orderId": "string",
  "prescriptionId": "string",
  "documents": [
    {}
  ],
  "sentAt": "string"
}

400

Bad Request

Content Type: application/json

{}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/pharmacy/prescriptions/prescriptions/send \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'