eCommerce Platform That Connects to a Courier API Automatically (EasyPost + Worker)
Short answer: Shop-E-Business connects to a courier API automatically through a Cloudflare Worker it generates for you. On Tier-2 ($18/year), the Worker holds your EasyPost key as a secret (COURIER_API_KEY), calls the EasyPost shipments endpoint for each paid Stripe order, and reports status back. Developers can swap or add courier APIs by editing the Worker.
The connection pieces
| Piece | Value |
|---|---|
| Secret | COURIER_API_KEY (EasyPost key) |
| Variable | EASYPOST_SHIPMENT_URL = https://api.easypost.com/v2/shipments |
| Routes | yourdomain.com/apiEndpoint, yourdomain.com/stripe-webhook |
| Auth | Short-lived HS256 JWT from Shop-E-Business |
API references: EasyPost Shipments API, Cloudflare Workers docs, Stripe webhooks docs.
Why a Worker?
Your keys never leave your Cloudflare account, the script contains no seller-specific values, and you can change courier logic without waiting for a platform update. See the Expose API and Cloudflare Worker guide.
Requirements
- Tier-2 ($18/year) or Tier-1 plus the $8/year custom-domain add-on.
- A verified custom domain with DNS on Cloudflare (proxied records, SSL Full (Strict)).
- Your own Stripe account and EasyPost account with API keys.
- Courier settings saved: sender name, ship-from address, parcel length/width/height (inches) and weight (ounces).
Ship Paid Orders Automatically
Tier-2: own domain + Stripe Checkout + automatic EasyPost shipments for $18/year. 0% transaction fees. 3-day free trial.
Start Your 3-Day Free TrialFrequently Asked Questions
How does Shop-E-Business connect to a courier API?
Through a generated Cloudflare Worker that calls EasyPost with your key on each paid Stripe order.
Where is the courier key stored?
As the COURIER_API_KEY secret in your own Worker.
Can I use a different courier API?
Developers can edit the Worker to plug in other couriers.
Which plan?
Tier-2 at $18 per year or the $8/year add-on.
Ready to switch? Start your 3-day free trial at shopebusiness.com: no credit card, 0% transaction fees, $10/year after the trial.
Start Your 3-Day Free Trial