> ## 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.

# Create a points adjustment

> Creates a non-card-spend points adjustment for a user. This endpoint is not direct on-chain minting. For `RAIN_MANAGED`, the adjustment is queued for the normal minting flow. For `PARTNER_OFFCHAIN`, Rain records the adjustment in the off-chain rewards ledger. `PARTNER_ONCHAIN` tenants must manage adjustments in their own system and receive `405`. Requests are idempotent per user, tenant, type, and optional reason.



## OpenAPI

````yaml /openapi.json post /issuing/raindrops/mint
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/mint:
    post:
      tags:
        - raindrops
      summary: Create a points adjustment
      description: >-
        Creates a non-card-spend points adjustment for a user. This endpoint is
        not direct on-chain minting. For `RAIN_MANAGED`, the adjustment is
        queued for the normal minting flow. For `PARTNER_OFFCHAIN`, Rain records
        the adjustment in the off-chain rewards ledger. `PARTNER_ONCHAIN`
        tenants must manage adjustments in their own system and receive `405`.
        Requests are idempotent per user, tenant, type, and optional reason.
      operationId: mintRaindrops
      requestBody:
        description: Mint request details
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - userId
                - amount
                - type
              properties:
                userId:
                  type: string
                  format: uuid
                  description: The ID of the user receiving the points adjustment
                amount:
                  type: string
                  pattern: ^[1-9][0-9]*$
                  description: >-
                    The adjustment amount in points, as a positive integer
                    string. 1 point = 1 cent. Maximum 25,000 points per
                    adjustment.
                type:
                  type: string
                  enum:
                    - airdrop
                    - referral
                    - welcome
                    - manual
                  description: The reason for minting points
                reason:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: >-
                    A description of why points are being minted. Required for
                    referral, airdrop, and manual types.
      responses:
        '201':
          description: Points adjustment created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactionId:
                    type: string
                    format: uuid
                    description: The ID of the created mint transaction
                  status:
                    type: string
                    description: >-
                      The adjustment transaction status. Adjustments are created
                      as READY.
                  points:
                    type: string
                    description: >-
                      The number of points minted, as a string to preserve
                      precision
        '400':
          description: >-
            Invalid request (e.g., missing required reason for type, amount
            exceeds maximum)
        '401':
          description: Invalid authorization
        '403':
          description: Raindrops are not enabled for this tenant
        '404':
          description: User not found
        '405':
          description: >-
            Partner-managed on-chain tenants manage points adjustments outside
            Rain
        '409':
          description: An adjustment with this reason already exists for this user
        '500':
          description: Internal server error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````