UPS Shipping - UPS REST API Integration
Modern UPS REST API integration for comprehensive shipping
The UPS Shipping module integrates with the latest UPS REST API to automatically calculate shipping rates on sales orders, create shipments and print UPS shipping labels, generate return labels, and track shipments online.
The module supports COD (cash on delivery), Saturday delivery, billing to customer UPS accounts, and automatic international commercial invoice generation.
Key Features
Key points
• Integration with latest UPS REST API for high performance
• Automatic shipping rate calculation on sales orders
• Create shipments and print UPS shipping labels
• Generate return labels automatically or manually
• Real-time online shipment tracking
• Support COD (cash on delivery)
• Support Saturday delivery
• Bill customer UPS accounts
• Automatic international commercial invoice generation
User Groups
User Permissions
| Group | Main Role |
|---|---|
| Sales Staff | Create orders, calculate UPS shipping rates |
| Warehouse Staff | Create shipments, print UPS labels, handle returns |
| Shipping Manager | Configure UPS methods, track costs |
EN/VI Terminology Reference
| Fields | Trường dữ liệu | Description |
|---|---|---|
| UPS Account Number | Số tài khoản UPS | UPS account number |
| UPS Client ID | ID máy khách UPS | Client ID from developer.ups.com |
| UPS Client Secret | Mã bí mật của máy khách UPS | Client Secret from developer.ups.com |
| UPS Service Type | Loại dịch vụ UPS | Ground, Next Day, 2nd Day, Worldwide Express |
| UPS Package Type | Loại kiện hàng UPS | Default package type |
| Package Size Unit | Đơn vị kích thước kiện hàng | Inches or Centimeters |
| Package Weight Unit | Đơn vị trọng lượng gói | Pounds or Kilograms |
| Label Format | Định dạng nhãn | PDF, ZPL, EPL, SPL |
| Bill My Account | Xuất hóa đơn tài khoản | Customer pays with UPS account |
| Saturday Delivery | Giao hàng thứ 7 | Allow Saturday delivery |
| COD Funding Option | Tùy chọn quỹ COD | COD payment method |
| Require Signature | Yêu cầu ký tên | Require receiver signature |
| Duties paid by | Người trả thuế quan | Sender or Recipient |
Register UPS Developer Account
Before configuration, create account and application on UPS Developer:
Steps
1. Create account on ups.com: Register business account, get UPS Account Number
2. Create application on developer.ups.com: Login, go to Apps and create new application
3. Fill information: App name, Callback URL (Odoo address), select APIs: Authorization, Address validation, Locator, Paperless Documents, Shipping and Rating
4. Accept terms and save
5. Get Client ID and Client Secret from created application
Configure UPS Shipping Method
Create and configure shipping method in Odoo:
Steps
1. Go to Inventory → Configuration → Delivery → Shipping Methods
2. Click New and fill: Shipping Method (name), Provider (UPS), Company
3. UPS Configuration tab - Authentication: UPS Account Number, UPS Client ID, UPS Client Secret
4. Configure service: UPS Service Type (Ground, Next Day, 2nd Day, etc.)
5. Select UPS Package Type (default package type)
6. Configure units: Package Weight Unit (Pounds/Kilograms), Package Size Unit (Inches/Centimeters)
7. Select Label Format: PDF, ZPL, EPL, SPL
8. Click Save and test connection with test order
Calculate Shipping Rates on Orders
Automatic rate calculation process:
Key points
• Conditions: Complete company address (city, country, phone, street, ZIP, state if US/CA/IE), complete warehouse address, complete customer address, all products have weight
Steps
1. Go to Sales → Orders → Quotations
2. Create or open order
3. Fill completely: Customer, delivery address, products and quantity
4. Click Add Shipping
5. Select UPS method
6. System automatically: Calls UPS API, adds shipping line, displays price in order currency
Create Shipment and Print UPS Label
Shipment creation process:
Key points
• Label information: Tracking barcode, sender/receiver address, service type, weight, reference code
• Print label: Label saved as attachment in chatter (LabelUPS.pdf), download and print
• Commercial invoice: For international shipments, auto-creates Commercial Invoice (UPSCommercialInvoice.pdf)
Steps
1. Confirm order (Confirm Sale Order)
2. Go to Inventory → Operations → Transfers
3. Open corresponding delivery order
4. Confirm quantity and pack (Validate)
5. Click Send to Shipper
6. System automatically: Calls UPS Shipping API, creates shipment, downloads label, attaches to chatter, updates tracking number
Create Return Label
Two ways to create return labels:
Key points
• Manual: Open shipped delivery order → Click Return → Create return picking → Confirm → Click Get Return Label
• Automatic: Enable Return Label on Delivery in configuration, return label auto-created when shipping
• Note: Sender/receiver addresses reversed, Duty payment always RECIPIENT, description has "return" prefix
Track Shipment
Tracking number and online tracking:
Key points
• View tracking number: Tracking Reference field on delivery order, multiple packages joined by +
• Track online: Click Track the shipment or tracking link, opens UPS tracking page
• URL: http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=[TRACKING_NUMBER]
Cancel Shipment
Cancellation process:
Key points
• Conditions: Can only cancel shipment not yet picked up by UPS
• After canceling: Can edit information and click Send to Shipper again
Steps
1. Open shipped delivery order
2. Click Cancel Shipment
3. Confirm cancellation
4. System: Calls UPS Void API, removes tracking number, resets price to 0, logs: "Shipment #[tracking] has been cancelled"
Bill My Account (Bill Customer UPS Account)
Allow customers to pay shipping fees with their UPS account:
Key points
• Usage: Create order with UPS having Bill My Account, UPS account number field appears, enter customer UPS account number
• When calculating rate: Price shows 0 (customer pays), shipping line: "[UPS] UPS Billing will remain to the customer"
• When creating shipment: UPS bills directly to customer account
• Save account number: Go to Contacts → Customers → Sales & Purchase tab → Fill UPS Account Number
Steps
1. Go to UPS shipping method
2. UPS Configuration tab → Options
3. Enable Bill My Account
4. Save
Advanced Service Options
Key points
• Saturday Delivery: Enable for Saturday delivery (not available with Ground, Standard, etc.), higher fee
• COD (Cash on Delivery): Enable Cash on Delivery, select COD Funding Option (Check/MoneyOrder), UPS collects money on delivery, only allows COD payment provider
• Require Signature: Enable to require receiver signature on delivery, increases security for high-value goods
• Duties Payment: Select Sender (shipper pays) or Recipient (receiver pays) for international shipments
• Shipping Insurance: Pricing tab → Fill Shipping Insurance (%), insurance value = total product value × %
Common Error Handling
Errors and Solutions
| Error | Cause | Solution |
|---|---|---|
| Invalid Authentication Information | Wrong Client ID/Secret | Check Client ID and Client Secret, ensure application approved |
| Address is missing or wrong | Missing address info | Check company, warehouse, customer address: City, Country, Phone, Street, ZIP, State |
| Phone must be at least 10 characters | Phone too short | Update phone number with at least 10 digits |
| Weight is missing | Product has no weight | Go to Products → Inventory tab → Fill Weight |
| UPS address max 35 characters | Address line too long | Split address into multiple lines (Street and Street2) |
| Packages no positive shipping weight | Package has no weight | Go to delivery order → Detailed Operations tab → Ensure Shipping Weight > 0 |
Practical Tips
Key points
• Data preparation: Update complete company and warehouse addresses, enter weight for all products, standardize phone numbers (at least 10 digits)
• Cost optimization: Compare service types (Ground cheaper than Express), use Bill My Account for large customers, pack efficiently to reduce size
• Shipping management: Enable Return Label on Delivery for easily returned products (fashion, electronics), use Require Signature for high-value goods, track regularly
• International shipping: Fill complete HS Code for products, choose correct Duties Payment, check weight limits for each service
• Error handling: Check logs in chatter, contact UPS support for account-related errors, use test environment when testing