Seller Integration Hub
Empower your store with real-time global shipping and tax calculations
Add POTAL to your store in 2 minutes. No backend integration required.
Quick Start
Copy and paste this code snippet into your product page HTML. Our widget will automatically calculate accurate shipping costs and taxes in real-time.
View Full Quick Start Guide →<!-- POTAL Widget --> <script src="https://www.potal.app/widget/potal-widget.js"></script> <!-- Embed the widget with your API key --> <div data-potal-widget data-api-key="YOUR_API_KEY" data-product-name="Your Product Name" data-price="99.99" data-shipping="15.00" data-origin="US" data-theme="light" ></div>
Try It Live
Change the parameters below and see the request and response update in real-time. Mock data — sign up for a free API key to make real calls.
Parameters
curl -X POST https://www.potal.app/api/v1/calculate \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"from_country": "CN",
"to_country": "US",
"hs_code": "6109.10",
"value": 49.99,
"currency": "USD"
}'Click “Send Request” to see the response
API Reference
Integrate directly with our REST API for custom implementations. All endpoints require authentication with your API key.
/api/v1/calculate
Calculate shipping cost, duties, and taxes for a single product.
Request:
price, shipping, origin, destination
Response:
total_cost, tax, duties
/api/v1/calculate/batch
Calculate for up to 100 products in a single request.
Request:
items: array of products
Response:
results: array
/api/v1/countries
Get list of supported countries. Public endpoint, no auth required.
Request:
No parameters
Response:
countries: array
Need more details? View Full API Documentation →
Authentication
All API requests (except public endpoints) require authentication via the X-API-Key header.
API Key Format
Error Codes
| Status | Meaning | Solution |
|---|---|---|
| 401 | Missing or invalid API key | Check X-API-Key header is set correctly |
| 403 | Plan limit exceeded or key disabled | Upgrade your plan or contact support |
| 429 | Rate limit exceeded | Wait and retry, or upgrade for higher limits |
Widget Customization
Customize the widget behavior and appearance to match your store's design.
Data Attributes
Your POTAL API key (required)
Product name for tracking
Product price in USD
Base shipping cost in USD
Origin country code (e.g., US, CN)
light or dark mode
Theme Options
Callback Events
Fired when calculation completes
Fired when error occurs
Fired when user changes selection
Ready to Get Started?
Integrate POTAL today and start offering real shipping calculations to your customers.