# Get card spending control config

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/issuing/cards/spending_control_config:
    get:
      summary: Get card spending control config
      deprecated: false
      description: ''
      tags:
        - API Reference/Issuing/Cards
      parameters:
        - name: currency
          in: query
          description: Three-letter ISO currency code.
          required: true
          example: USD
          schema:
            type: string
        - name: product_code
          in: query
          description: Card product code on creating card
          required: false
          schema:
            type: string
        - name: card_id
          in: query
          description: Existing card ID on updating card
          required: false
          schema:
            type: string
        - name: is_open_card
          in: query
          description: 'Whether for card creation scenario (default: true).'
          required: false
          example: 'true'
          schema:
            type: boolean
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apifox-refs:
                  01KMC81WX7RCXHNGCXADD99S0R:
                    $ref: >-
                      #/components/schemas/The%20Card%20Spending%20Controls%20Config%20object
                    x-apifox-overrides: {}
                    required: []
                x-apifox-orders:
                  - 01KMC81WX7RCXHNGCXADD99S0R
                properties:
                  useAllTimeLimitAmountIfIntervalNotPlaced:
                    type: boolean
                    description: >-
                      Global fallback flag: use the all-time limit amount when a
                      specific interval is not configured.
                  intervalLimitCfgMap: &ref_0
                    $ref: >-
                      #/components/schemas/Map%20of%20Card%20Spending%20Limit%20Config%20object
                    description: >-
                      Map of spending limit configurations keyed by interval
                      type
                x-apifox-ignore-properties:
                  - useAllTimeLimitAmountIfIntervalNotPlaced
                  - intervalLimitCfgMap
              examples:
                '1':
                  summary: 成功示例
                  value:
                    useAllTimeLimitAmountIfIntervalNotPlaced: true
                    intervalLimitCfgMap:
                      all_time:
                        interval: all_time
                        required: true
                        defaultAmount: 0
                        defaultAmountStr: string
                        minAmount: 0
                        minAmountStr: string
                        maxAmount: 0
                        maxAmountStr: string
                        useAllTimeAmountIfMaxAmountNull: false
                        supportNormalCard: true
                      daily:
                        interval: daily
                        required: false
                        minAmount: 0
                        minAmountStr: string
                        useAllTimeAmountIfMaxAmountNull: true
                        supportNormalCard: false
                      monthly:
                        interval: monthly
                        required: false
                        minAmount: 0
                        minAmountStr: string
                        useAllTimeAmountIfMaxAmountNull: true
                        supportNormalCard: false
                      per_authorization:
                        interval: per_authorization
                        required: true
                        minAmount: 0
                        minAmountStr: string
                        useAllTimeAmountIfMaxAmountNull: true
                        supportNormalCard: false
                      weekly:
                        interval: weekly
                        required: false
                        minAmount: 0
                        minAmountStr: string
                        useAllTimeAmountIfMaxAmountNull: true
                        supportNormalCard: false
                '2':
                  summary: 成功示例
                  value: {}
                '3':
                  summary: 成功示例
                  value:
                    useAllTimeLimitAmountIfIntervalNotPlaced: false
                    intervalLimitCfgMap:
                      '':
                        interval: ''
                        required: false
                        defaultAmount: 0
                        defaultAmountStr: ''
                        minAmount: 0
                        minAmountStr: ''
                        maxAmount: 0
                        maxAmountStr: ''
                        useAllTimeAmountIfMaxAmountNull: false
                        supportNormalCard: false
          headers: {}
          x-apifox-name: ''
      security:
        - basic: []
      x-apifox-folder: API Reference/Issuing/Cards
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1296482/apis/api-431700890-run
components:
  schemas:
    Map of Card Spending Limit Config object:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/The%20Card%20Spending%20Limit%20Config%20object'
          description: Limit interval type
      x-apifox-orders:
        - key
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    The Card Spending Limit Config object:
      type: object
      properties:
        interval:
          type: string
          description: Interval to which the config applies.
        required:
          type: boolean
          description: >-
            Whether setting this spending limit is mandatory during card
            creation.
        defaultAmount:
          type: integer
          description: >-
            Default limit (minor unit) applied if no custom amount is specified
            during card creation.
          format: int64
        defaultAmountStr:
          type: string
          description: Default limit as formatted decimal string
        minAmount:
          type: integer
          description: >-
            Minimum allowable limit value (minor unit). Amounts below this will
            be rejected.
          format: int64
        minAmountStr:
          type: string
          description: >-
            Maximum allowable limit in minor currency units. Amounts above this
            will be rejected.
        maxAmount:
          type: integer
          description: >-
            Maximum allowable limit value (minor unit). Amounts above this will
            be rejected.
          format: int64
        maxAmountStr:
          type: string
          description: Maximum allowable limit as formatted decimal string.
        useAllTimeAmountIfMaxAmountNull:
          type: boolean
          description: Use all-time limit as max if maxAmount is not configured.
        supportNormalCard:
          type: boolean
          description: >-
            Whether this limit configuration applies to normal cards (true) or
            share cards only (false).
      x-apifox-orders:
        - interval
        - required
        - defaultAmount
        - defaultAmountStr
        - minAmount
        - minAmountStr
        - maxAmount
        - maxAmountStr
        - useAllTimeAmountIfMaxAmountNull
        - supportNormalCard
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    The Card Spending Controls Config object:
      type: object
      properties:
        useAllTimeLimitAmountIfIntervalNotPlaced:
          type: boolean
          description: >-
            Global fallback flag: use the all-time limit amount when a specific
            interval is not configured.
        intervalLimitCfgMap: *ref_0
      x-apifox-orders:
        - useAllTimeLimitAmountIfIntervalNotPlaced
        - intervalLimitCfgMap
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: https://apitest.wooshpay.com
    description: 官网测试
security:
  - basic: []

```
