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

# 查询卡BIN消费场景管控

查询当前全局生效的消费场景管控配置，包含黑白名单场景及 MCC 规则。

# 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/consumption-scenarios": {
      "get": {
        "tags": [
          "卡"
        ],
        "summary": "查询卡BIN消费场景管控",
        "description": "查询当前全局生效的消费场景管控配置，包含黑白名单场景及 MCC 规则。",
        "operationId": "getConsumptionScenarios",
        "parameters": [
          {
            "name": "usage",
            "in": "query",
            "description": "用途类型",
            "required": true,
            "schema": {
              "type": "string",
              "description": "用途类型"
            }
          },
          {
            "name": "listType",
            "in": "query",
            "description": "名单类型",
            "required": false,
            "schema": {
              "type": "string",
              "description": "名单类型"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardMccAndScenesResponse"
                },
                "example": {
                  "code": "000000",
                  "message": "success",
                  "data": {
                    "id": "2018591701267480577",
                    "keywords": "0909",
                    "usage": "MCC",
                    "listType": "BLACKLIST"
                  }
                }
              }
            }
          },
          "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": "参数无效"
          }
        }
      },
      "CardMccAndScenesResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "规则 ID",
            "format": "int64"
          },
          "keywords": {
            "type": "string",
            "description": "关键词"
          },
          "usage": {
            "type": "string",
            "description": "用途类型"
          },
          "listType": {
            "type": "string",
            "description": "名单类型"
          },
          "cardBinIds": {
            "type": "array",
            "description": "卡 BIN ID 列表",
            "items": {
              "type": "string",
              "description": "卡 BIN ID 列表"
            }
          },
          "cardIds": {
            "type": "array",
            "description": "卡片 ID 列表",
            "items": {
              "type": "string",
              "description": "卡片 ID 列表"
            }
          }
        },
        "description": "返回数据"
      },
      "CardMccAndScenesResponse": {
        "title": "CardMccAndScenesResponse",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "返回码"
          },
          "message": {
            "type": "string",
            "description": "错误信息"
          },
          "data": {
            "type": "array",
            "description": "返回数据",
            "items": {
              "$ref": "#/components/schemas/CardMccAndScenesResource"
            }
          }
        },
        "description": "卡片消费场景管控响应"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "API密钥",
        "name": "x-access-token",
        "in": "header"
      }
    }
  }
}
```