# wx.chooseInvoice(Object object)

Start from base library version 2.3.0. Please remaining backward compatible.

with Promise style call: Supported

Mini Program plugin: Support, need to Mini Program base library version no less than 2.16.1

Select invoices that the user already has.

# parameter

# Object object

attribute type Default values Required Introductions
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Interface calls the end of the callback function (call success or failure will be executed)

# object.success callback

# parameter
# Object res
attribute type Introductions
invoiceInfo String User-selected invoice information in the form of a JSON A string containing three fields card_Id: the name of the selected invoice card voucher cardId,encrypt_Code: Encryption of selected invoice card coupons Reimbursement can be made by cardId and encryptCode Get information on reimbursement invoices, app_id: Invoice party appId。

# adopt cardId and encryptCode Get information on reimbursement invoices

Please refer toWeChat Electronic Invoice DocumentIn,Query Reimbursement Invoice InformationPart. among access_token Please refer toauth.getAccessTokenfile