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 transaction 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 transactions.Schema
Field Descriptions
Required Fields
| Field | Type | Format | Description |
|---|---|---|---|
transaction_id | string | UUID | Unique identifier for the transaction |
shop_id | string | UUID | ID of the shop where the transaction occurred (must reference existing shop) |
region | string | - | Geographic region (2-letter country code, e.g., “CA” for Canada) |
savings | number | float | Amount saved in the transaction (must be a non-negative number) |
amount | number | float | Total transaction amount (must be a positive number) |
Optional Fields
| Field | Type | Format | Description |
|---|---|---|---|
student_id | string | UUID | ID of the student making the purchase |
offer_id | string | UUID | ID of the offer used |
branch_id | string | UUID | ID of the branch location |
source | string | - | Source of the transaction (e.g., “online”, “in-store”) |
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 |
discount_name | string | - | Name of the discount applied |
discount_type | string | - | Type of discount (e.g., “percentage”, “fixed”) |
discount_value | number | float | Value of the discount |
Example
Best Practices
- UUID Format: Use valid UUID v4 format for all ID fields
- Numeric Values: Use decimal numbers for monetary values
- Region Codes: Use ISO 3166-1 alpha-2 country codes (e.g., “CA” for Canada, “US” for United States)
- Data Consistency: Ensure consistent data across all transaction records
- Discount Information: Provide complete discount details when available
- Data Dependencies: Ensure shop_id references an existing shop