By linking a Mini Program Shopping Assistant account to the same Open Platform account as the Mini Program, orders from both can be associated using the unionid.
Binding Rules
- Accounts belonging to the same entity or associated entities can be bound. For more information and instructions on associated entities, please refer to https://kf.qq.com/product/wxkfpt.html#hid=2929.
- A Shopping Assistant account can only be bound to one Open Platform account.
- An Open Platform account can bind up to 10 Shopping Assistant accounts.
Steps to Follow
- First, enable the Open Platform capabilities for the Shopping Assistant according to the Shopping Assistant Developer Guide.
- Go to the Shopping Assistant details page („WeChat Developer Platform – Scan Code to Log In – My Business – Shopping Assistant – Binding Relationship“) to bind the Open Platform account. Make sure the Open Platform account used for binding is the same one as that used for the Mini Program.
- You will need to enter the Open Platform’s email address or AppID to complete the binding process.
- After entering the email address or AppID, the Open Platform administrator must scan a code or provide their account credentials for verification. Once verified, the binding is completed.
- To unbind, simply go to 「WeChat Developer Platform – Scan Code to Log In – My Business – Shopping Assistant – Binding Relationship」 and unbind the account.
- Note: After binding to an Open Platform account, you can view other accounts bound under that account (such as Mini Program accounts) in the same location.
API Description
- Once a Mini Program account is bound to an Open Platform account, the
code2SessionAPI (https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/code2Session.html) will return theunionid. - Similarly, when a Shopping Assistant account is bound to an Open Platform account, the
get_order_detailAPI for retrieving order details will also return theunionid.