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

# Record a member's rating for a completed experience

> 0-10, the NPS scale. Only accepted once the redemption is COMPLETED - a score against a booking still awaiting a vendor is feedback about waiting, not about an experience. Submitting again replaces the previous answer.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/redemptions/{id}/feedback
openapi: 3.0.3
info:
  description: Public REST API for embedding Expys experiences into a client app.
  title: Expys API
  version: 1.4.0
servers:
  - url: https://api.expys.com
    description: >-
      Expys API. Sandbox and live share this host; the environment is selected
      by which key you exchange for a member token, not by the URL.
security: []
paths:
  /v1/redemptions/{id}/feedback:
    put:
      tags:
        - Redemptions
      summary: Record a member's rating for a completed experience
      description: >-
        0-10, the NPS scale. Only accepted once the redemption is COMPLETED - a
        score against a booking still awaiting a vendor is feedback about
        waiting, not about an experience. Submitting again replaces the previous
        answer.
      operationId: setRedemptionFeedback
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetRedemptionFeedbackRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Redemption'
          description: Response for status 200
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '401':
          description: Authentication is missing or invalid.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '403':
          description: Authenticated, but not permitted to access this resource.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '429':
          description: Rate limit exceeded; honor the Retry-After header.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '500':
          description: An unexpected server error occurred.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
      security:
        - ApiKeyBearer: []
        - ApiKeyHeader: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: |-
            curl -X PUT https://api.expys.com/v1/redemptions/<id>/feedback \
              -H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "comment": "string",
                "rating": 0
              }'
components:
  schemas:
    SetRedemptionFeedbackRequest:
      properties:
        comment:
          type: string
        rating:
          type: integer
      required:
        - rating
      type: object
    Redemption:
      properties:
        canceledNote:
          nullable: true
          type: string
        canceledReason:
          nullable: true
          type: string
          enum:
            - SOLD_OUT
            - VENDOR_DECLINED
            - DATE_UNAVAILABLE
            - MEMBER_REQUESTED
            - EXPIRED
            - OTHER
        conversationId:
          nullable: true
          type: string
        createdAt:
          type: string
        endAt:
          nullable: true
          type: string
        feedback:
          $ref: '#/components/schemas/Feedback'
        id:
          type: string
        offer:
          type: string
        startAt:
          nullable: true
          type: string
        status:
          type: string
      required:
        - canceledNote
        - conversationId
        - createdAt
        - endAt
        - id
        - offer
        - startAt
        - status
        - canceledReason
        - feedback
      type: object
    Feedback:
      nullable: true
      properties:
        comment:
          nullable: true
          type: string
        rating:
          type: integer
        submittedAt:
          type: string
      required:
        - comment
        - rating
        - submittedAt
      type: object
  securitySchemes:
    ApiKeyBearer:
      description: Org-API-Key as a Bearer token.
      scheme: bearer
      type: http
    ApiKeyHeader:
      description: Org-API-Key as a header.
      in: header
      name: x-api-key
      type: apiKey

````