載體(tǐ)标識碼查詢

## 接口名稱 數(shù)據驗真 ## 接口描述 驗證二維碼內(nèi)容的真實性。 ## 接口地址 https://idr.gdsinsing.com/v2/query-handle-by-code ## 調用方式 |方法|數(shù)據類型| |-|-| |[ ] GET|[X] form-data| |[X] POST|[ ] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 參數(shù)說明(míng) |參數(shù)名|位置|類型|必填|說明(míng)| |-|-|-|-|-| |type|body|String|是|載體(tǐ)類型| |code|body|String|是|載體(tǐ)編号| > 載體(tǐ)碼類型type取值 >> RFID >> ECODE >> OID >> GS1 >> MA >> NFC >> CUS ## 返回結果 |參數(shù)名|位置|類型|說明(míng)| |-|-|-|-| |success||Boolean|調用結果(true:失敗,false:成功)| |data||List|載體(tǐ)标識信息列表| |>code|data|String|載體(tǐ)編号| |>type|data|String|載體(tǐ)類型| |>prefix|data|String|載體(tǐ)前綴| |>handle|data|String|載體(tǐ)标識碼| |msg||String|描述信息| |ex||String|異常信息| |>code|ex|String|錯誤碼| |>reson|ex|String|錯誤原因| |>resolve|ex|String|解決辦法| #### 成功返回 ```json { "success": true, "data": [ { "code": "794389438903490093423", "type": "RFID", "prefix": "88.168.88", "handle": "88.168.88/1681888762733" } ], "msg": "success", "ex": null } ``` #### 失敗返回 ```json { "success": false, "data": null, "msg": "未查詢到載體(tǐ)标識碼", "ex": { "code": "00300017", "reason": "未查詢到載體(tǐ)标識碼", "resolve": "請(qǐng)檢查傳入內(nèi)容" } } ``` ## 調用例子 ``` JavaScript var form = new FormData(); form.append("type", "RFID"); form.append("code", "794389438903490093423"); var settings = { "url": "https://idr.gdsinsing.com/v2//query-handle-by-code", "method": "POST", "timeout": 0, "processData": false, "mimeType": "multipart/form-data", "contentType": false, "data": form }; $.ajax(settings).done(function (response) { console.log(response); }); ```