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

# Issue cards

> Issues `quantity` cards on one BIN. `balance_type` is required and must be supported by the BIN.



## OpenAPI

````yaml /openapi.json post /cards
openapi: 3.1.0
info:
  title: Finup Public API
  version: 1.0.0
  description: >-
    Client-facing Finup API reference generated from current public endpoint
    metadata.
servers:
  - url: https://api.finup.io/backend
    description: Production
security: []
tags:
  - name: Accounts
    description: Current account, account setup, and account capabilities.
  - name: Transactions
    description: Account transaction lists and aggregates.
  - name: Cards
    description: Card issuing, listing, funding, and status changes.
paths:
  /cards:
    post:
      tags:
        - Cards
      summary: Issue cards
      description: >-
        Issues `quantity` cards on one BIN. `balance_type` is required and must
        be supported by the BIN.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IssueCardsRequest'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - result
                properties:
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Card'
        '401':
          description: Missing or invalid credentials
        '403':
          description: Insufficient permission for this operation
        '404':
          description: Resource not found
        '420':
          description: Insufficient balance
      security:
        - apiKeyAuth: []
components:
  schemas:
    IssueCardsRequest:
      type: object
      required:
        - bin_id
        - name
        - balance_type
      properties:
        bin_id:
          type: string
          example: 67c401f9a5b7cde210f44567
        balance_type:
          type: string
          enum:
            - balance
            - limit
          example: limit
          description: >-
            Whether the card runs on a stored balance or a spending limit. The
            chosen model must be supported by the BIN (see balance_possibility /
            limit_possibility on GET /bins).
        user_id:
          type: string
          example: 67fc3d09766d7a2c1fafef99
        name:
          type: string
          example: Marketing card
        notes:
          type: string
          example: Q3 campaigns
        balance_threshold:
          type: number
          example: 25
        top_up_amount:
          type: number
          example: 100
        quantity:
          type: integer
          minimum: 1
          example: 1
          description: >-
            Number of cards to issue. Either quantity or the legacy alias amount
            must be present.
        amount:
          type: integer
          minimum: 1
          example: 1
          description: Legacy alias for quantity. Prefer quantity.
        limit_amount:
          type: number
          nullable: true
          maximum: 1000000
          example: 500
          description: >-
            Spending limit for balance_type "limit". null = unlimited card, 0 =
            card cannot spend. Ignored for balance cards.
        limit_period:
          type: string
          enum:
            - one_day
            - seven_days
            - thirty_days
            - all_time
            - per_transaction
          example: thirty_days
          description: >-
            Reset period of the spending limit. Only for balance_type "limit";
            defaults to "all_time" when a limit amount is given without a
            period. "per_transaction" caps each single operation instead of a
            rolling window.
        promo:
          type: string
          example: WELCOME
    Card:
      type: object
      properties:
        id:
          type: string
          example: 67c48f6fc8614632e0b338fc
        name:
          type: string
          example: Marketing card
        bin_id:
          type: string
          example: 67bcf2abf8e89d31c5f8995e
        notes:
          type: string
          example: Q3 campaigns
        account:
          type: string
          example: 67c401f9a5b7cde210f44567
        user:
          type: string
          example: 67aa1b2c3d4e5f6789abcdef
        status:
          type: string
          enum:
            - blocked
            - closed
            - closing
            - enabled
            - freezed
            - freezing
            - processing
            - unreezing
          example: enabled
        category:
          type: string
          enum:
            - business
            - platinum
            - advertising
          example: business
        currency:
          type: string
          example: USD
        masked_PAN:
          type: string
          nullable: true
          example: 1234 56•• •••• 5678
        EXP:
          type: string
          example: '**/**'
        balance:
          type: number
          example: 50
        deposit:
          type: number
          example: 1000
          description: Lifetime total deposited to the card.
        withdraw:
          type: number
          example: 500
          description: Lifetime total withdrawn from the card.
        balance_type:
          type: string
          enum:
            - balance
            - limit
          example: limit
          nullable: true
        limit_amount:
          type: number
          nullable: true
          example: 500
          description: Spending limit, or null for balance cards and unlimited limit cards.
        limit_period:
          type: string
          enum:
            - one_day
            - seven_days
            - thirty_days
            - all_time
            - per_transaction
          example: thirty_days
          nullable: true
        balance_possibility:
          type: boolean
          example: true
        limit_possibility:
          type: boolean
          example: true
        auto_deposit:
          type: boolean
          example: false
        balance_threshold:
          type: number
          example: 25
        top_up_amount:
          type: number
          example: 100
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        3ds:
          type: boolean
          example: true
        address:
          type: string
          example: 2381 Zanker Rd Ste 110, San Jose, CA, 95131, US
        PAN:
          type: string
          example: 1234 5678 1234 5678
          description: Full card number. Only returned by GET /cards/{card_id}.
        CVV:
          type: string
          example: '123'
          description: Card CVV. Only returned by GET /cards/{card_id}.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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