# Custom user parameter management interface

This interface allows a blogger to bind custom user parameters for a specific union ID under a single WeChat open platform account (subject needs to be consistent with the Twitter account), and after the bound user has placed an order through the affiliate promotion material, the user can pass the code.Query the Order Details InterfaceYou can query the custom user parameters corresponding to that user.

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
binding/Transform 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 unionids

# 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]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html))
openAccount string yes Open platform accounts

# POST Data examples

{
  "openAccount": "APPID"
}

# Return value

# Object

attribute type Introductions
Error code 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 open The account does not exist.
25506 open Accounts are unusual
25507 open Accounts are unusual
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]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html))

# Return value

# Object

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

# III. Bonding/Switch binding 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]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html))
Unions string yes Open Platform Unions
customizeInfo string yes Custom Parameters

# POST Data examples

{
  "unions":  "UNIONID",
  "customizeInfo": "customizeInfo"
}

# Return value

# Object

attribute type Introductions
Error code 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 open The account does not exist.
25506 open Accounts are unusual
25507 open Accounts are unusual
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]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html))
Unions string yes Open Platform Unions

# POST Data examples

{
  "unions":  "UNIONID"
}

# Return value

# Object

attribute type Introductions
Error code 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 open The account does not exist.
25506 open Accounts are unusual
25507 open Accounts are unusual
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]((https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html))
Unions string yes Open Platform Unions

# Return value

# Object

attribute type Introductions
Error code 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 open The account does not exist.
25506 open Accounts are unusual
25507 open Accounts are unusual
25508 Validation failed
25509 Custom parameters bound exceed the quantity limit