# Introduction to Access Mode

This document describes several access modes for merchants to access WeChat electronic invoices, and merchants can determine which of the following modes according to their actual situation, and prepare corresponding account numbers and permissions to successfully invoke the interface according to the business scenario. Merchants can quickly determine which pattern they belong to by looking at the following decision tree.

Decision tree diagram

# 1. Merchant who has issued an electronic invoice

For merchants who have been able to issue electronic invoices, the application of WeChat electronic invoice program only needs to open the corresponding authority, and the electronic invoice is sent to the user under the user's authorization.

According to the different construction conditions of the merchant billing system, it is divided into the "merchant + billing platform model" and the "self-built platform model."

The definitions of the two models, time series diagrams, and permission preparations are described below, respectively.

# 1.1 Merchant + billing platform model

Merchant + billing platform model, refers to the merchant is responsible for obtaining user billing authorization, billing platform is responsible for issuing electronic invoices and add to the user WeChat card package.

It is suitable for merchants hosting electronic invoicing to third-party invoicing platforms, which can effectively reduce the development workload of merchants.

The merchant + billing platform model time series diagram is shown in the following diagram:

Time series of merchant + billing platform models

Preparations that need to be undertaken 1 Go to WeChat public platform to apply Service Account, get AppID and appsecret, which is used to call the interface.
2 Query invoice platform, get s_p AppID

Request merchant interface privileges

1 Login Service Account background, in the left [function] menu to find the [add function plug-in] button;

Menu on the left 2 Find [electronic invoices] in the addable feature plug-in and click on the electronic invoices plug-in introduction page;

Turn on the plugin

3 Click [Open] to activate the electronic invoicing feature plug-in.The Electronic Invoices menu appears on the left-hand side of the Functions menu after activation;

The left entrance

4 Enter from the left [Functions] menu [Electronic Invoices] entry and click [Open Permissions];

Access Permissions

5 Read the usage agreement and confirm access;

Opening the toast

6 The permission is successfully opened, and the permission section button becomes "Open."

Permissions are open

Debugging Interface

After completing the above preparation, it can be developed according to the invoice business scenario (merchant + invoice platform mode) document

# 1.2 The self-built platform model

Merchant self-built platform model, refers to the merchant is responsible for obtaining user billing authorization at the same time, the merchant itself issued electronic invoices and added to the user's WeChat card package.

In this model, because the electronic invoice PDF is generated directly in the invoice platform built by the merchant, it is more efficient for the merchant to complete the whole process.

The time series of the self-built platform model is shown in the following figure:

A time series diagram of the model of a self-built invoicing platform

Preparations that need to be undertaken 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 get access_token for details.
3 get ticket, details refer to get ticket.
4 Configure Service Account callback, see Receive callback push for details.

Request merchant interface privileges

1 Login Service Account background, in the left [function] menu to find the [add function plug-in] button;

Menu on the left

2 Find [electronic invoices] in the addable feature plug-in and click on the electronic invoices plug-in introduction page;

Turn on the plugin

3 Click [Open] to activate the electronic invoicing feature plug-in.The Electronic Invoices menu appears on the left-hand side of the Functions menu after activation;

The left entrance

4 Enter from the left [Functions] menu [Electronic Invoices] entry and click [Open Permissions];

Access Permissions

5 Read the usage agreement and confirm access;

Opening the toast

6 The permission is successfully opened, and the permission section button becomes "Open."

Permissions are open

Debugging Interface After completing the above preparations, it can be developed according to the billing business scenario (self-built billing platform mode) document .

# 2. Merchant who did not issue electronic invoices

For merchants who have not yet issued an electronic invoice, merchants are asked to go to the local tax bureau to handle the electronic inquiry business on their own.If you need assistance from a service provider, you can contact the WeChat e-invoicing service provider.

At present, a number of service providers have cooperated with WeChat to provide WeChat electronic invoice invoicing services, please choose the service provider according to the actual situation of the enterprise.

WeChat electronic invoice function, WeChat official does not charge any fees.If a service provider involves a charge, merchants are asked to evaluate their options based on their needs.

The following are the official websites of some of the service providers that can support WeChat electronic invoice, for reference only (in no particular order):

51 Invoice http://www.dxyun.com/

Invoice Pass https://www.fapiao.com/

One Hundred Hope Cloud http://www.baiwang.com/

http://www.e-inv.cn/

UFIDA electronic invoice http://www.piaoeda.com/

Invoice http://www.fapiaoer.cn/

Kingdee Invoice Cloud http://www.piaozone.com/

Tickets http://www.fapiaofuwu.com/

http://invoice.datarj.com:8090/portal/index.html

Micro Technology http://fapiao.weein.cn/access_guidelines/access_guidelines.html