This API should be called on the server side and cannot be called directly on the client side (Mini Program, web page, APP, etc.). For details, please refer to API Call Guide.
API English Name: UnbindUserB2CAuthInfo
Bulk unbinds employment relationships that have been bound in the B2C module.
1. Call Method
HTTPS Call
POST https://api.weixin.qq.com/wxa/business/unbinduserb2cauthinfo?access_token=ACCESS_TOKEN
Cloud Call
- This API does not support cloud call.
Third-party Call
- This API does not support third-party platform calls.
2. Request Parameters
Query Parameters Query String Parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | string | Yes | ACCESS_TOKEN | API call credential, you can use access_token |
Request Body Request Payload
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| openid_list | array | Yes | ["oL7T268t3zlOb64IvrN64-XXXXXX","oL7T268t3zlOb64IvrN64-YYYYYY"] | List of OpenIDs of the users to be unbound |
3. Response Parameters
Response Body Response Payload
| Parameter | Type | Example | Description |
|---|---|---|---|
| errcode | number | 0 | Error code |
| errmsg | string | ok | Error message |
4. Notes
No special notes for this API
5. Code Example
Request Example
{
"openid_list": [
"oL7T268t3zlOb64IvrN64-XXXXXX"
]
}
Response Example
{
"errcode": 0,
"errmsg": "ok"
}
6. Error Codes
The following is the error code list of this API, other error codes can refer to Common Error Codes; When encountering errors in calling the API, you can use the official API Diagnostic Tool to assist in locating and analyzing problems.
| Error Code | Error Description | Solution |
|---|---|---|
| -1 | system error | System is busy. Please try again later. |
| 40003 | invalid openid | Invalid OpenID. Please verify the validity of the OpenID. |
| 40097 | invalid args | Invalid parameter |
7. Applicable Scope
This API supports 「Mini Program」 account type calls. Other account types cannot call unless otherwise specified.