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

# Abort offers

> Removes offers from every player's web shop at once, for an offer that has to come down before the catalog cache would drop it (for example a wrong price or wrong contents). Each entry names an offer by the identifier your catalog sends: a purchase pack's id (the whole pack, every price point), a purchasable item's product_id (every per-player variant), or a free or non-purchasable item's item_id. Without a version, the abort hides that offer from every player's catalog, whatever your Get Catalog response returns, until you un-abort it; no catalog is fetched again from your server. With a version that is a whole number written only with the ASCII digits 0 to 9 (for example 5), the abort hides the offer with that identifier at that version and at every lower whole-number version, compared by value: an abort of 10 hides 9, an abort of 5 does not hide 10, and 05 reads as 5. With any other version (for example v5, a version with a sign or spaces, or one using digits other than the ASCII 0 to 9), the abort hides only the offer with exactly that version, compared character for character. Cached catalogs that still hold a hidden version are fetched again from your server on each player's next visit. To bring the offer back fixed, re-publish it under the same identifier with a higher version than the one you aborted: it shows as soon as Get Catalog returns it, with no un-abort needed, while a fix re-published at the aborted version or lower stays hidden. An abort with a version never matches an offer sent without a version. An abort with a version expires 7 days after it was made; an abort without a version lasts until un-aborted. Calls are idempotent: an entry that names an abort already active changes nothing. At most 100 entries per call. A purchase already in checkout when the abort lands can still complete, so Confirm Payment remains your last check. Applies only to shops with a real-time catalog integration and offer aborts enabled; any other shop is refused with FAILED_PRECONDITION.



## OpenAPI

````yaml /ingress-openapi.json post /sdk/server/catalog/offer-aborts/abort
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/offer-aborts/abort:
    post:
      tags:
        - Catalog
      summary: Abort offers
      description: >-
        Removes offers from every player's web shop at once, for an offer that
        has to come down before the catalog cache would drop it (for example a
        wrong price or wrong contents). Each entry names an offer by the
        identifier your catalog sends: a purchase pack's id (the whole pack,
        every price point), a purchasable item's product_id (every per-player
        variant), or a free or non-purchasable item's item_id. Without a
        version, the abort hides that offer from every player's catalog,
        whatever your Get Catalog response returns, until you un-abort it; no
        catalog is fetched again from your server. With a version that is a
        whole number written only with the ASCII digits 0 to 9 (for example 5),
        the abort hides the offer with that identifier at that version and at
        every lower whole-number version, compared by value: an abort of 10
        hides 9, an abort of 5 does not hide 10, and 05 reads as 5. With any
        other version (for example v5, a version with a sign or spaces, or one
        using digits other than the ASCII 0 to 9), the abort hides only the
        offer with exactly that version, compared character for character.
        Cached catalogs that still hold a hidden version are fetched again from
        your server on each player's next visit. To bring the offer back fixed,
        re-publish it under the same identifier with a higher version than the
        one you aborted: it shows as soon as Get Catalog returns it, with no
        un-abort needed, while a fix re-published at the aborted version or
        lower stays hidden. An abort with a version never matches an offer sent
        without a version. An abort with a version expires 7 days after it was
        made; an abort without a version lasts until un-aborted. Calls are
        idempotent: an entry that names an abort already active changes nothing.
        At most 100 entries per call. A purchase already in checkout when the
        abort lands can still complete, so Confirm Payment remains your last
        check. Applies only to shops with a real-time catalog integration and
        offer aborts enabled; any other shop is refused with
        FAILED_PRECONDITION.
      operationId: AbortOffers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pie.sdk.catalog.AbortOffersRequest'
        required: true
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pie.sdk.catalog.AbortOffersResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/google.rpc.Status'
      security:
        - hmac: []
        - deprecatedApiKey: []
components:
  schemas:
    pie.sdk.catalog.AbortOffersRequest:
      type: object
      properties:
        offers:
          type: array
          items:
            $ref: '#/components/schemas/pie.sdk.catalog.OfferAbortEntry'
          description: The offers to abort, at most 100.
      required:
        - offers
    pie.sdk.catalog.AbortOffersResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/pie.sdk.catalog.AbortOffersResult'
          description: One result per request entry, in request order.
      required:
        - results
    google.rpc.Status:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/google.protobuf.Any'
    pie.sdk.catalog.OfferAbortEntry:
      type: object
      properties:
        offerId:
          type: string
          description: >-
            The offer's identifier as your catalog sends it: a purchase pack's
            id, a purchasable item's product_id, or a free or non-purchasable
            item's item_id. Compared exactly and case-sensitively.
        version:
          type: string
          description: >-
            Optional version of the offer to abort, exactly as your catalog
            sends it in the offer's version field. A whole-number version (ASCII
            digits 0 to 9 only) also aborts every lower whole-number version of
            the offer; any other version aborts only that exact version. Leave
            it out (or send it empty) to abort every version of the offer until
            you un-abort it. At most 128 characters; a longer value is refused.
        reason:
          type: string
          description: >-
            Optional free-text reason, shown with the abort in Stash Studio. At
            most 1024 characters.
      required:
        - offerId
    pie.sdk.catalog.AbortOffersResult:
      type: object
      properties:
        abort:
          $ref: '#/components/schemas/pie.sdk.catalog.OfferAbort'
        created:
          type: boolean
          description: >-
            True when this call made the abort. False when the same abort was
            already active, in which case nothing changed.
      required:
        - abort
        - created
    google.protobuf.Any:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    pie.sdk.catalog.OfferAbort:
      type: object
      properties:
        offerId:
          type: string
          description: The aborted offer's identifier.
        version:
          type: string
          description: >-
            The aborted version, exactly as it was sent. A whole-number version
            (ASCII digits 0 to 9 only) also covers every lower whole-number
            version of the offer. Absent for an abort that applies to every
            version of the offer.
        source:
          $ref: '#/components/schemas/pie.sdk.catalog.OfferAbortSource'
        reason:
          type: string
          description: The reason given with the abort, when one was.
        createdAt:
          type: string
          format: date-time
          description: When the abort was made.
        expiresAt:
          type: string
          format: date-time
          description: >-
            When an abort with a version expires. Absent for an abort without a
            version, which lasts until un-aborted.
      required:
        - offerId
        - source
        - createdAt
    pie.sdk.catalog.OfferAbortSource:
      type: string
      enum:
        - OFFER_ABORT_SOURCE_UNSPECIFIED
        - OFFER_ABORT_SOURCE_API
        - OFFER_ABORT_SOURCE_STUDIO
      default: OFFER_ABORT_SOURCE_UNSPECIFIED
      description: >-
        - OFFER_ABORT_SOURCE_UNSPECIFIED: Never returned on an abort; present
        only as the protobuf default
         - OFFER_ABORT_SOURCE_API: Made through the abort-offer API
         - OFFER_ABORT_SOURCE_STUDIO: Made in Stash Studio
      title: Where an offer abort was made
  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.