Storefront Runtime Configuration
Bootstrap configuration for storefront applications, mobile clients, and guest sessions.
Overview
The runtime configuration endpoint is a public, unauthenticated endpoint designed to be invoked by web and mobile storefronts during client initialization. It informs the frontend about active feature toggles, accepted payment methods, enabled currencies, and store policies without requiring a client re-deploy.
Endpoint Details
1. Get Public Configuration
GET
/api/v1/config
Public / No Auth Required
Retrieves all storefront runtime switches, currencies, and payment capabilities.
Headers
| Header | Value | Required | Description |
|---|---|---|---|
Accept |
application/json |
Optional | Expected response format |
Request Examples
Response
Response Field Definitions
| Field | Type | Description |
|---|---|---|
guestCheckout |
boolean | When true, customers can place orders without creating a password-authenticated account. |
requirePolicyConsent |
boolean | When true, order placement strictly requires prior consent to terms and privacy policies. |
supportedCurrencies |
string[] | List of ISO 4217 currency codes accepted for pricing and multi-currency checkout. |
baseCurrency |
string | Store's default reference ledger currency (e.g. "USD"). |
paymentMethods |
string[] | List of currently usable payment methods (e.g. "COD", "STRIPE", "SSLCOMMERZ", "WALLET"). Prevents showing unpayable options. |
paymentProvider |
string | Configured payment gateway provider backend (e.g. "MANUAL", "STRIPE"). |
freeShippingThreshold |
string | Minimum cart subtotal qualifying for free ground shipping. |
returnWindowDays |
integer | Maximum number of days after delivery within which customers may initiate return or RMA requests. |