Best Practices
Best Practices
A few practical guidelines for using the Global Pricing & Tax Estimator API effectively.
Cache Strategically
- Cache responses per
(destinationCountry, productCategory, baseCurrency)whenever possible. - For static price tables, refreshing once per day is often enough.
- Use GET /v1/meta/fx to decide when to invalidate FX-sensitive caches.
Use displayPrice for UI
The engine already applies rounding and pricing strategies. Prefer:
displayPricefor user-facing prices.grossPricefor internal calculations or comparisons.
Distinguish “Beta” Markets
For countries with supportLevel: "beta":
- Consider adding a small “≈ estimated” tag in your UI.
- Avoid making legal or tax commitments based purely on these values.
- Treat them as guidance for pricing and UX, not compliance.