Site

Static configuration and metadata endpoints

Retrieve site configuration

get

Returns country, currency, and phone-formatting information for the storefront.

Business Logic:

  • Active currency resolved via session (falls back to default)

  • Country derived from DEFAULT_COUNTRY_CODE

  • Phone validation data sourced from dynamic settings

Header parameters
X-CookiestringOptional

Use X-Cookie header instead of Cookie header in "try out" section. Use Cookie header while testing in postman or other tools. Some commerce applications may support 'sesionid' instead of 'osessionid'.

Example: osessionid=abc123
Responses
200

Successful response

application/json
get
/config/
GET /config/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
200

Successful response

{
  "active_currency": "TRY",
  "available_currencies": [
    "TRY",
    "EUR",
    "USD"
  ],
  "country": {
    "pk": 223,
    "name": "Turkey",
    "code": "TR"
  },
  "user_phone_regex": "^(?:\\+?90)?5\\d{9}$",
  "user_phone_format": "+90 (5XX) XXX XX XX"
}

Last updated

Was this helpful?