{
  "id": 252596584,
  "name": "订单结算",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "入参\n\n```\n{\n\t\"dishes\": [{//菜品信息，非必填\n\t\t\"uuid\": \"7E5D022D-358F-B57F-7006-AB1D5B6E84EF\",//菜品uuid，必填\n\t\t\"number\": \"1\",\n\t\t\"money\": \"20\"//菜品价格，单位元，必填\n\t}],\n        \"staff_uuid\": \"BB0CC0DF-2341-3879-D8DC-E1D7DD7E513E\",//用户uuid--人脸识别结算\n\t\"paycode\": \"677268c53e0b0\",//个人支付二维码 消费+绑盘，\"C\"开头去掉\"C\"\n\t\"card_id\": \"10001\", //IC卡号：消费+绑盘\n\t\"money\": \"12.8\",//订单金额\n        \"equipment_code\": \"00001\",//消费机编号\n        \"order_type\": \"1\",//消费机收款方式：1=在线；2=离线\n        \"action\": \"consume\",//消息类型：consume=消费订单【非必填】\n        \"create_time\": \"2025-11-11 18:00:00\",//消费时间\n        \"msgid\": \"00011762854488259\",//equipment_code+消费时间(毫秒时间戳)\n        \"publish_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@device_0002\",//定点发送topic【非必填】\n        \"subscribe_topic\": \"zhct_dev/business/p2p/GID_zhct_dev@@@0001\",//定点接收topic【非必填】\n}\n```\n\n支付成功\n```\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\": \"2025-12-16 16:57:41\",\n        \"card_id\": \"10000009\",\n        \"total_price\": \"1.00\",\n        \"pay_price\": \"1.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{\n    \"code\": 1,\n    \"message\": \"支付失败\",\n    \"trace_id\": \"67727094b23af\"\n}\n{\n    \"code\": 1,\n    \"message\": \"支付中，请勿重复支付\",\n    \"trace_id\": \"677270cf2f94a\"\n}\n{\n    \"code\": 8001,\n    \"message\": \"余额不足，请充值后再尝试！\",\n    \"data\": [],\n    \"trace_id\": \"690ebe193df10\"\n}\n{\n    \"code\": 1,\n    \"message\": \"接口认证失败\",\n    \"time\": \"1764834872\",\n    \"data\": [],\n    \"trace_id\": \"69313e38d7713\"\n}\n```\n",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/api/consume/orderPay",
  "tags": [],
  "status": "developing",
  "requestBody": {
    "type": "application/json",
    "parameters": [],
    "jsonSchema": {
      "type": "object",
      "properties": {},
      "x-apifox-orders": []
    },
    "required": false,
    "mediaType": "",
    "examples": [
      {
        "value": "{\n\t\"dishes\": [\n\t\t{\n\t\t\t\"uuid\": \"106C6E48-491C-2C5B-17E8-5D39109EEC75\",\n\t\t\t\"number\": \"1\",\n\t\t\t\"money\": \"0.1\"\n\t\t}\n\t],\n\t\"staff_uuid\": \"\",\n\t\"paycode\":\"\", \n\t\"card_id\":\"2000001\",\n\t\"money\":\"0.1\",\n\t\"equipment_code\":\"wb-xfj1\",\n    \"order_type\":\"1\",\n    \"action\":\"consume\",\n    \"create_time\": \"2026-03-26 18:48:04\",\n    \"msgid\": \"wb-xfj117702776843271000\",\n    \"publish_topic\": \"zhct/zhct/p2p/GID_zhct@@@consume_work_0\",\n    \"subscribe_topic\": \"zhct/zhct/p2p/GID_zhct@@@wb-xfj1\",\n\t\"fauthAccount\":\"admin\",\n\t\"fauthKey\":\"b5z3w7x9t1s4p6m8n2h0d7f3j1k9q5v2r8\",\n\t\"authPwd\":\"Nutr@Syst2026#Mng&82\"\n}",
        "mediaType": "application/json",
        "description": ""
      }
    ],
    "oasExtensions": ""
  },
  "parameters": {
    "query": [],
    "header": [
      {
        "required": true,
        "description": "api授权账号",
        "type": "string",
        "id": "p87CcWXRtW",
        "example": "admin",
        "enable": true,
        "name": "account"
      },
      {
        "required": true,
        "description": "api授权密码",
        "type": "string",
        "id": "Qdn0X6T8qc",
        "example": "Admin@2025#User&88",
        "enable": true,
        "name": "pwd"
      },
      {
        "required": true,
        "description": "api授权密钥",
        "type": "string",
        "id": "Tqd39Dytz4",
        "example": "K8P3Z2X7Q9W1E4R6T5Y3U8D2F1G7H9",
        "enable": true,
        "name": "key"
      }
    ]
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": [
      {
        "name": "Access-Token",
        "enable": false
      }
    ]
  },
  "auth": {},
  "responses": [
    {
      "id": "599581808",
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {},
        "x-apifox-orders": []
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": [],
      "oasExtensions": ""
    }
  ],
  "responseExamples": [],
  "codeSamples": [],
  "projectId": 5737553,
  "moduleId": 4788005,
  "folderId": 48690415,
  "ordering": 32,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2025-01-08T09:49:46.000Z",
  "updatedAt": "2026-03-31T07:34:00.000Z",
  "creatorId": 1513284,
  "editorId": 1513284,
  "creatorUserId": 1513284,
  "editorUserId": 1513284,
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}