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 postcountry
country code supported by storelanguage
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
}
Last modified: 6 months ago