{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"b0d8c856-8a9e-4a07-a069-2a16f6921a9a","name":"链科云打印 v3 API 使用文档","description":"## 基本操作流程:\n\n**前置条件：对接API前，请务必先到开放平台(**[https://open.liankenet.com/](https://open.liankenet.com/#/device/detail?device_id=lc27cs03124305)**) 绑定设备，详见** [《重要通知：链科云设备安全性升级》](https://lianke.yuque.com/vgtche/ng6y25/gylb4owfwsn4che4?singleDoc#%E3%80%8A%E9%87%8D%E8%A6%81%E9%80%9A%E7%9F%A5%EF%BC%9A%E9%93%BE%E7%A7%91%E4%BA%91%E8%AE%BE%E5%A4%87%E5%AE%89%E5%85%A8%E6%80%A7%E5%8D%87%E7%BA%A7%E3%80%8B)\n\n1. **第一步-获取打印机信息**\n    \n    - 购买云盒，推荐使用链科云盒，[点击下单](https://shop167081082.m.youzan.com/v2/showcase/homepage?alias=W79JHvloAF)\n        \n    - 从二维码获取`deviceId`(云账号) 和 `deviceKey`(云密码)\n        \n2. **第二步-提交打印任务**\n    \n    - 设定打印机参数，并提交打印任务\n        \n3. **第三步-查询打印状态**\n    \n    - 查询打印结果（可使用回调代替）\n        \n\nAPI服务器地址 `cloud.liankenet.com`\n\n---\n\n`cloud.wisiyilink.com` **域名已下线，请及时更换，该域名随时失效** [点击查看更新变更通知详情](https://lianke.yuque.com/vgtche/ng6y25/vywmdxu20ghmysle?singleDoc=)\n\n## API约定\n\n- 每个请求的都要在headers中填入 ApiKey _**(重要, 如因不带ApiKey导致业务中断，链科不承担任何责任)**_\n    \n- ApiKey请到平台注册获取 [点击跳转](https://open.liankenet.com)\n    \n\n## 从二维码获取deviceId，deviceKey方法\n\n- 解析二维码获取网页链接，解析网页链接中token参数\n    \n- 得到token值进行反base64，得到以:分隔的字符串\n    \n- 字符串前者为deviceId，后者为deviceKey\n    \n\n## SDK (持续更新)\n\nphp sdk: [https://github.com/liankenet/cloud_printer_demo](https://github.com/liankenet/cloud_printer_demo)\n\n小程序配网插件：\n\n[https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wxa2a39810c572b508&amp;token=1709758749&amp;lang=zh_CN](https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wxa2a39810c572b508&token=1709758749&lang=zh_CN)\n\n## API 测试 demo\n\n[https://open.liankenet.com/api_demo/](https://open.liankenet.com/api_demo/#/home)\n\n## 注意事项（重要）\n\n- 请使用[https://docs.liankenet.com/api_doc/](https://docs.liankenet.com/api_doc/)获取最新文档，避免因版本更新遇到问题\n    \n- 有业务高峰期请提前通知，保障服务稳定性\n    \n- 该服务为正式对外服务，禁止对本API服务进行压测，如有压测行为视为攻击，链科有权禁用ApiKey与服务器ip，严重影响业务的攻击行为将通过法律途径解决\n    \n\n## 更新日志\n\n2022年03月01日\n\n- 打印接口新增`reportDeviceStatus` `reportPrinterStatus` `callbackUrl` 参数\n    \n\n2023年02月01日\n\n- 新增消息推送功能，可及时推送设备断线，打印机插拔等状态消息，如需使用该功能，请到管理后台设置回调地址\n    \n\n2023年02月07日\n\n- 新增连续打印失败错误重置API\n    \n\n2023年11月30日\n\n- 新增清空排队中的任务API\n    \n- 更换域名\n    \n\n2024年1月11日\n\n- 优化提交任务jobFile参数描述\n    \n\n2024年2月21日\n\n- 增加 jpScale 参数描述\n    \n\n2024年9月27日\n\n- 优化提交任务jobFile参数描述\n    \n\n2024年10月8日\n\n- 优化提交任务jobFile参数描述\n    \n\n2024年10月28日\n\n- 增加对接前设备绑定提示\n    \n- 修改文档链接地址\n    \n\n2025年07月03日\n\n- refresh_device_info接口下线\n    \n\n2025年11月26日\n\n- 增加 urlFileExt 参数描述","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"1758872","team":197448,"collectionId":"b0d8c856-8a9e-4a07-a069-2a16f6921a9a","publishedId":"SWE83H6u","public":true,"publicUrl":"https://documenter-api.postman.tech/view/1758872/SWE83H6u","privateUrl":"https://go.postman.co/documentation/1758872-b0d8c856-8a9e-4a07-a069-2a16f6921a9a","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","version":"8.11.4","publishDate":"2019-12-11T01:13:29.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/ce7fdd4d1028f2dea5db44e31585915c8efdf9d613c16d01196e3d30a796fa26","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/SWE83H6u"}