---
updatedAt: 2026-04-21T06:46:03.000Z
agentTools:
  projectIndex: https://developer.qbitnetwork.com/llms.txt
---

# 获取卡片敏感信息

获取安全卡片详情（用于特定业务场景），包含卡号等敏感信息及安全令牌。API 响应中的敏感卡片信息（如完整卡号、CVV）采用 AES 算法进行安全保护，保护密钥由 clientSecret 派生。非敏感字段（如卡 BIN、卡号后四位）保持明文以便业务使用，因为它们不涉及核心敏感数据。

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "量子卡",
    "description": "接口开发者文档",
    "version": "v3"
  },
  "externalDocs": {
    "description": "接口开发者",
    "url": "https://developer.qbitnetwork.com/"
  },
  "servers": [
    {
      "url": "https://api-sandbox.qbitnetwork.com",
      "description": "沙箱环境"
    }
  ],
  "paths": {
    "/open-api/v3/cards/{id}": {
      "get": {
        "tags": [
          "卡"
        ],
        "summary": "获取卡片敏感信息",
        "description": "获取安全卡片详情（用于特定业务场景），包含卡号等敏感信息及安全令牌。API 响应中的敏感卡片信息（如完整卡号、CVV）采用 AES 算法进行安全保护，保护密钥由 clientSecret 派生。非敏感字段（如卡 BIN、卡号后四位）保持明文以便业务使用，因为它们不涉及核心敏感数据。",
        "operationId": "getPrivateInfo",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "description": "账户的UUID。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "卡片的UUID。",
            "required": true,
            "schema": {
              "type": "string",
              "description": "卡片的UUID。"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardPanResponse"
                },
                "example": {
                  "code": "000000",
                  "message": "success",
                  "data": {
                    "pan": "3d91e3efd3bb64d8a5ba465470f4dc1973c5e951bea20b01ff7d1c1f90f4e32b",
                    "cvv": "1f58406cc7d858578fedf4a9a9ae18a9",
                    "expYear": "19980571355d04c6aef36001c878f994",
                    "expMonth": "18fe21de46aea89042fdf7b311ced454",
                    "bin": "49387519",
                    "cardLastFour": "4425"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResult"
                },
                "example": {
                  "code": "40001",
                  "message": "Invalid parameter"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResult": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "错误码",
            "example": "400001"
          },
          "message": {
            "type": "string",
            "description": "错误信息",
            "example": "参数无效"
          }
        }
      },
      "CardPanResource": {
        "type": "object",
        "properties": {
          "pan": {
            "type": "string",
            "description": "主账号，以AES算法保护的十六进制字符串返回"
          },
          "cvv": {
            "type": "string",
            "description": "卡验证值，以AES算法保护的十六进制字符串返回"
          },
          "expYear": {
            "type": "string",
            "description": "过期年份，以AES算法保护的十六进制字符串返回"
          },
          "expMonth": {
            "type": "string",
            "description": "过期月份，以AES算法保护的十六进制字符串返回"
          },
          "bin": {
            "type": "string",
            "description": "卡BIN号"
          },
          "cardLastFour": {
            "type": "string",
            "description": "卡号后四位数字"
          }
        },
        "description": "返回数据"
      },
      "CardPanResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "返回码"
          },
          "message": {
            "type": "string",
            "description": "错误信息"
          },
          "data": {
            "$ref": "#/components/schemas/CardPanResource"
          }
        },
        "description": "卡片PAN资源"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API密钥",
        "name": "x-access-token",
        "in": "header"
      }
    }
  }
}
```