Prerequisites
Before you begin, make sure you have:- A Traddal account — sign up at traddal.com
- Your API credentials (
client_idandclient_secret) from the dashboard - A tool for making HTTP requests (cURL, Postman, or your preferred language)
Base URLs
We recommend using the sandbox for testing — see Environments for details.
Step 1: Get an access token
Use the OAuth2 client credentials flow to obtain a Bearer token.Tokens expire after 1 hour. Sandbox tokens only work on the sandbox URL — use production credentials for
api.traddal.com.Step 2: Classify a product
Use your token to classify a product and get the HS code.mode options:
mini: fastestpro: balanced/defaultmax: highest accuracy
Step 3: Calculate duties
Calculate customs duties and taxes for an international shipment.Next steps
Environments
Learn about sandbox vs production and how to switch between them.
Authentication
Learn more about token management and OAuth2 flows.
API Reference
Explore the full API reference with all endpoints.