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 segment |
segment_id | string | - | Unique identifier for the customer segment |
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 segment recommendations as they change less frequently than individual customer recommendations
- Error Handling: Handle cases where the offers array might be empty