1. Store
Returning.AI
  • Getting Started
  • Bulk Operations
    • List bulk update jobs
      GET
    • Get bulk update job status
      GET
    • Get bulk update job details
      GET
    • Bulk update users from CSV
      POST
    • Bulk update premium currency from CSV
      POST
  • Chart Analysis
    • Create Analysis
      POST
    • Get Analysis
      GET
    • Update Analysis
      PATCH
    • Delete Analysis
      DELETE
    • List Analyses
      GET
    • Append Drawings
      POST
  • Rewards & Redemptions
    • Update redemption order status
      PUT
    • List redemption orders by user email
      POST
    • List redemption statuses
      POST
    • Get redemption status by ID
      POST
    • List redemption orders by community
      POST
    • Create redemption order status
      POST
    • Get redemption order status history
      POST
  • Gamification
    • Leaderboards
      • List leaderboards with pagination
      • Create a new leaderboard
      • Update an existing leaderboard
      • Get a single leaderboard by ID
      • Delete a leaderboard
    • Streaks & Mini Games
      • List user streak logs
      • Update user spin-wheel information
    • Referral
      • Get referral programs
      • Get user's referral summary
    • Rolling Data
      • Get Daily Calculation Data
      • Get Rolling Calculation Data
    • Get tiers and XP settings
      GET
    • Get daily user gamification history
      POST
    • List user gamification logs
      POST
    • Get user activity stats
      POST
  • Messaging
    • Message Actions
      • Direct Channel
        • private DM channel
          • Reply Message
          • Send Message
          • React Message
        • public channel
          • Reply Message
          • Send Message
          • React Message
      • Forum Channel
        • Send Message
        • Reply Message
        • React Message
      • Text Channel
        • Reply Message
        • Send Message
        • React Message
      • Iframe Channel
        • Reply Message
        • Send Message
        • React Message
    • Get Messages
    • Send Message
    • Reply Message
    • React Message
    • Upload message images
  • Users
    • Get user
    • Get Users with Filters
    • Create New User
    • Get User Data
    • Manage User Account
    • List mini-game logs by user email
    • Get user's current Mini Games and Streak stats
    • Get User Milestones
    • Update User Data, Identifier, And Roles
  • Authentication
    • Register user with password
    • Verify user email
    • Log in user with password
    • Secure Auth
  • Channels
    • Iframe
    • List integration channels
  • Events
    • Outgoing webhooks
      • Encryption
      • User Joins Server
      • User Visits server
      • New Message Posted Anywhere
      • New Message Posted To channel
      • Purchased Store Item
    • Incoming webhooks
      • API Keys & Encryption
      • Send message into channels
      • Update Custom User Fields
      • Update In-game currency
  • Widgets
    • Authenticated Widgets
    • Public widgets
  • Store
    • Purchase History
      • Update purchase history redemption instructions or voucher details
    • Categories
      • List store categories
      • Create store category
      • Get store category by ID
      • Update store category
      • Delete store category
    • Products
      • List products
      • Create products in bulk
      • Create product with vouchers
      • Update products in bulk
      • Read product
      • Update product and append vouchers
      • Delete product
    • Redemption-transaction
      • Get Redemption Transaction Detail
    • Get store configuration
      GET
    • Update store configuration
      PUT
  • Community Analytics
    • Get Loyalty Overview
    • Get Phone Verification Contacts
  • Community
    • Appearance
      • Update community theme colors
      • Update community bot profile
      • Update community URL metadata
      • Update community name and URL
    • Community Users
      • Get community users
      • Get user
    • Create community
  • API Keys
    • Community API Keys
      • Create API key
      • Read API keys
      • Delete API key
      • Update API key
    • User API Keys
      • List user API keys
      • Create user API key
      • Update user API key
      • Delete user API key
      • Get current API key information
  • User Fields
    • User Field History
      • List Community User-Field History
      • List One Field Across Users
      • List One User Across Fields
      • List One User's One Field
      • Update A User Field Value
      • Deprecated Field-First History Write
      • Deprecated Field-First History Read
    • Create A User Field Definition
    • Get Specific User Field
    • Update Custom User Field
    • Delete Custom User Field
    • Get all user fields for a community
    • Delete user field
    • Update user field
    • Get specific user field
  • Legacy
    • Servers
      • Create server
      • List servers
      • Update server metadata
    • Bulk Operations
      • Bulk import users from CSV
    • Badges
      • List badges
      • Create badge
      • Update badge
      • Delete badge
      • Remove badge from user
      • Award badge to user
    • Messaging
      • Reply to message
      • Send message
      • React to message
    • Roles & Permissions
      • List server roles
      • Create role
      • Update role
      • Delete role
      • List user roles
      • Add role to user
      • Remove role from user
    • Users
      • Upload user avatar
    • Channels
      • Create channel
      • Update channel
      • Delete channel
    • API Keys
      • List integration API keys
      • Create integration API key
      • Delete integration API key
      • Update integration API key
  1. Store

Update store configuration

PUT
/stores
Updates the current community store configuration aggregate for the API-key's community and persists widget settings as part of the same operation.
Use this when a partner integration needs to save storefront display settings, currency labels, store copy, cover images, and widget configuration in one full update.
Authentication:
Bearer API key in Authorization header
API key must have the store permission
Community is resolved from the API key token — do not pass communityID
Returns 401 if the key is missing, invalid, or expired
Returns 403 if the key does not include the store permission
Side effects:
Publishes update:store-config to the store service
The store service updates _store_configs
The store service auto-creates or updates the community's _widgets document for the store widget
Internal widgetID linkage remains service-only and is not exposed in the partner response
Rate limits:
Standard API rate limits apply
Constraints:
The request body is a full replacement-style store configuration update
title is required when isEnabled is true and is limited to 32 characters
Cover and currency image values must be HTTPS URLs or empty strings
Widget size width and height must be zero or greater
Widget identifiers such as widgetID and widget._id must not be sent by clients
Upstream store-service failures return 502
Example — update:
{
  "isEnabled": true,
  "title": "Rewards Store",
  "description": "<p>Redeem community rewards.</p>",
  "cover": {
    "isEnabled": false,
    "light": "",
    "dark": ""
  },
  "currency": {
    "isEnabled": false,
    "name": "Coins",
    "light": "",
    "dark": ""
  },
  "widget": {
    "isEnabled": true,
    "allowedDomains": [
      "example.com"
    ],
    "accessMode": "development",
    "testUsers": [],
    "testRoles": [],
    "size": {
      "mode": "dynamic",
      "width": 400,
      "height": 400
    },
    "appearance": {
      "light": {
        "name": "white-smoke",
        "palette": {}
      },
      "dark": {
        "name": "black-beauty",
        "palette": {}
      },
      "useCommunityTheme": false
    },
    "callToAction": {
      "isEnabled": false,
      "text": "",
      "link": ""
    },
    "userIdentifierFields": []
  }
}
Related endpoints:
GET /stores

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Update store config success.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
🔴502Bad Gateway
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://sgtr-integration.returning.ai/apis/stores' \
--header 'Authorization: Bearer XXXXXX' \
--header 'Content-Type: application/json' \
--data '{
    "isEnabled": true,
    "title": "Rewards Store",
    "description": "<p>Redeem community rewards.</p>",
    "cover": {
        "isEnabled": false,
        "light": "",
        "dark": ""
    },
    "currency": {
        "isEnabled": false,
        "name": "Coins",
        "light": "",
        "dark": ""
    },
    "widget": {
        "isEnabled": true,
        "allowedDomains": [
            "example.com"
        ],
        "accessMode": "development",
        "testUsers": [],
        "testRoles": [],
        "size": {
            "mode": "dynamic",
            "width": 400,
            "height": 400
        },
        "appearance": {
            "light": {
                "name": "white-smoke",
                "palette": {}
            },
            "dark": {
                "name": "black-beauty",
                "palette": {}
            },
            "useCommunityTheme": false
        },
        "callToAction": {
            "isEnabled": false,
            "text": "",
            "link": ""
        },
        "userIdentifierFields": []
    }
}'
Response Response Example
200 - Success Example
{
    "meta": {
        "status": "success",
        "statusCode": 200
    },
    "message": "Update store config success.",
    "data": {
        "_id": "650a619360e8475d8ce4b2d4",
        "communityID": "6502c9e514a3e564c5c09c0a",
        "isEnabled": true,
        "title": "The Concept Trading update",
        "description": "<p>Redeem community rewards.</p>",
        "cover": {
            "isEnabled": false,
            "light": "",
            "dark": ""
        },
        "currency": {
            "isEnabled": false,
            "name": "Coins",
            "light": "",
            "dark": ""
        },
        "i18n": {
            "isTranslationEnabled": false,
            "titleTranslations": [],
            "descriptionTranslations": [],
            "translationPrompt": "",
            "translationIgnoreList": []
        },
        "widget": {
            "isEnabled": true,
            "allowedDomains": [],
            "accessMode": "live",
            "testUsers": [],
            "testRoles": [],
            "size": {
                "mode": "dynamic",
                "width": 400,
                "height": 400
            },
            "appearance": {
                "light": {
                    "name": "violet-dream",
                    "palette": {}
                },
                "dark": {
                    "name": "black-beauty",
                    "palette": {
                        "accent": "rgb(3, 169, 244)",
                        "text": "rgb(0, 150, 218)",
                        "background": "rgb(3, 23, 38)",
                        "divider": "rgb(19, 71, 95)",
                        "shadow": "rgba(26, 38, 43, .5)"
                    }
                },
                "useCommunityTheme": false
            },
            "callToAction": {
                "isEnabled": false,
                "text": "",
                "link": ""
            },
            "userIdentifierFields": [],
            "apiKey": "9d644e64ce43b0cfd4b428b03fb0f962f0f093078b2b618fbf1aaf7d8b668b06",
            "createdAt": "2026-04-15T12:41:45.223Z",
            "updatedAt": "2026-04-15T12:42:22.024Z",
            "__v": 0
        },
        "createdAt": "2026-04-15T12:41:45.223Z",
        "updatedAt": "2026-04-15T12:42:22.024Z",
        "__v": 0
    }
}
Modified at 2026-06-11 10:14:56
Previous
Get store configuration
Next
Get Loyalty Overview
Built with