Welcome to Lomadee API
The Lomadee API enables seamless integration and programmatic management of your affiliate campaigns, brands, and orders. Our RESTful API provides comprehensive endpoints to handle all aspects of your affiliate network operations.Base URL
The API is moving to
api.lomadee.com.br. The api-beta host still works today, but plan to update your base URL before it is shut down. Paths, headers, and response formats are unchanged.
See the Changelog for migration details.
Available Resources
Brands
- List and retrieve all available brands
- Get detailed information about specific brands
- Monitor approval status and access restrictions
- Track brand performance metrics
Channels
- List all affiliate-owned channels (used for link generation)
- Get a specific channel by ID
- Channels belong to the authenticated affiliate (
user_id), not to an organization
Campaigns
- List and filter active campaigns
- Campaign types:
- PersonalCoupon: Unique coupon codes for specific users
- GenericCoupon: Public coupon codes for general use
- Offer: Special promotional offers and deals
- Manage campaign lifecycle:
- Set validity periods
- Control campaign highlights
- Update status
- Organize by categories and tags
Orders
- Query and track completed orders
- Monitor commission status and earnings
- View detailed item information
- Track transaction values and commission rates
- Export order reports
Products
- List and search available products across all brands
- Filter products by price range, brand, and availability
- Access detailed product information including images and specifications
- View pricing, stock levels, and product variants
- Build product catalogs and recommendation systems
Authentication
All API requests require authentication using an API key in the request header:x-api-token). See API Keys for scopes and key formats.
Each affiliate key carries granular scopes. Missing scope returns 403 Forbidden.
Pagination
Pagination shape varies by resource. Query parameterspage and limit are supported where noted.
limit ceiling: maximum 20 on list endpoints that generate affiliate links (GET /affiliate/brands, GET /affiliate/campaigns). Values above 20 are clamped silently. Maximum 100 on orders, shortener, and partner list endpoints (clamp silently above 100). GET /affiliate/channels returns at most 20 channels. GET /affiliate/products returns 400 if limit is less than 1 or greater than 100.
Example with
meta (campaigns, orders, shortener):
pagination (brands):
count (products, channels):
Status Codes
200: Success - Request completed successfully400: Bad Request - Invalid parameters or malformed request401: Unauthorized - API key missing, invalid, or wrong type403: Forbidden - Valid key without required scope404: Not Found - Resource doesn’t exist429: Too Many Requests - Rate limit exceeded500: Internal Server Error - Server-side error
Rate limiting
Global limit: 60 requests per 60 seconds per API key and client IP. Every response may include:
When exceeded, the API returns
429 with Retry-After (seconds until retry) and X-RateLimit-Limit, X-RateLimit-Remaining (0), and X-RateLimit-Reset.
API Limits and Quotas
- Rate limiting: 60 requests per 60 seconds (per key + IP)
- Maximum payload size: 1MB per request
- Request timeout: 60 seconds
Best Practices
- Implement proper error handling
- Use pagination for large datasets
- Cache responses when appropriate
- Monitor rate limits
- Validate request parameters
Support and Resources
For technical assistance and API-related questions:- Comprehensive API Documentation
- Technical Support Portal
- Developer Portal with:
- API Reference
- Code Examples
- SDK Downloads
- Integration Guides