Unbind Apple Account

View Markdown

Last edited on 2026-03-12

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: unbindApple

This API is used to unbind an Apple account in cross-platform applications.

1. Call Method

HTTPS Call

POST https://api.weixin.qq.com/donut/unbindapple?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

ParameterTypeRequiredExampleDescription
access_tokenstringYesACCESS_TOKENAPI call credential, you can use access_token

Request Body Request Payload

ParameterTypeRequiredDescription
user_idstringYesCross-platform user ID. Do not pass this parameter from an insecure client. Obtain it on the server side via Login Credential Verification.

3. Response Parameters

Response Body Response Payload

ParameterTypeDescription
errcodenumberError Code
errmsgstringError Message

4. Notes

No special notes for this API

5. Code Example

Request Example

{
    "user_id": "bbb"
}

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 CodeError Description
-1system error
40014invalid access_token
10001005Identity management is not enabled for the cross-platform application
10001038User does not exist
10001041User has not bound an Apple account
10001044User has only bound an Apple account. To unbind, call Unregister User

7. Applicable Scope

This API supports 「Multi-platform App」 account type calls. Other account types cannot call unless otherwise specified.