小程序直播 /商品管理 /撤回商品审核

# 撤回商品审核

> 接口应在服务器端调用,详细说明参见[服务端API](https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/backend-api.html)。

> 本接口支持[云调用](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/openapi/openapi.html)。需开发者工具版本 >= `1.02.1904090`(最新[稳定版下载](https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html)),`wx-server-sdk` >= `0.4.0`

## 接口说明

### 接口英文名

resetAudit

### 功能描述

该接口用于撤回商品审核,消耗的提审次数不返还。

### 注意事项

调用额度:500次/一天

## 调用方式

### HTTPS 调用

```text
POST https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token=ACCESS_TOKEN 
```

### 云调用

- 出入参和 HTTPS 调用相同,调用方式可查看[云调用说明文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/openapi/openapi.html)
- 接口方法为: openapi.liveBroadcast.goodsResetAudit

### 第三方调用

- 调用方式以及出入参和 HTTPS 相同,仅是调用的 token 不同
- 该接口所属的权限集 id 为:52
- 服务商获得其中之一权限集授权后,可通过使用[authorizer_access_token](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html)代商家进行调用

### 请求参数含义

| **参数** | **类型** | **必填** | **说明** |
| :------- | :------- | :------- | :------- |
| goodsId  | Number   | 是       | 商品ID   |
| auditId  | Number   | 是       | 审核单ID |

### 返回参数含义

| **参数** | **类型** | **说明** |
| :------- | :------- | :------- |
| errcode  | Number   | 错误码   |

## 调用示例

> 示例说明: HTTPS请求示例

### 请求数据示例

```json
{    
    "auditId": 525022184,
    "goodsId": 9
} 
```

### 返回数据示例

```json
{
    "errcode": 0,
    "errmsg": "ok"
} 
```

### 错误码

| 错误码 | 错误码取值                                              | 解决方案                                                     |
| :----- | :------------------------------------------------------ | :----------------------------------------------------------- |
| 40001  | invalid credential access_token isinvalid or not latest | 获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口 |
| 300009 | 商品审核撤回失败                                        |                                                              |
| 300017 | 商品未提审                                              |                                                              |