Sanal AI
  1. Data Structures
Sanal AI
  • Introduction
    • ๐Ÿš€ Sanal AI - Encore Data
    • ๐Ÿ› ๏ธ Getting Started
    • ๐Ÿค The Approach / Model
  • Data Structures
    • ๐Ÿ“ Data Layout
    • ๐Ÿช Merchants
    • ๐Ÿ“‚ Categories
    • ๐Ÿท๏ธ Items
    • ๐Ÿ›’ Products
    • ๐Ÿ“ฆ Inventory
    • ๐Ÿ‘ค Customers
    • ๐Ÿงพ Orders
    • ๐Ÿงพ Variants & Combinations
  • API Requirements
    • ๐Ÿ”Œ API Requirements
    • API: `syncMerchants`
    • API: `syncCategories`
    • API: `syncItems`
    • API: `syncProducts`
    • API: `syncInventory`
    • API: `syncCustomers`
    • API: `syncOrders`
  1. Data Structures

๐Ÿท๏ธ Items

This object represents the universal, abstract definition of a thing in our global catalog. It has no price and is not tied to a specific seller.

Fields#

NameTypeDescription
idstringThe unique identifier for this global item (e.g., item_...).
upc / eanstringOptional. The universal barcode for a retail product. Crucial for matching identical items across merchants.
brandstringOptional. The brand name (e.g., "Almarai", "Riyadh Burger House").
namestringThe official, universal name of the item (e.g., "Fresh Full Fat Milk - 1L", "Classic Riyadh Burger").
descriptionstringA detailed, neutral description of the item. Can include ingredients, materials, etc.
category_idsarrayAn array of IDs linking to one or more Categories model records.
is_activebooleanWhen false, the item should not be avaialable.
updated_atstringThe timestamp of the last modification (ISO 8601 UTC).

Sample JSON#

Retail (Branded) Example#
{
  "id": "item_almarai_milk_1l",
  "upc": "6281007041077",
  "brand": "Almarai",
  "name": "Fresh Full Fat Milk - 1L",
  "description": "Fresh cow's milk, pasteurized and homogenized. Enriched with Vitamins A & D. Keep refrigerated.",
  "category_ids": ["cat_milk", "cat_dairy"],
  "is_active": true,
  "updated_at": "2025-08-01T12:00:00Z"
}
Retail (Generic) Example#
{
  "id": "item_banana_each",
  "upc": null,
  "brand": null,
  "name": "Banana (Single)",
  "description": "Fresh, ripe banana, sold individually.",
  "category_ids": ["cat_fresh_produce", "cat_fruits"],
  "is_active": true,
  "updated_at": "2025-07-15T09:00:00Z"
}
Restaurant (Unique Item) Example#
{
  "id": "item_rbh_classic_burger",
  "brand": "Riyadh Burger House",
  "name": "Classic Riyadh Burger",
  "description": "A 100% Wagyu beef patty, special spices, melted cheese, and fresh greens on a toasted bun. Halal.",
  "category_ids": ["cat_burgers", "cat_main_courses"],
  "is_active": true,
  "updated_at": "2025-10-15T22:10:00Z"
}

Previous
๐Ÿ“‚ Categories
Next
๐Ÿ›’ Products
Built with