# 1. Dxplaination of access to financial electronic instruments
# 1.1 Collection units + Finance Bureau model
The collecting unit is responsible for obtaining user authorization to open bills, and the Finance Bureau is responsible to open fiscal electronic bills and add them to the user card package, which is suitable for scenarios where the collecting unit and the Finance bureau are independent of each other.
# 1.2 The self-built platform model
The self-built platform is responsible not only for the responsibilities of the collection unit but also for the responsibility of the Finance Bureau. Applies to scenarios where the same role is responsible for obtaining user authorization and invoicing.
# 2. Account and related configuration
# 2.1 Receivable units access information that needs to be prepared
1 Go to WeChat public platform to apply Service Account, get AppID and appsecret, which is used to call the interface.
2 Get access_token, refer to interface list for details.
3 Get a ticket, refer to interface list for details.
4 Configure Service Account callback, refer to interface list for details.
Service Account Interface Permissions:
To apply for WeChat Financial Electronic Bill Authority, the executing and receiving unit should send the following information towxfapiao@tencent.com Make an application.
Name of executive unit | Credentials of the receiving authority (copy of the organizational code card) | Business Dxplaination | Interface person and contact details | Service Account AppID |
---|---|---|---|---|
6 If it is an app to open financial electronic bills, you need to go to the WeChat open platform to apply for an account, create an application, get AppID and appsecret.
In addition, you will need to send the following information to wxfapiao@tencent.com Make an application for interface rights.
Name of executive unit | Credentials of the receiving authority (copy of the organizational code card) | Business Dxplaination | Interface person and contact details | Service Account AppID | Open platform AppID |
---|---|---|---|---|---|
7 Find Finance and Politics Bureau to provide s_p AppID.
# 2.2 The Finance Department accesses information that needs to be prepared
1 Go to WeChat public platform to apply Service Account, get AppID and appsecret, which is used to call the interface.
2 Get access_token, refer to interface list for details.
3 Configure Service Account callback, refer to interface list for details.
4 Apply for financial bureaucratic interface authority:
5 Get s_p AppID and provide it to the receiving unit.The s_pappid of the same financial bureau is the same, so you only need to call the interface once and save it.Refer to interface list .
Create a template card_id for financial electronic bills, and the same financial and political bureau can correspond to multiple receiving units.For the same receiver, use the same card_id, for different receivers, use different card_id, refer to interface list .
# 2.3 Built-in platforms access information that needs to be prepared
The self-built platform is responsible for the responsibilities of both the collection units and the finance bureau, so it is necessary to prepare the information that the above collection units need to prepare. Reference is made to information that needs to be prepared for access by collection units and information that requires preparation for access by the Treasury Department.
# 3. Business Process Dxplaination
We provide different scenarios access to financial electronic bills, including Service Account to receive tickets, app to receive tickets.We use the access model of the collection unit + the finance bureau to illustrate the process of each access scenario. The access process for a self-built unit is to merge the operations of the revenue collection unit and the finance bureau under the same account.
# 3.1 Service Account Pick up tickets
Service Account The business process of receiving non-tax financial electronic bills under the scenario is as follows:
1 Finance and Politics Bureau gets s_p AppID and provides it to the receiving unit.The s_pappid of the same financial bureau is the same, so you only need to call the interface once and save it.Refer to interface list .
2 The receiving unit gets access_token, referring to interface list .
3 The receiving unit obtains the ticket, referring to the interface list .
4 The recipient gets a link to the license page, referring to the interface list .
5 The receipt unit provides a link to the authorization page to the user, the user clicks on the approval, and the user opens the accessibility page. The authorization interaction is as follows:
6 The collection unit receives callbacks from the user authorizing the payment of the fiscal electronic note, learns that the user authorized the payment of a fiscal electronic note and notifies the Finance Bureau to collect the fiscal electronic paper, referencing the interface list .
7 The Finance Bureau creates the fiscal electronic bill template card_id. The same Finance Bureau can correspond to multiple receiving units. The same receiving unit uses the same card_id, and different receiving departments use different card_ids. Refer to List of interfaces
8 The Finance and Political Bureau will upload the pdf of the financial electronic bill to the WeChat financial electronic bill platform, refer to the interface list
9 Finance and Politics Bureau check the pdf uploaded to WeChat Finance electronic bill platform, reference interface list
10 The Finance and Political Bureau adds financial electronic bills to the user, referring to the interface list , the user will receive the following template message:
11 The interaction of financial electronic instruments is as follows:
# 3.2 App for tickets
The business process for receiving financial electronic bills in the app scenario is as follows:
1 Finance and Politics Bureau gets s_p AppID and provides it to the receiving unit.The s_pappid of the same financial bureau is the same, so you only need to call the interface once and save it.Refer to interface list .
2 The receiving unit gets access_token, referring to interface list .
3 The receiving unit obtains the ticket, referring to the interface list .
4 The recipient gets a link to the license page, referring to the interface list .
5 The receiving unit will jump to the authorization page of WeChat in the app, and let the user click on the authorization, and the authorization interaction is as follows:
Because the open platform account does not have the ability to accept callback,Therefore, the Service Account of the receiving unit receives the user-authorized callback, learns that the user has authorized the collection of the fiscal electronic note, notifies the Finance Bureau to collect the fiscal electronic notes, and refers to the interface list .
7 The Finance Bureau creates the fiscal electronic bill template card_id. The same Finance Bureau can correspond to multiple receiving units. The same receiving unit uses the same card_id, and different receiving departments use different card_ids. Refer to List of interfaces
8 The Finance and Political Bureau will upload the pdf of the financial electronic bill to the WeChat financial electronic bill platform, refer to the interface list
9 Finance and Politics Bureau check the pdf uploaded to WeChat Finance electronic bill platform, reference interface list
10 The Finance and Political Bureau adds financial electronic bills to the user, referring to the interface list , the user will receive the following template message:
11 The interaction of financial electronic instruments is as follows: