Documentation Index
Fetch the complete documentation index at: https://docs.hellocobi.com/llms.txt
Use this file to discover all available pages before exploring further.
Important: The offer model has a dependency on the shop model. The
shop_id field must reference an existing shop. It’s recommended to upload
shop data before uploading offers.Schema
Field Descriptions
Required Fields
| Field | Type | Format | Description |
|---|---|---|---|
offer_id | string | UUID | Unique identifier for the offer |
shop_id | string | UUID | ID of the shop offering the discount (must reference existing shop) |
name | string | - | Name of the offer |
type | string | - | Type of offer (e.g., “percentage”, “fixed”) |
value | number | float | Value of the offer (must be a positive number) |
region | string | - | Geographic region (2-letter country code, e.g., “CA” for Canada) |
Optional Fields
| Field | Type | Format | Description |
|---|---|---|---|
allowed_from | string | date-time | Start date and time of the offer (ISO 8601) |
allowed_to | string | date-time | End date and time of the offer (ISO 8601) |
allowed_branches | string | - | Comma-separated list of branch IDs |
allowed_days | string | - | Comma-separated list of days (e.g., “monday,tuesday”) |
created | string | date-time | Timestamp when the record was created |
updated | string | date-time | Timestamp when the record was last updated |
is_deleted | boolean | - | Flag indicating if the record is marked as deleted |
is_enabled | boolean | - | Flag indicating if the offer is currently enabled |
Example
Best Practices
- UUID Format: Use valid UUID v4 format for all ID fields
- Date/Time Format: Use ISO 8601 format for date-time fields
- Region Codes: Use ISO 3166-1 alpha-2 country codes (e.g., “CA” for Canada, “US” for United States)
- Offer Types: Use consistent offer types across your system (e.g., “percentage”, “fixed”)
- Value Format: Use decimal numbers for monetary values
- List Format: Use comma-separated values for allowed_branches and allowed_days
- Data Dependencies: Ensure shop_id references an existing shop