W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎勵
本接口應(yīng)在服務(wù)器端調(diào)用,詳細(xì)說明參見服務(wù)端API。
本接口支持云調(diào)用。需開發(fā)者工具版本 >= 1.02.1904090(最新穩(wěn)定版下載)
wx-server-sdk >= 0.4.0
更新商戶審核結(jié)果
調(diào)用方式:
POST https://api.weixin.qq.com/cgi-bin/express/delivery/service/business/update?access_token=ACCESS_TOKEN
屬性 | 類型 | 默認(rèn)值 | 必填 | 說明 |
---|---|---|---|---|
access_token | string | 是 | 接口調(diào)用憑證 | |
shop_app_id | string | 是 | 商戶的小程序AppID,即審核商戶事件中的 ShopAppID | |
biz_id | string | 是 | 商戶賬戶 | |
result_code | number | 是 | 審核結(jié)果,0 表示審核通過,其他表示審核失敗 | |
result_msg | string | 否 | 審核錯誤原因,僅 result_code 不等于 0 時需要設(shè)置 |
屬性 | 類型 | 說明 |
---|---|---|
errcode | number | 錯誤碼 |
errmsg | string | 錯誤信息 |
errcode 的合法值
值 | 說明 | 最低版本 |
---|---|---|
0 | 成功 | |
-1 | 其他錯誤 | |
40013 | 非法的商戶小程序 AppID | |
9300525 | 商戶未申請過審核 |
{
"shop_app_id": "wxABCD",
"biz_id": "xyz",
"result_code": 0,
"result_msg": "審核通過"
}
{
"errcode": 0,
"errmsg": "ok"
}
云調(diào)用是小程序·云開發(fā)提供的在云函數(shù)中調(diào)用微信開放接口的能力,需要在云函數(shù)中通過 wx-server-sdk 使用。
openapi.logistics.updateBusiness
需在 config.json 中配置 logistics.updateBusiness API 的權(quán)限,詳情
屬性 | 類型 | 默認(rèn)值 | 必填 | 說明 |
---|---|---|---|---|
shopAppId | string | 是 | 商戶的小程序AppID,即審核商戶事件中的 ShopAppID | |
bizId | string | 是 | 商戶賬戶 | |
resultCode | number | 是 | 審核結(jié)果,0 表示審核通過,其他表示審核失敗 | |
resultMsg | string | 否 | 審核錯誤原因,僅 result_code 不等于 0 時需要設(shè)置 |
屬性 | 類型 | 說明 |
---|---|---|
errCode | number | 錯誤碼 |
errMsg | string | 錯誤信息 |
errCode 的合法值
值 | 說明 | 最低版本 |
---|---|---|
0 | 成功 |
拋出的異常
屬性 | 類型 | 說明 |
---|---|---|
errCode | number | 錯誤碼 |
errMsg | string | 錯誤信息 |
errCode 的合法值
值 | 說明 | 最低版本 |
---|---|---|
-1 | 其他錯誤 | |
40013 | 非法的商戶小程序 AppID | |
9300525 | 商戶未申請過審核 |
const cloud = require('wx-server-sdk')
cloud.init()
exports.main = async (event, context) => {
try {
const result = await cloud.openapi.logistics.updateBusiness({
shopAppId: 'wxABCD',
bizId: 'xyz',
resultCode: 0,
resultMsg: '審核通過'
})
return result
} catch (err) {
return err
}
}
{
"errCode": 0,
"errMsg": "openapi.logistics.updateBusiness:ok"
}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: