WooCommerce Integration Guide
WooCommerce Integration Guide
Connect WooCommerce with AtoShip to automate your WordPress store's shipping workflow.
Prerequisites
Before Connecting:
- WordPress with WooCommerce installed
- WooCommerce 5.0+ recommended
- AtoShip account
- WordPress admin access
Installation Methods
Option 1: WordPress Plugin
- Go to Plugins → Add New
- Search "AtoShip Shipping"
- Click Install Now
- Activate plugin
- Configure in Settings
Option 2: REST API Connection
- Generate WooCommerce API keys
- Enter in AtoShip dashboard
- Configure sync settings
Generating API Keys
In WooCommerce:
- Go to WooCommerce → Settings
- Click "Advanced" tab
- Click "REST API"
- Add Key:
- Description: AtoShip
- User: Admin
- Permissions: Read/Write
- Generate API Key
- Copy Consumer Key & Secret
Connecting to AtoShip
In AtoShip Dashboard:
- Go to Settings → Integrations
- Click "Add Store"
- Select WooCommerce
- Enter:
- Store URL
- Consumer Key
- Consumer Secret
- Click Connect
Sync Configuration
Order Import Settings:
| Setting | Description | Recommended |
|---|---|---|
| Status filter | Which orders to import | Processing |
| Sync frequency | How often | 15 minutes |
| Auto-create | Create labels automatically | Off |
Webhook Setup
Automatic Updates: Webhooks enable real-time sync.
Setting Up:
- WooCommerce → Settings → Advanced → Webhooks
- Add webhook:
- Name: AtoShip Order Update
- Topic: Order updated
- Delivery URL: (from AtoShip)
- Secret: (from AtoShip)
Data Mapping
What's Imported:
- Order number
- Customer details
- Shipping address
- Product info
- Order notes
- Shipping method
Weight Handling:
- Product weight from WooCommerce
- Override via SKU mapping
- Default weight fallback
Shipping Method Mapping
Map WC Methods to Carriers:
WC "Flat Rate" → USPS Priority Mail
WC "Free Shipping" → USPS Ground Advantage
WC "Local Pickup" → Do not import
Order Workflow
Standard Process:
WC Order (Processing) → Import → Ship → Update to Completed
Status Updates:
| AtoShip Action | WC Status |
|---|---|
| Label created | Completed |
| Tracking added | Note added |
Multi-Site Support
WordPress Multisite:
- Connect each site separately
- Individual API keys per site
- Unified view in AtoShip
Handling Variations
Product Variations:
- Full variation title imported
- SKU for mapping
- Attributes visible
Custom Fields
Adding Custom Data: WooCommerce custom fields can be:
- Passed to label notes
- Used for shipping rules
- Mapped to package details
Testing the Connection
Verify Setup:
- Create test order in WC
- Check import in AtoShip
- Create test label
- Verify WC status updates
Common Issues
Connection Errors:
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Bad API key | Regenerate keys |
| SSL Error | Certificate issue | Enable SSL |
| Timeout | Slow server | Increase timeout |
| CORS | Plugin conflict | Check security plugins |
Orders Not Syncing:
- Verify order status
- Check webhook delivery
- Review error logs
- Test API connection
Performance Tips
For Large Stores:
- Use webhooks (not polling)
- Batch process orders
- Schedule during off-peak
- Clean old orders periodically
Security Considerations
Best Practices:
- Use HTTPS only
- Rotate API keys periodically
- Limit IP access if possible
- Monitor API usage
Plugin Compatibility
Known Compatible:
- WooCommerce Subscriptions
- WooCommerce Bookings
- WPML
- Most shipping plugins
May Need Configuration:
- Custom checkout plugins
- Order management plugins
- Some page builders
Updating the Integration
When WooCommerce Updates:
- Test after updates
- Check webhook status
- Verify API still works
- Review any deprecations
Disconnecting
To Disconnect:
- Deactivate plugin (if used)
- Remove in AtoShip settings
- Delete API keys in WC
- Remove webhooks
Support Resources
Getting Help:
- WooCommerce docs
- AtoShip integration guide
- WordPress support forums
- [email protected]