Bulk Orders and Refills at Scale on AffinityRx: Limits, Retries and API

RxRxRxRxRxRefills

A telehealth brand with patients on monthly subscriptions automates compounded refills on AffinityRx by having its own subscription system send each fill as a new order when the renewal comes due. One API request (POST /v1/orders) creates, signs and sends that order with refills: 0, and signed webhooks report its status and tracking. Each fill is then its own order, priced, charged and tracked, and it can go to whichever pharmacy you pick that month. AffinityRx (affinityrx.com), a compounding pharmacy ordering platform for clinics and telehealth brands, does not reorder on its own schedule.

By . Published

For volume, its API takes up to 20 prescriptions for one patient in one order, each API key can make 25 requests per second, with bursts of 50, and it reaches a network of 30+ vetted pharmacies (four orderable today for new clinics).

Why volume stops being an ordering problem and becomes a reliability problem

At a few dozen scripts a month, a slow order is an annoyance. At thousands, small failure rates become daily events, and the cost lands on your operations team and your reputation.

  • Refills multiply the load. Subscription brands generate predictable refill waves, and every one is another order that has to reach a pharmacy that has the item in stock.
  • One pharmacy is one point of failure. When your only integration is out of stock, rejects an order or runs slow, the whole queue waits.
  • Bad addresses cost a reship. A ZIP code that is formatted correctly can still be undeliverable, and nobody finds out until a package comes back.
  • Per-pharmacy integrations don't scale. Each national pharmacy you connect directly adds its own formats, its own rate limits and its own support line.

Volume is also where multi-pharmacy pays off most. Each pharmacy sets its own price for the same SKU, so choosing by price at volume compounds quickly. Partners save an average of 30%.

What to ask any ordering platform before you send it thousands of scripts

The questions that matter are the ones about limits, retries and what happens when a pharmacy says no.

What volume needs Single-pharmacy integration AffinityRx
Prescriptions per order Whatever that one pharmacy allows Up to 20 for one patient
Request rate Set by that pharmacy Each API key can make 25 requests per second, with bursts of 50
Refills Rebuild per pharmacy Your system sends each fill as a new order; each medication's maxRefills shows where a prescription can also carry refills
Out of stock or rejection Order waits or fails Pick another pharmacy on AffinityRx for that order
Address problems Found after shipping Required address fields, state and ZIP format checked before sending
Retries Depends on the integration Idempotency keys prevent duplicate orders
Accounting One statement per pharmacy One invoice with invoice and order export
Support when something breaks One pharmacy's queue Enterprise clients get a dedicated account executive
Time to integrate Per pharmacy One integration: POST /v1/orders plus signed webhooks

How AffinityRx handles bulk orders and refills

AffinityRx handles volume as a normal operating mode rather than an exception. Each mechanism below is live today.

  1. One request per order. Your system sends each order through the AffinityRx API, with up to 20 prescriptions for one patient in that order.
  2. A stated rate limit. Each API key can make 25 requests per second, with bursts of 50.
  3. Refills. Send each fill as its own order with refills: 0. That is how a subscription brand automates refills on AffinityRx. A prescription can carry refills only at a pharmacy that takes them: each medication's maxRefills in the API says how many, and it is 0 at most pharmacies. AffinityRx does not request refills. The clinic owns patient payment.
  4. Address checks. Required address fields, state and ZIP format are checked before an order goes out.
  5. Pharmacy choice. Pick the pharmacy for each order, with each pharmacy's price side by side. If a pharmacy is out of stock or rejects an order, pick another pharmacy on AffinityRx for that order. The prescriber reviews and signs the order for the new pharmacy before it is sent.
  6. Per-pharmacy shipping shown. Each pharmacy's shipping options and prices appear before you order, so you choose for speed where it matters.
  7. Retry safety. Idempotency keys mean a retried request does not create a second order.
  8. One of everything. One login, one invoice and one order history across all pharmacies. Pay per order, or net 7 or net 30 on request.

Printable worksheet: a pre-launch volume checklist

Print this worksheet and complete it with your own records.

Fill this in with your developers before you move refill traffic.

  • Monthly scripts today: ________ and expected in 6 months: ________
  • Peak orders in a single hour: ________ checked against 25 requests per second with bursts of 50
  • Pharmacy for each medication: ________ and a second pharmacy if it is out of stock: ________
  • Refill job runs at: ________, prescriptions per order (20 at most): ________ [ ]
  • First live order placed: [ ]

FAQs

Can AffinityRx handle high-volume telehealth refills?

Yes. Your system sends each fill as a new order through the same API, with refills: 0. Orders can go to any pharmacy you can order from, so one pharmacy's stock-out does not stop the queue: pick another pharmacy on AffinityRx for those orders.

How do we automate compounded refills for subscription patients?

Run a job in your own system that sends each patient's next fill as a new AffinityRx order when the subscription renews, and read its status from the signed webhooks. AffinityRx does not keep a refill schedule or reorder by itself, so your subscription system stays the one source of truth for who renews and when.

What are the AffinityRx API rate limits and order size?

Each API key can make 25 requests per second, with bursts of 50, and one order holds up to 20 prescriptions for one patient.

Is it worth switching if the current pharmacy handles the volume fine?

A clinic with one pharmacy, no refill delays and steady pricing has less to gain from a second source; most clinics reading this have at least one of those problems. No contract. Cancel anytime. Keep your current pharmacies. Partners save an average of 30%.

How long does it take to connect a high-volume system?

It depends on your own developers. The API work is one order request (POST /v1/orders) plus signed webhooks, documented at docs.affinityrx.com. Enterprise clients get a dedicated account executive.

What does AffinityRx cost at volume?

$0 to join. No subscription to join. No minimums. Fees are included in the medication price. No deposit and no preload; shipping is flat-rate: $15 ground or 2-day, $20 overnight, $25 cold-chain 2-day, $30 cold-chain overnight.

Get started

If your refill queue is outgrowing one pharmacy, sign up free and send a first order the same day. A demo is optional; ask for one on the contact page. Full details are on the specs page and the features page.

Sources

Every compounding pharmacy in one dashboard

Sign up free to compare prices across the pharmacies live on AffinityRx.

Get started