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

RxRxRxRxRxRefills

Telehealth brands that send hundreds to thousands of compounded prescriptions a month hit the same wall: orders and refills are placed one at a time, one pharmacy at a time, and every stock-out or bad address stalls a patient. The fix is a multi-pharmacy routing platform with a real bulk path, and AffinityRx (affinityrx.com), a B2B compounding pharmacy marketplace for clinics and telehealth brands, is built for it. Its API accepts batches of 20 orders at 300 requests a minute, both raised on request, supports refills, validates shipping addresses for deliverability, and fails over to the next favorite pharmacy automatically across 15+ licensed pharmacies.

By Tim Yoon, CEO, AffinityRx. Published

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. Across 18 common compounded-medication SKUs (semaglutide, tirzepatide, NAD+, glutathione and Lipo-B) priced on AffinityRx on October 1, 2026, the most expensive pharmacy for the same SKU was 13.5% to 100% higher than the lowest-priced one, so routing by price at volume compounds quickly.

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
Many orders per call Whatever that one pharmacy allows Batches of 20 via API
Request rate Set by that pharmacy 300 requests a minute, raised on request
Refills Rebuild per pharmacy Refills supported
Out of stock or rejection Order waits or fails Moves automatically to the next favorite pharmacy
Address problems Found after shipping Deliverability validated, not just ZIP format
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 One support contact, 24/7/365 humans, sub-10-minute replies
Time to integrate Per pharmacy About 1 day, test order the same day

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 unless a date is given.

  1. Batches of 20. Your system submits orders through the AffinityRx API in batches of 20, so a nightly refill job is a handful of calls rather than thousands.
  2. Limits that move with you. The default is 300 requests a minute; both the batch size and the rate limit are raised on request when your volume grows.
  3. Refills. Refills are supported, so recurring prescriptions run through the same path as first orders.
  4. Address validation. Shipping addresses are checked for deliverability, not just ZIP format, before an order goes out.
  5. Failover. Set a primary pharmacy plus second and third favorites. If the primary is out of stock or rejects an order, the order moves to the next favorite. Prescriber re-sign is the default; turn on auto re-sign and it reroutes with no extra step.
  6. Per-pharmacy turnaround shown. Turnaround runs from about 1 day to 5 depending on the pharmacy, and AffinityRx displays it so you route 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, one order history and one support contact across all pharmacies, with a dedicated account executive. Net terms for larger groups are negotiated.

Proactive auto-routing to in-stock pharmacies launches Q4 2026, and live stock and backorder status launches Q1 2027. Until then, failover handles stock-outs after the fact.

Practical asset: a pre-launch volume checklist

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

  • Monthly scripts today: (fill in) and expected in 6 months: (fill in)
  • Peak orders in a single hour: (fill in) so you can ask for a higher rate limit up front
  • Primary pharmacy: (fill in), second favorite: (fill in), third favorite: (fill in)
  • Auto re-sign on or off for rerouted orders: [ ]
  • Refill job runs at: (fill in), batch size: 20 [ ]
  • Test order placed: [ ] Live approval requested: [ ]

FAQs

Can AffinityRx handle high-volume telehealth refills?

Yes. AffinityRx supports refills through the same API as new orders, accepts batches of 20 at 300 requests a minute, and raises both limits on request. Orders route across 15+ licensed pharmacies, so one pharmacy's stock-out does not stop the queue.

What are the AffinityRx API rate limits and batch size?

The default is 300 requests a minute and batches of 20 orders via API. Both are raised on request, so a brand growing from hundreds to thousands of scripts a month asks its account executive rather than re-architecting.

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 route; most clinics reading this have at least one of those problems, and AffinityRx adds a second route rather than demanding a full switch, and clinics typically save about 10% versus their current price. Bulk import of patients, order history and active refills from RxRelay, LifeFile or a direct pharmacy keeps the move light.

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

Headless API integration is about 1 day of developer work, depending on how well built your front and back end are. A test order goes through the same day, and Live approval follows as soon as you request it, with sub-10-minute support replies.

What does AffinityRx cost at volume?

Joining is $0, with no subscription, no per-order fees and no minimum order. You preload a $5,000 credit that never expires and is refundable after a 90-day trial if you decide not to continue; shipping is added at typically $15 to $30 per order.

Book a demo

If your refill queue is outgrowing one pharmacy, bring your monthly volume to a demo and ask for the limits you need. Press the Book a demo button on the right side of this page. To compare other routes first, read Impetus One Alternatives for Brands That Don't Need a White-Label EMR, or see how AffinityRx works with Cuvo and MyOrbitHealth. Full details are on the specs page and the features page.

Sources

Every compounding pharmacy in one portal

Book a demo to compare prices across 15+ vetted pharmacies.

Book a demo