{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-token-activation-response-schema.json",
  "title": "TokenActivationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-provisioning-api-openapi.yml#/components/schemas/TokenActivationResponse",
  "type": "object",
  "required": [
    "avs_response",
    "card_token",
    "cvv2_response",
    "issuer_eligibility_decision"
  ],
  "properties": {
    "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
    },
    "issuer_eligibility_decision": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "enum": [
        "APPROVE",
        "REQUIRE_FURTHER_AUTHENTICATION",
        "DECLINE"
      ]
    },
    "issuer_decision_reason": {
      "type": "string",
      "maxLength": 255,
      "enum": [
        "APPROVED",
        "DECLINE_NOTELIGIBLE",
        "DECLINE_CARDEXPIRED",
        "DECLINE_INVALIDPAN",
        "DECLINE_INVALID_CVV2",
        "DECLINE_INVALID_EXPIRY_DATE",
        "DECLINE_ADDRESS_VERIFICATION_FAILED",
        "DECLINE_OTHER",
        "DECLINE_GATEWAY_ERROR",
        "DECLINE_CONFIG"
      ]
    },
    "avs_response": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "enum": [
        "MATCH",
        "NO_MATCH",
        "NOT_EXECUTED"
      ]
    },
    "cvv2_response": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "enum": [
        "MATCH",
        "NO_MATCH",
        "NOT_EXECUTED"
      ]
    },
    "card_art_id": {
      "type": "string",
      "description": "Optional c`art_art_id` that can be provided and is a pointer to a set of card metadata previously setup. In this API, this parameter is only used for Mastercard and is known as Product Config ID. Please be advised that Mastercard sets certain limits on the values in this parameter (length, etc).",
      "minLength": 0,
      "maxLength": 255
    },
    "stepup_options": {
      "type": "array",
      "description": "Options for a user to complete step-up authentication. Should provide at least one option. Can skip providing any options if options are already setup on Marqeta platform",
      "items": {
        "type": "object",
        "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",
            "minLength": 1,
            "maxLength": 255,
            "enum": [
              "INBOUND_CALL_CENTER",
              "OTP_SMS",
              "OTP_EMAIL",
              "IOS_APP",
              "ANDROID_APP"
            ]
          },
          "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
          }
        },
        "required": [
          "stepup_type",
          "stepup_value"
        ]
      }
    }
  }
}