Sanal AI
  1. API Requirements
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. API Requirements

API: `syncItems`

This endpoint is used to synchronize the global Item catalog records.
Endpoint: POST /v1/syncItems

Request Payload#

KeyTypeDescription
commandstringThe action to perform: "create" or "update".
infoobjectThe full Item data object.
Sample Request Body#
{
  "items": [
    {
      "command": "create",
      "info": {
        "id": "item_saudi_dates_500g",
        "brand": "Riyadh Farms",
        "name": "Premium Saudi Dates - 500g",
        "is_active": true,
        "updated_at": "2025-10-16T15:05:00Z"
      }
    }
  ]
}
Previous
API: `syncCategories`
Next
API: `syncProducts`
Built with