Loading…

Upgrade the size of the organization

# Match strictly according to charging items ```javascript WXAPI.organizeUpgrade({ token: '000', organizeId: 'Organization ID', priceId: 1234 }) ``` + token current user login credentials + organizeId The ID of the organization that is about to be upgraded + priceId new organization charging ID # Automatically calculate price per person/duration In this mode, you need to first add text parameters in system settings, system parameters: + parameter name organize_price + Parameter value: ```json { "dayPrice": 1, "monthPrice": 30, "yearPrice": 330 } ``` + dayPrice price per person per day + monthPrice price per person per month + yearPrice price per person per year ```javascript WXAPI.organizeUpgradeV2({ token: '000', name: 'Organization name', }) ``` + token current user login credentials + organizeId The ID of the organization that is about to be upgraded + addMembers increases the number of people, negative numbers decrease the number of people + durationType duration type 0 days 1 month 2 years + addDuration increases the duration + calculate passes true, does not process the logic, and just returns the prediction results. # Online payment method upgrade If you use online payment to upgrade your organization, follow the tutorial below: [**"Detailed explanation of nextAction parameter usage"**](https://www.yuque.com/apifm/doc/aetmlb#UChr2)