{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moov/json-schema/moov-request-card-schema.json",
  "title": "RequestCard",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moov-card-issuing-api-openapi.yml#/components/schemas/RequestCard",
  "type": "object",
  "properties": {
    "authorizedUserAccountID": {
      "type": "string"
    },
    "nickname": {
      "type": "string"
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    },
    "billingAddress": {
      "$ref": "#/$defs/Address"
    },
    "expiration": {
      "$ref": "#/$defs/CardExpiration"
    },
    "controls": {
      "$ref": "#/$defs/IssuingControls"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "required": [
        "addressLine1",
        "city",
        "stateOrProvince",
        "postalCode",
        "country"
      ],
      "properties": {
        "addressLine1": {
          "type": "string",
          "maxLength": 60,
          "pattern": "[a-zA-Z0-9,.\\/?:'\"|~!@#$%^&*()+_= -]+"
        },
        "addressLine2": {
          "type": "string",
          "maxLength": 32,
          "pattern": "[a-zA-Z0-9,.\\/?:'\"|~!@#$%^&*()+_= -]+"
        },
        "city": {
          "type": "string",
          "maxLength": 32,
          "pattern": "[a-zA-Z0-9,.\\/?:'\"|~!@#$%^&*()+_= -]+"
        },
        "stateOrProvince": {
          "type": "string",
          "maxLength": 2
        },
        "postalCode": {
          "type": "string",
          "maxLength": 5
        },
        "country": {
          "type": "string",
          "maxLength": 2
        }
      }
    },
    "CardExpiration": {
      "type": "object",
      "required": [
        "month",
        "year"
      ],
      "properties": {
        "month": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2,
          "description": "Two-digit month the card expires."
        },
        "year": {
          "type": "string",
          "minLength": 2,
          "maxLength": 2,
          "description": "Two-digit year the card expires."
        }
      },
      "description": "The expiration date of the card or token."
    },
    "IssuingControls": {
      "type": "object",
      "properties": {
        "singleUse": {
          "type": "boolean",
          "description": "Indicates if the card is single-use. If true, the card closes after the first authorization."
        },
        "velocityLimits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IssuingVelocityLimit"
          },
          "description": "Sets the spending limit per time interval. Only one limit per interval is supported."
        }
      },
      "description": "Mutable spend controls for the card."
    },
    "IssuingIntervalLimit": {
      "type": "string",
      "enum": [
        "per-transaction"
      ],
      "description": "Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET."
    },
    "IssuingVelocityLimit": {
      "type": "object",
      "required": [
        "amount",
        "interval"
      ],
      "properties": {
        "amount": {
          "type": "integer",
          "format": "int64",
          "description": "The maximum amount in cents that can be spent in a given interval."
        },
        "interval": {
          "$ref": "#/$defs/IssuingIntervalLimit"
        }
      }
    },
    "Metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Free-form key-value pair list. Useful for storing information that is not captured elsewhere."
    }
  }
}