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

# Get all the cards for a user or company



## OpenAPI

````yaml get /issuing/cards
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/cards:
    get:
      tags:
        - cards
      summary: Get all the cards for a user or company
      operationId: getIssuingCards
      parameters:
        - name: companyId
          in: query
          description: For corporate cards, id of the company to get cards for
          required: false
          schema:
            type: string
            format: uuid
        - name: userId
          in: query
          description: Id of the user to get cards for
          required: false
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          description: Filter cards by status
          required: false
          schema:
            $ref: '#/components/schemas/IssuingCardStatus'
        - $ref: '#/components/parameters/cursorParam'
        - $ref: '#/components/parameters/limitParam'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/IssuingCard'
        '401':
          description: Invalid authorization
        '404':
          description: User not found
        '500':
          description: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    IssuingCardStatus:
      type: string
      enum:
        - notActivated
        - active
        - locked
        - canceled
    IssuingCard:
      type: object
      required:
        - id
        - companyId
        - userId
        - type
        - status
        - last4
        - expirationMonth
        - expirationYear
      properties:
        id:
          type: string
          format: uuid
        companyId:
          type: string
          format: uuid
        userId:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - physical
            - virtual
        status:
          $ref: '#/components/schemas/IssuingCardStatus'
        limit:
          $ref: '#/components/schemas/IssuingCardLimit'
        last4:
          type: string
        expirationMonth:
          type: string
        expirationYear:
          type: string
        tokenWallets:
          type: array
          items:
            type: string
            description: The name of the wallet that the tokenized card was added to
        createdAt:
          type: string
          format: date-time
          description: When the card was created
        updatedAt:
          type: string
          format: date-time
          description: When the card was last updated
    IssuingCardLimit:
      type: object
      required:
        - amount
        - frequency
      properties:
        amount:
          type: integer
        frequency:
          type: string
          enum:
            - per24HourPeriod
            - per7DayPeriod
            - per30DayPeriod
            - perYearPeriod
            - allTime
            - perAuthorization
  parameters:
    cursorParam:
      name: cursor
      in: query
      description: The id of the resource after which to start fetching
      required: false
      schema:
        type: string
    limitParam:
      name: limit
      in: query
      description: The number of resources to fetch
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````