Shipping API
Get shipping rates
Section titled “Get shipping rates”Shipping rates are returned by POST /api/v1/checkout/initiate based on cart weight and destination.
Rate calculation
Section titled “Rate calculation”Rates are calculated by the configured shipping provider:
Weight-based (default)
Section titled “Weight-based (default)”- Total cart weight (from product weights)
- Destination country
- Zone-based rates per 0.5kg
Flat rate (manual)
Section titled “Flat rate (manual)”- Standard: $10
- Express: $25
- Free (orders > $100): $0
Track shipment
Section titled “Track shipment”GET /api/v1/shipments/:id/trackingAuthorization: Bearer <token>Shipping providers
Section titled “Shipping providers”| Provider | ID | Description |
|---|---|---|
| Weight-based | weight_based | Zone-calculated rates |
| Manual | manual | Flat-rate options |
| DHL | dhl | DHL Express API |
| FedEx | fedex | FedEx API |
| UPS | ups | UPS API |
| USPS | usps | USPS API |
Enable carrier integrations in config with API credentials.