The BitPayPostage API lets your store, marketplace or crypto checkout quote and buy USPS shipping labels in code. Labels are paid from prepaid account credit that you fund with Bitcoin, USDT, USDC or other coins, so you don't need a card on file or a monthly contract. It's a plain REST API at https://bitpaypostage.com/api/v1 that authenticates with an API key.
| Endpoint | Purpose |
|---|---|
| GET /status | Key details, permissions, monthly usage and current credit balance |
| POST /rates | Live shipping rates for a from/to address and package |
| POST /labels | Buy a label for a rate_id; returns the tracking number and label PDF |
| GET /labels | List labels bought with this key |
| GET /labels/:orderId | Look up a single label |
| POST /labels/:orderId/void | Void an unused label |
| POST /address/validate | Standardize and verify a shipping address |
| GET /credit | Current prepaid balance |
| POST /credit/topup | Create a crypto invoice to add credit |
| GET /transactions | Credit and label transaction history |
| GET /currencies | Cryptocurrencies accepted for top-ups |
Get rates for a 2 lb package:
curl https://bitpaypostage.com/api/v1/rates \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": {"name":"Your Store","street":"123 Main St","city":"Austin","state":"TX","zip":"78701"},
"to": {"name":"Customer","street":"456 Oak Ave","city":"Denver","state":"CO","zip":"80202"},
"weight_lbs": 2, "length": 10, "width": 8, "height": 4
}'
Then buy the rate you want with POST /labels, passing the rate_id and the same from address. The label cost is deducted from your credit before the label is created, and refunded automatically if the purchase fails.
POST /credit/topup.