Skip to main content
Version: Next

Taro.chooseInvoiceTitle(option)

Selects the user's invoice title. This API can be called only when the current Mini Program is associated with an Official Account that has completed WeChat verification.

Reference

Type

(option?: Option) => Promise<SuccessCallbackResult>

Parameters

Option

PropertyTypeRequiredDescription
complete(res: any) => voidNoThe callback function used when the API call completed (always executed whether the call succeeds or fails)
fail(res: any) => voidNoThe callback function for a failed API call
success(res: Result) => voidNoThe callback function for a successful API call

SuccessCallbackResult

PropertyTypeDescription
titlestringTitle name
type0 | 1Title type
taxNumberstringTax number
companyAddressstringCompany address
telephonestringMobile number
bankNamestringBank name
bankAccountstringBank account
errMsgstringError message

invoice_type

invoice type

PropertyType
0"Company"
1"Individual"

Sample Code

Taro.chooseInvoiceTitle({
success: function(res) {}
})

API Support

APIWeChat Mini-ProgramH5React Native
Taro.chooseInvoiceTitle✔️