> ## Documentation Index
> Fetch the complete documentation index at: https://rain-sandbox-trial.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redeem points for statement credit

> Records a statement-credit redemption for `PARTNER_OFFCHAIN` tenants only. Rain checks and debits the off-chain rewards balance and records the points deduction. Rain does not derive or return a dollar value; the partner decides what the redeemed points are worth and applies the cardholder credit in its own ledger or user-facing system. Rain does not credit partner pool spending power for this endpoint. Requires an `idempotency-key` header so retries replay the same 201 response.



## OpenAPI

````yaml /openapi.json post /issuing/raindrops/statement-credit
openapi: 3.0.3
info:
  title: Issuing API
  description: This is the specification for Rain's Issuing API.
  termsOfService: https://www.rain.xyz/legal/authorized-user-terms
  contact:
    email: support@rain.xyz
  version: 1.3.0
servers:
  - url: https://api-dev.rain.xyz/v1
    description: Sandbox server
  - url: https://api.rain.xyz/v1
    description: Production server
security: []
tags:
  - name: paymentRoutes
    description: >-
      **Endpoint Migration:** The `/v1/automations` endpoints have been renamed
      to `/v1/payment-routes`. The old `/v1/automations` paths remain available
      as deprecated aliases during migration. Update your integrations to use
      `/v1/payment-routes` as the deprecated endpoints will be removed in a
      future release.
  - name: simulate
    description: >-
      Transaction simulation endpoints for testing integration flows in
      non-production environments. These endpoints let you trigger transaction
      events programmatically to automate integration tests and verify webhook
      handling without depending on external systems or staging real deposits.
      **Sandbox only** — all simulation endpoints return `404 Not Found` in
      production.
  - name: raindrops
    description: >-
      Rewards and points management endpoints. Custom API keys need
      `raindrops:read`/`raindrops:write` for general rewards endpoints and
      `raindrops-travel:read`/`raindrops-travel:write` for travel redemption
      endpoints.
    x-group: rewards
paths:
  /issuing/raindrops/statement-credit:
    post:
      tags:
        - raindrops
      summary: Redeem points for statement credit
      description: >-
        Records a statement-credit redemption for `PARTNER_OFFCHAIN` tenants
        only. Rain checks and debits the off-chain rewards balance and records
        the points deduction. Rain does not derive or return a dollar value; the
        partner decides what the redeemed points are worth and applies the
        cardholder credit in its own ledger or user-facing system. Rain does not
        credit partner pool spending power for this endpoint. Requires an
        `idempotency-key` header so retries replay the same 201 response.
      operationId: createStatementCreditRedemption
      parameters:
        - name: idempotency-key
          in: header
          description: >-
            Required retry key for this redemption. Reusing the same key and
            body replays the cached 201 response. Maximum 64 characters.
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
      requestBody:
        description: Statement credit redemption request
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - userId
                - raindropAmount
              properties:
                userId:
                  type: string
                  format: uuid
                  description: The ID of the user redeeming points
                raindropAmount:
                  type: string
                  pattern: ^[1-9][0-9]*$
                  description: >-
                    The number of points to redeem, as a string (must be a
                    positive integer)
      responses:
        '201':
          description: Statement credit redemption created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  redemptionId:
                    type: string
                    format: uuid
                    description: The ID of the created redemption
                  userId:
                    type: string
                    format: uuid
                    description: The ID of the user who redeemed
                  type:
                    type: string
                    enum:
                      - STATEMENT_CREDIT
                    description: The type of redemption
                  raindropAmount:
                    type: string
                    description: The number of points redeemed, as a string
        '400':
          description: >-
            Invalid request, missing or invalid idempotency-key, or insufficient
            rewards balance
        '401':
          description: Invalid authorization
        '403':
          description: Raindrops are not enabled for this tenant
        '404':
          description: User not found in this tenant
        '405':
          description: Only PARTNER_OFFCHAIN tenants can use this endpoint
        '409':
          description: Another off-chain redemption is already in progress for this user
        '500':
          description: Internal server error (e.g., owner team not configured)
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````