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

# List online offer promotions

> Return every promotion (active and inactive) attached to the given online offer. Returns ``404`` when the offer does not exist or the caller lacks the ``VIEW`` permission on the offer's owning organization. ``404`` is used (rather than ``403``) to avoid leaking offer existence.



## OpenAPI

````yaml /openapi/openapi-retailers.json get /retailers/api/v1/online-offers/{offer_id}/promotions
openapi: 3.1.0
info:
  title: Retailers API
  version: 1.0.0
  description: >
    Manage retailers, in-store offers, and online offers.


    ## Authentication


    All endpoints require an API key passed via the `X-API-Key` HTTP header,
    unless otherwise noted.


    ```

    X-API-Key: csb_<body>_<checksum>

    ```


    Generate API keys in **Settings > API Keys** in your dashboard, or via the
    Account API.

    Session-based (cookie) authentication is also accepted for browser-based
    access.


    ## Rate Limits


    | Tier        | Requests / minute | Requests / day |

    |-------------|-------------------|----------------|

    | Default     | 300               | 10,000         |

    | Custom      | Contact us        | Contact us     |


    Rate-limit headers are included on every response so callers can
    self-throttle without

    hitting our 429s ("informed governor"):


    - `RateLimit-Policy` — every active window, e.g. `300;w=60, 10000;w=86400`

    - `RateLimit-Limit` — quota for the **most-restrictive** currently-active
    window

    - `RateLimit-Remaining` — requests left in that window

    - `RateLimit-Reset` — seconds until that window resets (relative; clock-skew
    safe)


    Legacy `X-RateLimit-*` aliases are also emitted for back-compat.
    `X-RateLimit-Reset`

    keeps the absolute Unix-timestamp shape to avoid breaking existing
    consumers.


    When rate-limited, you receive `429 Too Many Requests` with a
    `retry_after_seconds` field

    in the error envelope and a `Retry-After` header.


    ## Pagination


    List endpoints return paginated results in this envelope:


    ```json

    {
      "data": [...],
      "pagination": {
        "page": 1,
        "page_size": 25,
        "total_count": 342,
        "total_pages": 14,
        "has_next": true,
        "has_previous": false
      }
    }

    ```


    Use `?page=2&page_size=50` query parameters. Maximum page size is 100.


    ## Error Responses


    All errors conform to [RFC 9457 Problem
    Details](https://www.rfc-editor.org/rfc/rfc9457)

    with `Content-Type: application/problem+json`:


    ```json

    {
      "type": "https://closient.com/docs/errors/not_found",
      "title": "Not Found",
      "status": 404,
      "detail": "The requested resource was not found.",
      "error_code": "not_found",
      "retryable": false,
      "timestamp": "2026-03-31T12:00:00+00:00"
    }

    ```


    Common error codes: `unauthorized` (401), `forbidden` (403), `not_found`
    (404),

    `validation_error` (422), `rate_limited` (429), `internal_error` (500).
  termsOfService: https://www.closient.com/terms/
servers:
  - url: https://www.closient.com
security: []
tags:
  - name: Retailers
    description: Manage retailers (canonical and org-private).
  - name: In-store Offers
    description: Per-store physical offers (aisle, on-hand quantity, pickup).
  - name: Online Offers
    description: Per-storefront online offers (URL, delivery, fulfillment).
  - name: In-store Offer Promotions
    description: Time-windowed promotional pricing on in-store offers.
  - name: Online Offer Promotions
    description: Time-windowed promotional pricing on online offers.
externalDocs:
  description: Closient Documentation
  url: https://docs.closient.com
paths:
  /retailers/api/v1/online-offers/{offer_id}/promotions:
    get:
      tags:
        - Online Offer Promotions
      summary: List online offer promotions
      description: >-
        Return every promotion (active and inactive) attached to the given
        online offer. Returns ``404`` when the offer does not exist or the
        caller lacks the ``VIEW`` permission on the offer's owning organization.
        ``404`` is used (rather than ``403``) to avoid leaking offer existence.
      operationId: apps_retailers_api_online_promotion_api_list_online_promotions
      parameters:
        - in: path
          name: offer_id
          schema:
            description: UUID of the online offer whose promotions to list.
            format: shortuuid
            maxLength: 22
            minLength: 22
            pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
            title: Offer Id
            type: string
          required: true
          description: UUID of the online offer whose promotions to list.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/OnlinePromotionOut'
                title: Response
                type: array
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorOut'
      security:
        - APIKeyHeaderAuth: []
        - OAuthTokenAuth: []
        - SessionAuth: []
components:
  schemas:
    OnlinePromotionOut:
      description: |-
        A time-windowed promotional price on an :class:`OnlineOffer`.

        Mirrors :class:`apps.retailers.models.OnlineOfferPromotion`. Currency
        is read-through from the parent ``OnlineStore`` — the row itself only
        stores the bare decimal ``promotional_price``.
      examples:
        - currency: USD
          description: Cyber Monday week
          end_date: '2026-12-31T23:59:59Z'
          id: 8e7d6c5b-4a3f-2109-edcb-a98765432109
          is_active: true
          metadata:
            campaign_id: cm-2026
          offer_id: d5e6f7a8-9012-3456-abcd-ef7890123456
          promotion_type: SEASONAL
          promotional_price: '9.99'
          short_id: keATfB8VP2gSjcnTbsMNQL
          start_date: '2026-11-25T00:00:00Z'
      properties:
        metadata:
          additionalProperties:
            type: string
          description: >-
            Developer-attached key/value data attached to this object. Up to 50
            keys; key max 40 chars, value max 500 chars.
          title: Metadata
          type: object
        id:
          description: >-
            Stable UUID primary key of the promotion. Use this for
            cross-references.
          format: shortuuid
          maxLength: 22
          minLength: 22
          pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
          title: Id
          type: string
        short_id:
          description: >-
            URL-safe shortuuid (base57) encoding of ``id``. Up to 22 characters;
            preferred over ``id`` in human-shareable URLs and log lines.
          maxLength: 22
          title: Short Id
          type: string
        offer_id:
          description: >-
            UUID of the parent ``OnlineOffer`` this promotion applies to. The
            offer must already exist; create it via the online offers API before
            attaching promotions. Immutable after creation — moving a promotion
            to a different offer means deleting and recreating.
          format: shortuuid
          maxLength: 22
          minLength: 22
          pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
          title: Offer Id
          type: string
        promotional_price:
          description: >-
            Time-windowed override for the offer's regular ``price`` in the
            parent store's currency. Must be non-negative. When multiple
            promotions overlap on the same offer the cheapest active one wins;
            ``$0`` is allowed and intentional for free-with-purchase BOGO arms
            (it is not a sentinel for 'unknown').
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Promotional Price
          type: string
        currency:
          default: ''
          description: >-
            ISO 4217 currency code lifted from the parent
            ``OnlineStore.currency`` at read time. Read-only here — there is no
            per-promotion currency override; the store decides.
          maxLength: 3
          title: Currency
          type: string
        start_date:
          description: >-
            Timestamp at which this promotion becomes effective (inclusive).
            Must be strictly before ``end_date`` — the database enforces
            ``end_date > start_date``.
          format: date-time
          title: Start Date
          type: string
        end_date:
          description: >-
            Timestamp at which this promotion stops being effective (inclusive).
            A daily Celery beat task flips ``is_active`` to ``false`` once this
            passes; the row is kept for historical pricing rather than deleted.
          format: date-time
          title: End Date
          type: string
        promotion_type:
          allOf:
            - $ref: '#/components/schemas/PromotionTypeEnum'
          default: SALE
          description: >-
            Merchandising context — display-only, does not change resolution
            semantics. Use ``SEASONAL`` for time-of-year promotions (Cyber
            Monday, holiday), ``CLEARANCE`` for end-of-life inventory, ``BOGO``
            for buy-one-get-one arms (often at ``promotional_price=0``),
            ``BUNDLE`` for discounts that apply when buying with another
            product, ``INTRODUCTORY`` for launch pricing, ``LOYALTY`` for
            member-only prices, and ``SALE`` (the default) for everything else.
        description:
          default: ''
          description: >-
            Optional human-readable label shown alongside the promoted price
            (e.g. 'Cyber Monday week', 'Member appreciation week'). Free-form,
            up to 255 characters. Empty string when no label is needed.
          maxLength: 255
          title: Description
          type: string
        is_active:
          default: true
          description: >-
            Soft-deactivate flag. ``true`` means the promotion is eligible for
            cheapest-active resolution within its date window; ``false``
            excludes it (the daily beat task auto-flips this to ``false`` once
            ``end_date`` passes). Use the update endpoint to set this to
            ``false`` rather than deleting if you want to preserve the
            historical pricing row.
          title: Is Active
          type: boolean
      required:
        - id
        - short_id
        - offer_id
        - promotional_price
        - start_date
        - end_date
      title: OnlinePromotionOut
      type: object
    ErrorOut:
      description: |-
        RFC 9457 Problem Details response.

        All API errors are returned in this format with Content-Type:
        application/problem+json.
      examples:
        - detail: The requested resource was not found.
          error_code: not_found
          retryable: false
          status: 404
          timestamp: '2026-03-31T12:00:00+00:00'
          title: Not Found
          type: https://closient.com/docs/errors/not_found
        - detail: Validation error.
          details:
            - loc:
                - body
                - name
              msg: Field required
              type: missing
          error_code: validation_error
          retryable: false
          status: 422
          timestamp: '2026-03-31T12:00:00+00:00'
          title: Validation Error
          type: https://closient.com/docs/errors/validation_error
        - detail: Rate limit exceeded. Please try again later.
          error_code: rate_limited
          retry_after: 31
          retryable: true
          status: 429
          timestamp: '2026-03-31T12:00:00+00:00'
          title: Rate Limited
          type: https://closient.com/docs/errors/rate_limited
      properties:
        type:
          description: URI reference identifying the error type.
          title: Type
          type: string
        title:
          description: Short human-readable summary of the error.
          title: Title
          type: string
        status:
          description: HTTP status code.
          title: Status
          type: integer
        detail:
          description: Human-readable explanation of this specific occurrence.
          title: Detail
          type: string
        error_code:
          description: Machine-readable error code (e.g. not_found, unauthorized).
          title: Error Code
          type: string
        retryable:
          default: false
          description: Whether retrying the same request can succeed.
          title: Retryable
          type: boolean
        timestamp:
          description: ISO 8601 timestamp of when the error occurred.
          title: Timestamp
          type: string
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          description: Seconds to wait before retrying (when applicable).
          title: Retry After
        owner_action_required:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether the error requires account owner intervention.
          title: Owner Action Required
        details:
          description: Additional context (validation errors, etc.).
          title: Details
      required:
        - type
        - title
        - status
        - detail
        - error_code
        - timestamp
      title: ErrorOut
      type: object
    PromotionTypeEnum:
      description: |-
        Merchandising context for an offer promotion.

        Mirrors :class:`apps.retailers.models.PromotionType`. Display-only —
        the choice does not affect resolution semantics (cheapest active
        promotion wins regardless of type).
      enum:
        - SALE
        - CLEARANCE
        - BOGO
        - BUNDLE
        - SEASONAL
        - INTRODUCTORY
        - LOYALTY
      title: PromotionTypeEnum
      type: string
  securitySchemes:
    APIKeyHeaderAuth:
      type: apiKey
      in: header
      name: X-API-Key
    OAuthTokenAuth:
      type: http
      scheme: bearer
    SessionAuth:
      type: apiKey
      in: cookie
      name: sessionid

````