> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stash.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Force refresh catalog

> Refreshes a web shop's cached catalog so the next time a player opens the shop it reflects the latest catalog from your game backend. Applies only to shops with a real-time catalog integration; for any other integration it is a no-op that still returns success. You rarely need to call it: the catalog already refreshes automatically after web shop purchases and free-gift redemptions, and checkout always revalidates against the server. It is most useful after an in-game purchase (outside the web shop) when you want the catalog view in the Web Shop to update right away. Name the players to refresh in player_ids; when several players need a refresh at the same time, send them in one request rather than one request per player.



## OpenAPI

````yaml /ingress-openapi.json post /sdk/server/catalog/force-refresh
openapi: 3.0.0
info:
  title: Stash API
  description: >-
    Set of APIs for integrating Stash functionality into games. API set includes
    authentication, payment processing, checkout links, user management, and
    various platform-specific integrations. The API supports both client-side
    and server-side implementations with appropriate security measures for each
    context.
  version: '1.0'
servers:
  - url: https://test-api.stash.gg
security: []
tags:
  - name: Catalog
    description: >-
      Server-side catalog endpoints for shops with a real-time catalog
      integration.
  - name: Launcher Payment
    description: Payment processing endpoints for Stash Launcher.
  - name: Subscription Checkout Links
    description: Checkout link generation for subscription purchases
  - name: Webshop Account Linking
    description: >-
      Authentication endpoints for integrating third-party login providers or
      custom login with Stash Webshops.
  - name: Payments
    description: Payment history and transaction management endpoints
  - name: Pricing
    description: Server-side pricing endpoints for fetching uploaded price sheet data
  - name: Stash Pay
    description: Server-side quick payment endpoints for internal use
  - name: Web Shop
    description: Server-side endpoints that control your web shop.
  - name: Subscription Plans
    description: Retrieve subscription plan details and pricing
  - name: Subscriptions
    description: Manage player subscriptions - retrieve, cancel, and reactivate
  - name: Server URLs
    description: Server-side URL generation endpoints for authenticated URLs
  - name: User Preferences
    description: User preferences management endpoints for payment channel preferences
  - name: Loyalty
    description: >-
      Endpoints for reading a shop's loyalty program and, for enabled shops,
      configuring it
  - name: Localization
    description: >-
      Endpoints for refreshing a shop's localizations from its localization
      source
  - name: Reports
    description: >-
      Endpoints for listing a shop's daily transaction files and downloading
      them through signed links
paths:
  /sdk/server/catalog/force-refresh:
    post:
      tags:
        - Catalog
      summary: Force refresh catalog
      description: >-
        Refreshes a web shop's cached catalog so the next time a player opens
        the shop it reflects the latest catalog from your game backend. Applies
        only to shops with a real-time catalog integration; for any other
        integration it is a no-op that still returns success. You rarely need to
        call it: the catalog already refreshes automatically after web shop
        purchases and free-gift redemptions, and checkout always revalidates
        against the server. It is most useful after an in-game purchase (outside
        the web shop) when you want the catalog view in the Web Shop to update
        right away. Name the players to refresh in player_ids; when several
        players need a refresh at the same time, send them in one request rather
        than one request per player.
      operationId: ForceRefreshCatalog
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pie.sdk.catalog.ForceRefreshCatalogRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pie.sdk.catalog.ForceRefreshCatalogResponse
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      security:
        - hmac: []
        - deprecatedApiKey: []
components:
  schemas:
    pie.sdk.catalog.ForceRefreshCatalogRequest:
      type: object
      properties:
        playerId:
          type: string
          description: >-
            Deprecated: use player_ids. Refreshes the catalog of this one
            player; it still works, and a player_id sent alongside player_ids is
            refreshed too. Never leave out both player_id and player_ids unless
            you know exactly what you are doing: a request that names no player
            forces a catalog refresh for every single player of your shop, which
            can make the Web Shop much slower for all players across the board
            and cause a spike of API calls to your external catalog API server.
        playerIds:
          type: array
          items:
            type: string
          description: >-
            The players whose catalogs to refresh, at most 100 ids of 1 to 128
            characters each, using printable ASCII other than spaces, double
            quotes and backslashes. Send every player you want refreshed in one
            request instead of one request per player. Each player is refreshed
            once however often the id repeats, and an id with no cached catalog
            is accepted and changes nothing. Send at least one id: a request
            signed with HMAC that sends an empty list is refused, and a request
            that leaves out both player_ids and player_id refreshes every player
            of your shop. A player_id sent alongside the list is refreshed too.
    pie.sdk.catalog.ForceRefreshCatalogResponse:
      type: object
      properties:
        refreshed:
          type: boolean
          description: >-
            True when the catalog was refreshed. False when the shop does not
            use a real-time catalog integration and the call was a no-op.
    google.rpc.Status:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/google.protobuf.Any'
    google.protobuf.Any:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
  securitySchemes:
    hmac:
      type: apiKey
      description: >-
        Versioned HMAC-SHA256 signature authenticating server-to-server SDK
        requests (your backend calling Stash), as opposed to client-side SDK
        operations. Recommended over the deprecated X-Stash-Api-Key for the best
        security. Header format:
        v1;{appId};{unixMillisTimestamp};{base64Signature}
        (semicolon-delimited). {base64Signature} is the base64-encoded
        HMAC-SHA256 of the string {unixMillisTimestamp}.{requestBody} using your
        app ingress secret (the ingress secret is shown base64-encoded in
        Studio; base64-decode it to the raw bytes used as the HMAC key), where
        {requestBody} is the request body exactly as you send it for POST and
        PUT requests (the compact canonical request JSON is also accepted) and
        empty for GET requests. A signature over the exact bytes verifies for
        bodies of up to 18 KiB (18,432 bytes); a larger body may be refused with
        401 even when correctly signed. The timestamp must be within 5 minutes
        of Stash server time. Your appId is your immutable app identifier, shown
        in Stash Studio under Project Settings > App details; your ingress
        secret is under Project Settings > API Secrets.
      name: x-stash-hmac-signature
      in: header
    deprecatedApiKey:
      type: apiKey
      description: >-
        DEPRECATED: API key authentication (X-Stash-Api-Key) is not supported
        for shops or API keys created on or after 2026-08-15; those must use
        HMAC authentication via the x-stash-hmac-signature header. Shops and
        keys created before the cutoff may continue using their X-Stash-Api-Key
        for server-to-server operations, but are encouraged to migrate to HMAC
        as soon as possible for the best security.
      name: X-Stash-Api-Key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.