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

# Unreject Reward

> Moves a `rejected` reward back to `pending`, so it becomes payable to the advocate again. Use this to undo a rejection made by mistake. The stored `reject_reason` is cleared. Only `rejected` rewards can be unrejected.



## OpenAPI

````yaml POST /v1/rewards/{id}/unreject
openapi: 3.1.0
info:
  title: Reditus API - Rewards
  description: API specification for managing rewards in Reditus reward programs.
  version: 1.0.0
servers:
  - url: https://api.getreditus.com/api
security: []
paths:
  /v1/rewards/{id}/unreject:
    post:
      summary: Unreject Reward
      description: >-
        Moves a `rejected` reward back to `pending`, so it becomes payable to
        the advocate again. Use this to undo a rejection made by mistake. The
        stored `reject_reason` is cleared. Only `rejected` rewards can be
        unrejected.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Reward ID
      responses:
        '200':
          description: Reward was moved back to pending
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RewardResponse'
        '404':
          description: Not Found - Reward not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorRewardNotFoundError'
        '422':
          description: >-
            Unprocessable - Reward cannot be unrejected from its current state
            (it is pending or has been paid)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseUnprocessable'
      security:
        - BearerAuth: []
components:
  schemas:
    RewardResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Reward'
    ErrorRewardNotFoundError:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
              details:
                type: string
                example: Reward not found
    ErrorResponseUnprocessable:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
                example: Unprocessable entity
              details:
                type: string
                example: Reward in state 'paid' cannot be rejected
    Reward:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        attributes:
          type: object
          properties:
            id:
              type: string
            advocate_id:
              type: string
            advocate_uid:
              type: string
            lead_id:
              type: string
            lead_email:
              type: string
            amount:
              type: integer
              description: Amount in cents (e.g., 1000 = $10.00)
            currency:
              type: string
            state:
              type: string
              description: 'Reward state: pending, rejected or paid'
            reject_reason:
              type: string
              description: >-
                Reason the reward was rejected. Only present when state is
                rejected
            created_at:
              type: integer
            updated_at:
              type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.