# Custom user parameter management interface

This interface supports the user to bind custom user parameters to a specific unionid under a single WeChat open platform account (subject must be consistent with the user account),After a bound user has placed an order through the affiliate promotional material, the custom user parameters corresponding to that user can be retrieved via query the order details interface .

Interface Name Introductions
Bind an open platform account Supports Twitter to bind accounts on open platforms
Get an open platform account Supports Twitter to obtain signed open platform accounts
Bind / swap custom user parameters Support for tweeters to bind custom parameters for a specific unionid
Remove custom user parameters Supports tweeters to delete custom parameters for specific unionids
Get custom user parameters Support custom parameters for tweeting queries for specific unionid

# I. Attaching an open platform account

# Interface Dxplaination

Supports Twitter to bind accounts on open platforms Note: The open platform account bound must be the same subject as the Twitter account, and the open platform account can be changed twice a year

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/bind?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required to fill in Introductions
access_token string yes Interface call credentials
openAccount string yes Open platform accounts

# Examples of POST data

{
  "openAccount": "APPID"
}

# Return value

# Object

attribute type Introductions
errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter Error
25503 Obtaining subject information failed
25504 Subject validation failed
25505 The account does not exist.
25506 Open account exception
25507 Open account exception
25508 Validation failed
25509 Custom parameters bound exceed the quantity limit

# II. Get an account on the open platform

# Interface Dxplaination

Supports Twitter to obtain linked open platform accounts

# Request address

GET https://api.weixin.qq.com/union/promoter/open_account/get?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required to fill in Introductions
access_token string yes Interface call credentials

# Return value

# Object

attribute type Introductions
errcode number Error code
errmsg string Error message
openAccount string Open platform accounts
{
    "errcode": 0,
    "errmsg": "ok",
    "openAccount": "APPID"
}

# III. Bind / swap custom parameters

# Interface Dxplaination

Support for tweeters to bind custom parameters for a specific unionid Note: A unionid can bind only one custom parameter at a time, and repeated bindings take the latest value

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/add_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required to fill in Introductions
access_token string yes Interface call credentials
unionid string yes Open Platform unionid
customizeInfo string yes Custom Parameters

# Examples of POST data

{
  "unionid": "UNIONID",
  "customizeInfo": "customizeInfo"
}

# Return value

# Object

attribute type Introductions
errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter Error
25503 Obtaining subject information failed
25504 Subject validation failed
25505 The account does not exist.
25506 Open account exception
25507 Open account exception
25508 Validation failed
25509 Custom parameters bound exceed the quantity limit

# IV. Removing custom parameters

# Interface Dxplaination

Supports tweeters to delete custom parameters that have been bound by a specific unionid

# Request address

POST https://api.weixin.qq.com/union/promoter/open_account/del_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required to fill in Introductions
access_token string yes Interface call credentials
unionid string yes Open Platform unionid

# Examples of POST data

{
  "unionid": "UNIONID"
}

# Return value

# Object

attribute type Introductions
errcode number Error code
errmsg string Error message
{
    "errcode": 0,
    "errmsg": "ok",
}

# Error code

value Introductions
200002/25510 Parameter Error
25503 Obtaining subject information failed
25504 Subject validation failed
25505 The account does not exist.
25506 Open account exception
25507 Open account exception
25508 Validation failed
25509 Custom parameters bound exceed the quantity limit

# V. Get custom parameters

# Interface Dxplaination

Support for tweeters to get custom parameters bound by a specific unionid

# Request address

GET https://api.weixin.qq.com/union/promoter/open_account/get_customize_info?access_token=ACCESS_TOKEN

# Request parameters

attribute type Default values Required to fill in Introductions
access_token string yes Interface call credentials
unionid string yes Open Platform unionid

# Return value

# Object

attribute type Introductions
errcode number Error code
errmsg string Error message
customizeInfo string Custom Parameters
{
    "errcode": 0,
    "errmsg": "ok",
    "customizeInfo": "customizeInfo"
}

# Error code

value Introductions
200002/25510 Parameter Error
25503 Obtaining subject information failed
25504 Subject validation failed
25505 The account does not exist.
25506 Open account exception
25507 Open account exception
25508 Validation failed
25509 Custom parameters bound exceed the quantity limit