{
  "success": true,
  "data": {
    "id": 482688149,
    "name": "国信消费机刷脸直付",
    "type": "http",
    "serverId": "",
    "preProcessors": [],
    "postProcessors": [],
    "inheritPreProcessors": {},
    "inheritPostProcessors": {},
    "description": "用于国信项目消费机直接刷脸支付。接口不需要设备传入金额，后台按当前人员所属部门、当前餐别和刷餐时间，从 `guoxin_special_consume_price_rule`、`guoxin_hotel_consume_price_rule`、`guoxin_group_consume_price_rule` 三个价格规则中匹配消费金额；匹配成功后，后续支付链路参考 `/api/consume/orderPay`。\n\n匹配顺序：特殊人群消费机消费价格 -> 酒店消费机消费价格 -> 集团消费机消费价格。同一规则内优先匹配包含人员部门的部门配置，未命中时再匹配未配置部门的全局规则。\n\n入参示例\n\n```json\n{\n  \"staff_uuid\": \"BB0CC0DF-2341-3879-D8DC-E1D7DD7E513E\",\n  \"equipment_code\": \"00001\",\n  \"create_time\": \"2026-07-06 12:00:00\",\n  \"msgid\": \"000011783346000000\",\n  \"publish_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@device_0002\",\n  \"subscribe_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@0001\"\n}\n```\n\n说明：\n- `staff_uuid`：用户 uuid，必填，用于识别人员和部门。\n- `equipment_code`：消费机编号，必填。\n- `msgid`：消息唯一标识，必填，建议仍使用 `equipment_code + 消费时间毫秒时间戳`。\n- `create_time`：消费时间，非必填，不传时后台按当前时间处理。\n- `money`、`order_type` 不需要传；后台固定按在线定额消费链路处理。\n\n支付成功\n```json\n{\n  \"code\": 0,\n  \"message\": \"支付成功\",\n  \"data\": {\n    \"order_no\": \"251216168174448\",\n    \"staff_uuid\": \"0CE81F87-78D4-11D4-CA96-5F5CB9A9A3F3\",\n    \"staff_name\": \"王麻子\",\n    \"remain_balance\": \"60.93\",\n    \"pay_time\": \"2026-07-06 12:00:01\",\n    \"card_id\": \"10000009\",\n    \"total_price\": \"13.00\",\n    \"pay_price\": \"13.00\",\n    \"management_fee\": \"0.00\",\n    \"discount_amount\": \"0.00\",\n    \"marketing_strategy_id\": 0\n  },\n  \"trace_id\": \"69411f03e2b06\"\n}\n```\n\n支付失败\n```json\n{\n  \"code\": 1,\n  \"message\": \"未匹配到当前消费机刷脸消费价格规则\",\n  \"trace_id\": \"67727094b23af\"\n}\n```\n```json\n{\n  \"code\": 8001,\n  \"message\": \"余额不足，请充值后再尝试！\",\n  \"data\": [],\n  \"trace_id\": \"690ebe193df10\"\n}\n```\n",
    "operationId": "guoxinFacePay",
    "sourceUrl": "",
    "method": "post",
    "path": "/api/consume/guoxinFacePay",
    "tags": [],
    "status": "developing",
    "requestBody": {
      "type": "application/json",
      "parameters": [],
      "jsonSchema": {
        "type": "object",
        "properties": {
          "staff_uuid": {
            "type": "string",
            "description": "用户uuid，用于识别人员和部门"
          },
          "equipment_code": {
            "type": "string",
            "description": "消费机编号"
          },
          "create_time": {
            "type": "string",
            "description": "消费时间，不传则使用后台当前时间"
          },
          "msgid": {
            "type": "string",
            "description": "消息唯一标识，建议 equipment_code + 消费时间毫秒时间戳"
          },
          "publish_topic": {
            "type": "string",
            "description": "定点发送topic，非必填"
          },
          "subscribe_topic": {
            "type": "string",
            "description": "定点接收topic，非必填"
          }
        },
        "required": [
          "staff_uuid",
          "equipment_code",
          "msgid"
        ],
        "x-apifox-orders": [
          "staff_uuid",
          "equipment_code",
          "create_time",
          "msgid",
          "publish_topic",
          "subscribe_topic"
        ]
      },
      "required": true,
      "mediaType": "",
      "examples": [
        {
          "value": "{\n  \"staff_uuid\": \"BB0CC0DF-2341-3879-D8DC-E1D7DD7E513E\",\n  \"equipment_code\": \"00001\",\n  \"create_time\": \"2026-07-06 12:00:00\",\n  \"msgid\": \"000011783346000000\",\n  \"publish_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@device_0002\",\n  \"subscribe_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@0001\"\n}",
          "mediaType": "application/json",
          "description": "刷脸直付"
        }
      ],
      "oasExtensions": ""
    },
    "parameters": {
      "query": [],
      "header": [
        {
          "required": true,
          "description": "api授权账号",
          "type": "string",
          "id": "h_account_2qFShp",
          "example": "admin",
          "enable": true,
          "name": "account"
        },
        {
          "required": true,
          "description": "api授权密码",
          "type": "string",
          "id": "h_pwd_1n0snS",
          "example": "Admin@2025#User&88",
          "enable": true,
          "name": "pwd"
        },
        {
          "required": true,
          "description": "api授权密钥",
          "type": "string",
          "id": "h_key_iP7aRJ",
          "example": "K8P3Z2X7Q9W1E4R6T5Y3U8D2F1G7H9",
          "enable": true,
          "name": "key"
        }
      ]
    },
    "commonParameters": {
      "query": [],
      "body": [],
      "cookie": [],
      "header": [
        {
          "name": "Access-Token",
          "enable": false
        }
      ]
    },
    "auth": {},
    "responses": [
      {
        "id": "163984792",
        "name": "成功",
        "code": 200,
        "contentType": "json",
        "jsonSchema": {
          "type": "object",
          "properties": {
            "code": {
              "type": "integer"
            },
            "message": {
              "type": "string"
            },
            "data": {
              "type": "object"
            },
            "trace_id": {
              "type": "string"
            }
          },
          "x-apifox-orders": [
            "code",
            "message",
            "data",
            "trace_id"
          ]
        },
        "itemSchema": {},
        "description": "",
        "mediaType": "",
        "headers": [],
        "oasExtensions": ""
      }
    ],
    "responseExamples": [],
    "codeSamples": [],
    "projectId": 5737553,
    "moduleId": 4788005,
    "folderId": 90127539,
    "ordering": 10,
    "responsibleId": 0,
    "commonResponseStatus": {},
    "advancedSettings": {
      "disabledSystemHeaders": {}
    },
    "customApiFields": {},
    "oasExtensions": "",
    "mockScript": {},
    "createdAt": "2026-07-06T03:53:31.782Z",
    "updatedAt": "2026-07-06T03:53:31.782Z",
    "creatorId": 1084735,
    "editorId": 1084735,
    "creatorUserId": 1084735,
    "editorUserId": 1084735,
    "visibility": "INHERITED",
    "securityScheme": {},
    "callbacks": ""
  }
}