# Show Rewards Program Configuration

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/rewards-program/configuration:
    get:
      summary: Show Rewards Program Configuration
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/Rewards/Configuration
      parameters:
        - 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: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - 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:
                $ref: '#/components/schemas/RewardsProgramConfiguration'
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: API Reference/Management API/Rewards/Configuration
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-4467240-run
components:
  schemas:
    RewardsProgramConfiguration:
      type: object
      properties:
        consent:
          anyOf:
            - $ref: '#/components/schemas/Consent'
            - type: 'null'
          description: |-
            Settings for `rewards_membership` MPC consent. 
            Null if the consent is not set. 
            The name is not editable.
        points_validity_days:
          type: integer
          description: >-
            After how many days points achieved by members should expire. When
            0, the validity is unlimited.
          examples:
            - 365
          minimum: 0
          default: 365
        returning_member_quarantine_days:
          type: integer
          description: >-
            A number of days that must pass after returning registration, until
            member can earn points. When 0, this behaviour is disabled.
          default: 0
          minimum: 0
        reference_points:
          type: integer
          description: >-
            Amount to be displayed as a maximum on accelerometer in the app.
            When 0, there should be no accelerometer.
          minimum: 0
          examples:
            - 0
          default: 0
        points_granted_message:
          type: object
          properties: {}
          x-apidog-orders: []
          description: >-
            Content of a notification that is sent to members after he receives
            some points
          x-apidog-ignore-properties: []
        terms_and_conditions: &ref_0
          $ref: '#/components/schemas/LocalizedContent'
          description: Text describing the rules of the program
      x-apidog-orders:
        - consent
        - points_validity_days
        - returning_member_quarantine_days
        - reference_points
        - points_granted_message
        - terms_and_conditions
      required:
        - consent
        - points_validity_days
        - returning_member_quarantine_days
        - reference_points
        - points_granted_message
        - terms_and_conditions
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    LocalizedContent:
      type: object
      properties: {}
      x-apidog-orders: []
      title: ''
      examples:
        - en: Text
      additionalProperties:
        type: string
        description: >-
          The actual set of languages depends on LC configuration. See:
          [Localization](doc-341959)
        examples:
          - Tekst
        nullable: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
    Consent:
      type: object
      properties:
        name:
          type: string
        required:
          type: boolean
          default: true
          description: >-
            Is it possible to register/update member without filling given
            consent?
        show_at_registration:
          type: boolean
          default: true
          description: Should be displayed on registration page?
        show_in_profile:
          type: boolean
          default: true
          description: Should be displayed on profile page?
        title: *ref_0
        definition: *ref_0
        yes_text: *ref_0
        no_text: *ref_0
        no_text_alt: *ref_0
        read_more: *ref_0
      x-apidog-orders:
        - name
        - required
        - show_at_registration
        - show_in_profile
        - title
        - definition
        - yes_text
        - no_text
        - no_text_alt
        - read_more
      required:
        - name
        - required
        - show_at_registration
        - show_in_profile
        - title
        - definition
        - yes_text
        - no_text
        - no_text_alt
        - read_more
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```