AffinityRx documentation
Send compounded prescriptions to pharmacies from your platform or practice, and track each order. Use the API reference for endpoint details.
Get started
Build in Test mode with a Test API key. An admin turns on Live in Billing.
- Get started Sign in, create a Test API key, and send your first request.
- Choose a medication Read quantities, compounding reasons, states, and shipping options.
- Send an order Create, sign, and submit an order in one request.
- Receive order updates Verify webhook signatures and keep each order current.
Send an order in one request
Keep the workflow in your product
Your product collects the clinician's approval. One request creates the order, signs it for the prescriber, and sends it to the pharmacy.
- Name the prescriber by NPI.
- Retry safely with an Idempotency-Key.
- Keep API keys out of browser code.
POST /v1/orders
Idempotency-Key: create-order-123
{
"practiceId": "prac_...",
"prescriber": { "npi": "1234567893", ... },
"signatureAttestation": true,
"shipping": { "optionId": "shp_..." },
"patient": { "externalId": "patient-88", ... },
"prescriptions": [ ... ]
}