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
chevron-right
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/
200

Successful response

Last updated

Was this helpful?