Ankorstore User API
ℹ️ This section describes the API endpoints for retrieving user and platform configuration. ## 💡 User Configuration The user configuration endpoints return locale and currency settings for the authenticated user. This is useful for adapting your integration to the user's preferences. ### Current User Retrieve the configuration for the currently authenticated user: ``` [GET] /api/v1/me/config ``` Returns: - `currency` - The user's preferred currency (e.g., `"EUR"`, `"GBP"`) - `country` - The user's country code (e.g., `"FR"`, `"DE"`) - `browserId` - A browser-session identifier ### Specific User You can also retrieve configuration for a specific user by UUID: ``` [GET] /api/v1/users/{id}/config ``` ## 💡 Platform Configuration The platform configuration endpoint returns global settings that apply to all users: ``` [GET] /api/v1/platform/config ``` Returns: - `cdn` - The CDN base URL for loading assets (e.g., product images) - `stripePublicKey` - The Stripe public key, needed if your integration handles payment flows client-side