Endpoints
Customer Recommendations
Get personalized recommendations for a specific customer based on their preferences and behavior.
Customer Recommendations
Authentication Required
This endpoint requires API key authentication via Bearer token in the Authorization header.Path Parameters
string (UUID)
required
Unique identifier for the customer to get recommendations for
Query Parameters
boolean
Whether to include segment-based recommendations in the response. Defaults to
false.
string
Filter recommendations by region (e.g., “BH” for Bahrain). Comma-separated
values for multiple regions.
Response
The API returns a JSON array of recommendation objects:Error Codes
Example
Best Practices
- Caching: Cache recommendations for frequently requested customers to improve performance
- Error Handling: Implement proper error handling for cases where no recommendations are available
- Rate Limiting: Be mindful of API rate limits (1000 requests per minute)
- Validation: Validate the customer_id format before making the request