> ## 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.

# Refresh localizations

> Asks Stash to refresh the shop's localizations from its enabled localization source, for example after the source file changes. The request body is the empty JSON object {}. This method accepts only the versioned x-stash-hmac-signature header, signed over the request body exactly as sent ({}); the legacy stash-hmac-signature header is rejected with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a captured request could be replayed. The shop in the signature header must equal the shop_id in the path. A successful response means the refresh is durably queued, not that the import has completed or that the storefront shows the result. Repeated calls are safe, so retry after a 500, a 503 or a timeout with a fresh timestamp and signature. Errors, by the HTTP status a REST caller receives and its gRPC status. Two of them share HTTP 400; a REST caller tells them apart by the code in the error body, 3 for INVALID_ARGUMENT and 9 for FAILED_PRECONDITION. 400 INVALID_ARGUMENT (code 3) when the request is malformed, for example a body that is not valid JSON; fix the request, because resending it unchanged does not help. 400 FAILED_PRECONDITION (code 9) when the shop has no enabled localization source; retrying does not help until the source is set up and enabled. 401 UNAUTHENTICATED when the signature is missing, invalid, outside the time window, sent in the legacy header, or names a different shop or one Stash does not know; fix the signing, because resending it unchanged does not help. 500 INTERNAL when Stash hits an internal error, for example reading the shop's localization settings; retry with backoff. 503 UNAVAILABLE when the refresh could not be queued; retry with backoff.



## OpenAPI

````yaml /ingress-openapi.json post /sdk/studio/{shopId}/localizations/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/studio/{shopId}/localizations/refresh:
    post:
      tags:
        - Localization
      summary: Refresh localizations
      description: >-
        Asks Stash to refresh the shop's localizations from its enabled
        localization source, for example after the source file changes. The
        request body is the empty JSON object {}. This method accepts only the
        versioned x-stash-hmac-signature header, signed over the request body
        exactly as sent ({}); the legacy stash-hmac-signature header is rejected
        with HTTP 401 (UNAUTHENTICATED), because it carries no timestamp and a
        captured request could be replayed. The shop in the signature header
        must equal the shop_id in the path. A successful response means the
        refresh is durably queued, not that the import has completed or that the
        storefront shows the result. Repeated calls are safe, so retry after a
        500, a 503 or a timeout with a fresh timestamp and signature. Errors, by
        the HTTP status a REST caller receives and its gRPC status. Two of them
        share HTTP 400; a REST caller tells them apart by the code in the error
        body, 3 for INVALID_ARGUMENT and 9 for FAILED_PRECONDITION. 400
        INVALID_ARGUMENT (code 3) when the request is malformed, for example a
        body that is not valid JSON; fix the request, because resending it
        unchanged does not help. 400 FAILED_PRECONDITION (code 9) when the shop
        has no enabled localization source; retrying does not help until the
        source is set up and enabled. 401 UNAUTHENTICATED when the signature is
        missing, invalid, outside the time window, sent in the legacy header, or
        names a different shop or one Stash does not know; fix the signing,
        because resending it unchanged does not help. 500 INTERNAL when Stash
        hits an internal error, for example reading the shop's localization
        settings; retry with backoff. 503 UNAVAILABLE when the refresh could not
        be queued; retry with backoff.
      operationId: RefreshLocalizations
      parameters:
        - name: shopId
          description: >-
            Shop identifier from Stash Studio. Must equal the shop in the
            x-stash-hmac-signature header.
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/server.ingress.localization.v1.LocalizationService.RefreshLocalizationsBody
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/server.ingress.localization.v1.RefreshLocalizationsResponse
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      security:
        - hmac: []
components:
  schemas:
    server.ingress.localization.v1.LocalizationService.RefreshLocalizationsBody:
      type: object
      description: >-
        Request to refresh a shop's localizations. The shop is taken from the
        path, so the JSON body is the empty object {}. Signed over the request
        body.
      title: Refresh Localizations Request
    server.ingress.localization.v1.RefreshLocalizationsResponse:
      type: object
      properties:
        accepted:
          type: boolean
          description: >-
            true once the refresh is durably queued; not import completion or
            storefront visibility.
      description: Acknowledgement that the refresh was queued.
      title: Refresh Localizations Response
      required:
        - accepted
    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

````

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