# List Rewards - Preview

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/members/guest/rewards-program/rewards:
    get:
      summary: List Rewards - Preview
      deprecated: false
      description: >-
        Returns list of rewards available to purchase.


        Compared to regular [List Rewards](api-3510878), it does not use context
        of member, so it requires no OAuth authentication, but also cannot
        display member-specific rewards (e.g. available for specific audiences).
      tags:
        - API Reference/Public API/Rewards/Rewards
      parameters:
        - name: per_page
          in: query
          description: >-
            Number of results to be returned per request. See: [API
            Pagination](doc-341638)
          example: 10
          schema:
            type: integer
            default: '10'
        - name: page_no
          in: query
          description: 'Number of results page. See: [API Pagination](doc-341638)'
          example: 1
          schema:
            type: integer
            minimum: 1
            default: '1'
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  rewards:
                    type: array
                    items:
                      $ref: '#/components/schemas/AvailableReward'
                x-apidog-orders:
                  - rewards
                required:
                  - rewards
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Public API/Rewards/Rewards
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3942603-run
components:
  schemas:
    AvailableReward:
      type: object
      properties:
        id: &ref_0
          $ref: '#/components/schemas/id'
          description: Primary identifier of the record
          readOnly: true
        name:
          type: string
          title: ''
          examples:
            - Free Parking
          nullable: true
        description:
          type: string
          nullable: true
        files:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              width:
                type: integer
              height:
                type: integer
              kind:
                type: string
              size_type:
                type: string
            required:
              - url
              - width
              - height
              - kind
              - size_type
            x-apidog-orders:
              - url
              - width
              - height
              - kind
              - size_type
            x-apidog-ignore-properties: []
          description: A list of Reward Files - see [File model](doc-341697#file-model)
        price:
          type: integer
          description: Number of points that must be spent to purchase the reward
          minimum: 0
          examples:
            - 540
        remaining_stock:
          type: integer
          description: >-
            Number of items that is available for purchase. When null, there is
            no limit.
          minimum: 0
          examples:
            - 100
          nullable: true
        available_until:
          description: >-
            Date until the reward may be purchased. When null, there is no
            availability limit.
          anyOf:
            - description: >-
                Date until the reward may be purchased. When null, there is no
                availability limit.
              $ref: '#/components/schemas/date_time'
            - type: 'null'
        usable_after_purchase_for:
          type: integer
          description: >-
            Time (in seconds) that specifies how long the offer will be usable
            after purchase. When null, there is no limit
          minimum: 0
          nullable: true
      required:
        - id
        - name
        - description
        - files
        - price
        - remaining_stock
        - available_until
        - usable_after_purchase_for
      x-apidog-orders:
        - 01K6ATGWWTT07S2HRAWDTEMYM6
        - name
        - description
        - files
        - price
        - remaining_stock
        - available_until
        - usable_after_purchase_for
      x-apidog-refs:
        01K6ATGWWTT07S2HRAWDTEMYM6:
          $ref: '#/components/schemas/id1'
      x-apidog-ignore-properties:
        - id
      x-apidog-folder: ''
    date_time:
      type: string
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    id:
      type: integer
      description: Primary identifier of the record
      format: uint64
      readOnly: true
      examples:
        - 1
      x-apidog-folder: ''
    id1:
      type: object
      properties:
        id: *ref_0
      x-apidog-orders:
        - id
      required:
        - id
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```