For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Storefront configuration payload

active_currencystringRequired

ISO currency code currently active for the session

Example: TRY
available_currenciesstring[]Required

Currency codes enabled for the storefront

Example: ["TRY","EUR","USD"]
user_phone_regexstringRequired

Regular expression used for phone validation

Example: ^(?:\+?90)?5\d{9}$
user_phone_formatstringRequired

Suggested phone format for UI display

Example: +90 (5XX) XXX XX XX
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?