Schema
Field Descriptions
Required Fields
| Field | Type | Format | Description |
|---|---|---|---|
recommendation_id | string | UUID | Unique identifier for the recommendation |
name | string | - | Human-readable name for the recommendation set |
student_id | string | UUID | Unique identifier for the customer |
offers | array | - | Array of offer UUIDs that are recommended |
type | string | enum | Type of recommendation (SELF or SEGMENT) |
Example
Best Practices
- UUID Format: Ensure all offer IDs are valid UUID v4 format
- Data Validation: Validate that all offer IDs exist in your system before using them
- Caching: Consider caching recommendations to improve performance
- Error Handling: Handle cases where the offers array might be empty