{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-send-pass-code-marqeta-request-schema.json",
  "title": "SendPassCodeMarqetaRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-provisioning-api-openapi.yml#/components/schemas/SendPassCodeMarqetaRequest",
  "type": "object",
  "required": [
    "card_token",
    "otp_code",
    "selected_option",
    "token_requestor_name"
  ],
  "properties": {
    "otp_code": {
      "type": "string",
      "description": "OTP Code to send to the user. Typically 6 digits in length.",
      "minLength": 6,
      "maxLength": 50
    },
    "card_token": {
      "type": "string",
      "description": "Card Identifier/token for correlation with issuer. Used to minimize the need to exchange card details during subsequent calls and/or troubleshooting. Should be GUID or pseudo unique.",
      "minLength": 1,
      "maxLength": 36
    },
    "token_requestor_name": {
      "type": "string",
      "description": "Pseudo customer friendly name for the token requestor. For programmatic purposes, use token requestor ID which is not subject to change.<br>Possible values are <br><br>APPLE_PAY<br>GOOGLE_PAY"
    },
    "selected_option": {
      "$ref": "#/$defs/SelectedStepUpOption"
    }
  },
  "$defs": {
    "SelectedStepUpOption": {
      "type": "object",
      "required": [
        "stepup_type",
        "stepup_value"
      ],
      "properties": {
        "token": {
          "type": "string",
          "description": "Customer provided identifier for a specific step-up option. For simplicity, the value can be the same as the stepup_type while sending unique stepup_type(s) (like user has only one phone number, one email-id etc).",
          "minLength": 1,
          "maxLength": 36
        },
        "stepup_type": {
          "type": "string",
          "description": "Type of step-up options. Possible values are <br><br>OTP_SMS.",
          "minLength": 1,
          "maxLength": 255
        },
        "stepup_value": {
          "type": "string",
          "description": "Specific value for the step-up option. Phone/email should be masked if customer will be sending out SMS. For call center, an example is +1-800-555-1212. For OTP_SMS an example is +1******3175. For OTP_Email, m******e@marqeta.com, for IOS, 4RA9TRQ7CL.com.marqeta.dwdemo and for Android com.marqeta.dwdemo",
          "minLength": 1,
          "maxLength": 100
        }
      }
    }
  }
}