Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
curl --location --request GET 'https://api.zid.sa//cart'{
"id": "cart_123",
"session_id": "sess_abc",
"phase": "cart",
"required_customer_email": false,
"currency": {
"cart_currency": {
"id": 2,
"name": "Saudi Riyal",
"code": "SAR",
"symbol": "ر.س",
"country": {
"id": 183,
"name": "Saudi Arabia",
"code": "SA",
"country_code": "+966",
"currency_code": "SAR",
"iso_code_2": "SA",
"iso_code_3": "SAU"
}
},
"cart_store_currency": {
"id": 2,
"name": "Saudi Riyal",
"code": "SAR",
"symbol": "ر.س",
"country": {
"id": 183,
"name": "Saudi Arabia",
"code": "SA",
"country_code": "+966",
"currency_code": "SAR",
"iso_code_2": "SA",
"iso_code_3": "SAU"
}
}
},
"customer": "customer_123",
"skip_address": false,
"requires_shipping": true,
"shipping_address": {
"id": 1,
"name": "Ahmed Ali",
"email": "ahmed@example.com",
"mobile": "+966501234567",
"address_street": "string",
"short_address": "string",
"address_formatted": "string",
"is_gift_address": false,
"city": {
"id": 0,
"name": "string"
},
"country": {
"id": 183,
"name": "Saudi Arabia",
"code": "SA",
"country_code": "+966",
"currency_code": "SAR",
"iso_code_2": "SA",
"iso_code_3": "SAU"
}
},
"products": [
{
"id": 0,
"product_id": "string",
"name": "string",
"sku": "string",
"quantity": 2,
"price": 100,
"price_string": "100 ر.س",
"total": 200,
"total_string": "200 ر.س",
"is_discounted": true,
"is_taxable": true,
"error_message": ""
}
],
"products_count": 3,
"products_weight": 4.5,
"products_subtotal": 300,
"totals": [
{
"code": "subtotal",
"title": "Subtotal",
"value": 300,
"value_string": "300 ر.س"
}
],
"total": {
"value": 345,
"value_string": "345 ر.س"
},
"created_at": "2025-12-29T06:25:47.487Z",
"is_reserved": false,
"basket_url": "https://store.example.com/cart",
"has_bundle_offer": true
}