Tango MCP - Best Practices
1. Authentication
- Always authenticate before making any API calls
- Store credentials securely using environment variables
- Re-authenticate if you receive authentication errors
2. Customer Management
- Use meaningful customer identifiers that are unique to your system
- Maintain a mapping between your internal user IDs and Tango customer identifiers
- Create separate accounts for different purposes (e.g., rewards, incentives, gifts)
3. Order Processing
- Always verify catalog items before placing orders
- Check account balances before processing orders
- Store reference order IDs for tracking and customer service
- Use descriptive messages for gift cards to personalize the experience
4. Error Handling
- Implement retry logic for transient failures
- Log all order attempts and responses
- Monitor for failed email deliveries and use resend functionality when needed
5. Currency Considerations
- Always specify currency codes when working with international orders
- Verify that the catalog item supports the intended currency
- Be aware of exchange rates when dealing with multiple currencies
Updated 9 months ago
What’s Next
