Integrations and API
Orders come in from storefronts and partners, labels are bought from your own carrier accounts, invoices sync to accounting, and a versioned REST API serves inventory, holds, orders and certificates to any system you run.
Integrations
Order channels
WooCommerceStorefront orders flow in. Live stock and certificates flow out through the Pharmagistic WordPress plugin.Orders, stock, COAs
Partner commerce APIOrders from partner storefronts, read with one scoped key per storefront.Orders
Pharmagistic APIHolds and orders placed directly by brands, telehealth platforms and marketplaces.Holds, orders, cancels
Inbound eventsOrder events queued, drained and reconciled so nothing is processed twice.Idempotent intake
Shipping
ShipStationQueue sync, label purchase, tracking pull and cancellations, per brand account.Labels, tracking
ShippoRates and label purchase straight from the shipping queue.Rates, labels
EasyshipCarrier selection and labels for 3PL client queues.Carriers, labels
Tracking writebackShipment status reconciled back to the order and its channel.Status
Accounting and monitoring
QuickBooks OnlineAn invoice per order at carrier handoff, a credit memo when a sale is reversed.Invoices, credit memos
Integration logEvery external call recorded with its operation, reference and result.Audit
Feed healthEach order feed watched for age and errors, per brand and per client.Monitoring
Signed webhooksOrder shipped and order held events, signed and retried until acknowledged.Events
REST API v1
A versioned partner API for live inventory, holds, orders, shipments and Certificates of Analysis. The contract is published as OpenAPI, and a sandbox key runs the same endpoints against rehearsal stock that can never ship.
- Scoped keys. Read-only or full access, optionally bound to one brand, rotated with a grace window.
- Holds. Reserve units for 30 minutes, then place the order from the hold in one transaction.
- Idempotency. Orders take an Idempotency-Key, so a retry never creates a second order.
- Date versioning. A breaking change gets a new version date and 90 days of overlap.
- Rate limits. A 429 carries Retry-After with the seconds to wait.
- Webhooks. HMAC-SHA256 signatures, dual signatures during secret rotation, retries until 2xx.
# Hold 12 units for 30 minutes POST /api/v1/reserve Authorization: Bearer pk_live_... { "items": [ { "sku": "SI-104-10ML", "qty": 12 } ], "ttl_minutes": 30 } # Place the pickable order from the hold POST /api/v1/orders Authorization: Bearer pk_live_... Idempotency-Key: 6f1c2e0a-8f43 { "reservation_token": "from the reserve response", "customer": { ... }, "shipping_address": { ... } }
| Endpoint | What it does |
|---|---|
| GET/api/v1/products | Every sellable SKU for the key, with availability |
| GET/api/v1/inventory | Available to promise for one SKU, by brand, with totals |
| POST/api/v1/check | Availability for one or more SKUs without a hold |
| POST/api/v1/reserve | Hold units, brand pool first, then shared stock where allowed |
| POST/api/v1/release | Release a hold |
| POST/api/v1/consume | Consume a hold at sale without creating an order |
| POST/api/v1/orders | Place the pickable order from a hold in one transaction |
| GET/api/v1/orders/{ref} | An order by id or Idempotency-Key |
| POST/api/v1/orders/{ref}/cancel | Cancel an order before it is picked |
| POST/api/v1/shipments/combine | Ship several orders in one box |
| GET/api/v1/shipments | The brand's shipping queue by modification time |
| GET/api/v1/receipts | Units received into the brand's stock, by batch and day |
| GET/api/v1/coa | The current certificate for every product, with PDF links |
| GET/api/v1/coa/lot/{lot} | The certificates for one lot number |
Book a walkthrough
See your products, facilities, order channels and carriers running on Pharmagistic.



