Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Data Reference
  • 🚨 Important Update: Zid Themes
  • Landing Page Development
  • Getting Started with Zid Themes
    • Introduction to Theme Development
    • Manage your Themes
    • Building Themes in Zid
    • Theme File Structure
    • Twig Syntax and Features
    • Zid Theme Packager
  • Templates
    • Layout
    • Home Page
    • Products
    • Cart
    • Store Language and Currency
  • Settings Schema
    • Text
    • Number
    • Text-Area
    • Select
    • Radio Buttons
    • Checkbox
    • Range
    • Color
    • Image
    • Product
    • Category
    • List
    • Fieldset
  • Code Snippets
    • Apple Pay Quick Checkout
    • Custom CSS Injection
    • Displaying the Store's Business Center Logo
    • Customizing Copyright Text
    • Store's Main Navigation Menu
    • Customer Wishlist
    • Products
      • Products Badges
      • Product Ratings
      • Remaining Product Stock
      • Sold Items Count
      • Product Filtration by Attributes
      • Grouped Products
      • Product Questions & Answers
      • Product Restock Notfication
    • SEO
      • Images alt text
      • Themes SEO Marketing Tags
    • Marketing
      • Metafields
      • Gift Feature
      • Loyalty Program
  • Zid Themes Library: API Integration
    • Products
    • Product Categories
    • Cart
    • Blog
    • Customer
    • Store Settings
  • Data Reference
    • Locals
    • Store
    • Cart
    • Product
    • Products List
    • Category
    • Categories List
    • Session
    • FAQs
    • Customer
    • Blogs
    • Page
    • Main Menu
    • Main Navigation Menu
    • Request
    • Orders
    • Addresses
    • Store Payment Methods
    • Store Shipping Methods
    • Store Banks
    • Asset URL
    • Header Meta Tags
    • Loyalty pogram Wallet
  • Themes CLI
    • CLI Authentication
    • Theme Create
    • Theme Package
    • Theme Update
    • Themes List
    • Theme Preview
  1. Data Reference

Session

You can change app language and shipping country, by making a POST Call to '/customer/lang-shipping-country'`using below Params:
redirect_to url to redirect after post
country country code supported by store
language language code 'ar' , 'en' if it's supported by store
'_token' as hidden input with value of {{csrf_token}}
"session": {
    "cartSessionId": "m7Ua4PauasAAA1xxxxxxxxxx",
    "countries": [
      {
        "id": 183,
        "name": "السعودية",
        "code": "SA",
        "country_code": "SAU",
        "flag": "<https://zid-testing.s3.eu-west-1.amazonaws.com/static/sa.svg>",
        "cities": []
      }
    ],
    "country": {
      "id": 183,
      "name": "السعودية",
      "code": "SA",
      "country_code": "SAU",
      "flag": "<https://zid-testing.s3.eu-west-1.amazonaws.com/static/sa.svg>",
      "city": {
        "id": 1,
        "name": "الرياض"
      }
    },
    "customerToken": null,
    "lang": {
      "id": 2,
      "name": "عربي",
      "code": "ar"
    },
    "currency": {
      "id": 2,
      "name": "Saudi Riyal",
      "code": "SAR",
      "symbol": "س.ر.",
      "country": {
        "id": 183,
        "name": "السعودية",
        "code": "SA",
        "country_code": "SAU",
        "flag": "<https://zid-testing.s3.eu-west-1.amazonaws.com/static/sa.svg>"
      }
    },
    "webView": false
  }
Modified at 2024-07-28 16:06:18
Previous
Categories List
Next
FAQs
Built with