# Guidelines for increasing the frequency of web authorization interface calls

Service Account Web authorization is the capability of the WeChat open platform for service number web page developers to quickly register and log in users. Developers improve the efficiency of users registering and logged in to use service number web pages through this capability.The platform sets a limit on the concurrent frequency for this interface to ensure system stability. Developers are advised to be aware of the frequency and advise to call the interface reasonably based on the call in the interface documentation. See the interface documentation for more details

When a developer needs to promote or operate a web page and the existing interface call frequency does not meet the requirements, a temporary interface call increase can be made through this process.

# Entry to the raised brow

# WeChat Public platform

After logging in, find Web Services - Web Authorization (Web Authorization to obtain basic user information) in Interface Permissions. Click "Deduct Amount."

# Service Provider Platform

After completing the residency process, log in to the back-end, and under the Other Competencies menu, you will see the entrance to the Competencies Procurement.

# How the amount is raised

# Single increase

# Multiple increases, automatic increases

Purchase a dynamic scaling resource package first, then operate multiple increases through the interface, or automate increases by calling the interface.

# Login & Shop

Open WeChat public platform , log in,Find [Web Services] - [Web Authorisation] in [Interface Permissions] (Web Authorisation obtains basic user information), click "Go to Raise" and jump to the WeChat Services Market to purchase the required Raise Resource Pack.

# 2. Jump to WeChat Service Provider Platform (or directly access Service Provider Platform ), scan the QR code to log in

# 3. Click on the corporate home page of the company entity that is to be used for mining

If the enterprise home page is empty, or the company entity to be used for mining does not yet have a business home page, you need to complete the company entities' residence first, and the detailed residence guidelines are: Service Provider Platform Entry Process 2024 If there is an enterprise home page, it can be bound or changed according to the entry guidelines, detailed operational guidelines: Service provider platform entry process 2024

# 4. The ability to view and shop

Under the Other Capabilities menu, you can see the entrance to Capability Procurement.

# Single increase

# 1. Choose the amount package you need

Select the amount of increase and the time cycle. When you have completed your selection, click "Buy."

# 2. Set the Web App AppID and Validation Time for Deductions

Set the effective time of the promotion amount and the Service Account AppID that is bound to the corresponding website of the amount of the promotion, and click "Go to Pay" after completing the setup.

Note: Web application please enter the correct AppID, and its subject must be the same as the subject of the service market, otherwise it will not be able to complete the payment by checksum;The time of effectiveness of the order includes the time of effective immediately at the current time and the time of future effectiveness.

# 3. Check to confirm the relevant information
  • After entering the order settlement page, check the specific information such as the relevant agreement, check limit, length and effective time, and click "Pay."

# 4 Review of orders and invoice
  • Order inquiry and invoice issuance are conducted through the "Order" and "Invoices" portals.

# Go back to WeChat for resource allocation
  • Note: The current amount of effect is shown here; To schedule an order that will be valid in the future, go to the order details.

# Buy a dynamic expansion resource package to realize multiple raise and automatic raise

Because of the long internal payment process for enterprise procurement, it is sometimes difficult to meet time-sensitive requirements when purchases are made when a raise is required. To this end, a model for purchasing a dynamic scaling resource package first and then raising it several times automatically has been added.

Purchase the dynamic expansion resource package first, and then allocate the deductible resource to the specific Service Account web page.

There are two ways, one is through interface operations and one is through automation through interfaces.

# 1. Allocate through interface operations

Distribution of attention: after the successful operation, the order of the amount of data updating will be delayed by 3-5 minutes, if the batch operation, the actual feedback shall prevail.

# 2. Click on "Allocate quota," click on "Go to Allocate."

# 3. Select the order to assign the quota, select the [quota specifications] you want to choose, and click Next

# 4. Set the Service Account AppID of the amount to be withdrawn and the effective time

Note: The deduction can only be made for the same entity Service Account, not for H5 of other entities.

# Cancellation of allocation

Note: The option to withdraw an allocated replenishment resource package is available if it does not become effective. If it has entered into force, it cannot be withdrawn.

# Allocation via interface

Operating the quota through an interface still relies on manual operations; If an enterprise wishes to automate a levy based on data monitoring, it can refer to the following time series diagram to automate the levy.

# 1. Click on the Open Developer Settings tab for the Vendor Platform

Note: Administrator login is required to view and set up.

# 2. Get AppID, secret
  • For the transfer of resource allocation, query interface, please save a good AppSecret.

# 3. Set the recipient address for the service platform's message push

[Important: SP_SPUID, SPUID] | SP_SPU | SP_SPU ID | Use scenario | |--------------------|---------------|-------------------------------| | Dynamic Scaling Resource Pack | 10000185 | Use when calling getConvertibleSkus |

SPU SPU ID Use scenarios
WeChat Login Interface - QPM Enhancement (Web Application) 10000142 Use the corresponding skuid when invoking assignPackage to assign a debit resource pack to a web application from a dynamic scaling resource pack
Mobile phone number real-time verification component 10000086
# 4. Query assigable resource package ID

getConvertibleSkus

Query a list of convertible sku\ | WeChat Open Documentation

  • Call method : Call AppID, AppSecret of the service provider using the service provider platform

When adjusting the allocation interface, you need to input the resource package specifications to be allocated to the web application, so you need to first adjust the interface to query the resource quota specifications ID list for each order.

The resource packages that have been purchased can be assigned to web applications according to the following specifications, as described below, depending on the interface.

Specification of allocated quota resource packages
quota 1 day 3 days 5 days 7 days 14 days
50,000 / minute 15,000 45,000 75,000 105,000 210,000
100 thousand / min 29,000 87,000 145,000 203,000 406,000
200 thousand / min 57,000 171,000 285,000 399,000 798,000
300 thousand / min 86,000 258,000 430,000 602,000 1,204,000
400 thousand / min 114,000 342,000 570,000 798,000 1,596,000
500 thousand / min 142,000 426,000 710,000 994,000 1,988,000
# 5. Transfer Interface Allocation Resource Package ID

assignPackage

Vendor Allocation Resource Pack\ | WeChat Open Documentation

  • Call method : Call AppID, AppSecret of the service provider using the service provider platform

Input: Order ID, Weixin Mini Program AppID to be allocated, resource package specification ID to be allocated, etc.

For example, apply AppIDwxabcdefghij to Web pages and allocate a single lift resource package of 100 thousand times per minute

# 6. Cancel allocation of resource packages

cancelAssign

  • Call method : Call AppID, AppSecret of the service provider using the service provider platform

# Enquire about allocations

# 1. Enquire about the allocation of resources acquired

queryOrderList

Inquiry Order List\ | WeChat Open Document

  • Call method : Use the AppID, AppSecret of the service provider platform account to call

Entry: spuid

Back: Order List, etc.

getOrder

Inquiry Order Details\ | WeChat Open Documentation

  • Call method : Use the AppID, AppSecret of the service provider platform account to call

Entry: Order ID

Return: Order parameters, payment time, total resources, amount used, balance, etc.

# 2. Service-side Messaging

Purchased and allocated through dynamic scaling resource packages, the result of the allocation is sent the following message push, the result from the allocated quota and the official raise, whichever is the message push:

Platforms and Accounts Message Type Sending Content and Mechanisms
Service provider platform account fuwu.weixin.qq.com Resource allocation results Send after allocating resources
Cancellation of allocation results Send after the allocated resource is cancelled

Details of the matter:

Resource allocation result event: https://developers.weixin.qq.com/doc/oplatform/service_market/charge/callback/charge_sp_assign.html

Desalting result event: https://developers.weixin.qq.com/doc/oplatform/service_market/charge/callback/charge_sp_cancel_assign.html

# Common Questions Q & A

# 1 Rules for refund after purchase?

Refund Rules: If the purchase was made incorrectly and the resource package has not been officially distributed, a refund can be requested within 7 days of the successful payment. The money will be returned from the original payment path within 3-5 business days. If the resource package has already been used (used 1 time or more), you cannot apply for a refund. If you have not initiated a refund application for more than 7 days after the payment is successful, you cannot apply for a refund again.

# 2 Under what circumstances can a resource package assigned to a web application be reversed (i.e., returned to an already purchased resource package)?

Rule: The resource package is not used within 7 days of the successful allocation.

# 3 How long is the resource package valid?

Purchased resource packages may be used for distribution periods: Purchased resources packages will be effective immediately after payment is successful for a period of 2 years and will expire if they are not distributed within 2 years. Validity period of resource packages allocated to web applications: A resource package that has been allocated to a web application is valid for the period of time configured at the time of allocation.

Note about enumeration values for resource package status:

1- In effect: Contains all packages during the validity period. That is, it is exhausted and is also in effect.

2-Not valid: The status of the new allocation indicates that it is not valid.

3- Expired: Contains expired dates and refunds.

# 4 Can resource packet usage warnings and expiration warnings be sent via a message to a recipient address configured by the service provider?

# 5 If you have additional questions, please contact customer service.