public interface WxMpMerchantInvoiceService
重要!!!, 根据不同开票平台, 以下错误码可能开票成功(开票,冲红), 内部暂时未处理: 73105: 开票平台开票中,请使用相同的发票请求流水号重试开票 73107: 发票请求流水正在被处理,请通过查询接口获取结果 73100: 开票平台错误
流程文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_and_Invoicing_Platform_Mode_Instruction.html 接口文档: https://developers.weixin.qq.com/doc/offiaccount/WeChat_Invoice/E_Invoice/Vendor_API_List.html
限定符和类型 | 方法和说明 |
---|---|
void |
clearOutInvoice(ClearOutInvoiceRequest params)
发票冲红
|
InvoiceAuthDataResult |
getAuthData(InvoiceAuthDataRequest params)
获得用户授权数据
|
InvoiceAuthPageSetting |
getAuthPageSetting()
获取授权页面配置
|
InvoiceAuthPageResult |
getAuthPageUrl(InvoiceAuthPageRequest params)
获取开票授权页链接
|
MerchantContactInfo |
getMerchantContactInfo()
获取商户联系方式
|
MerchantInvoicePlatformInfo |
getMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo)
获取商户开票平台信息
|
void |
makeOutInvoice(MakeOutInvoiceRequest params)
开具电子发票
|
InvoiceResult |
queryInvoiceInfo(String fpqqlsh,
String nsrsbh)
查询发票信息
|
void |
rejectInvoice(InvoiceRejectRequest params)
拒绝开票
场景: 用户授权填写数据无效
结果: 用户会收到一条开票失败提示
|
void |
setAuthPageSetting(InvoiceAuthPageSetting authPageSetting)
配置授权页面字段
|
void |
setMerchantContactInfo(MerchantContactInfo contact)
设置商户联系方式, 获取授权链接前需要设置商户联系信息
|
void |
setMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo)
设置商户开票平台信息
|
InvoiceAuthPageResult getAuthPageUrl(InvoiceAuthPageRequest params) throws WxErrorException
params
- the paramsWxErrorException
- the wx error exceptionInvoiceAuthDataResult getAuthData(InvoiceAuthDataRequest params) throws WxErrorException
params
- the paramsWxErrorException
- the wx error exceptionvoid rejectInvoice(InvoiceRejectRequest params) throws WxErrorException
场景: 用户授权填写数据无效 结果: 用户会收到一条开票失败提示
params
- the paramsWxErrorException
- the wx error exceptionvoid makeOutInvoice(MakeOutInvoiceRequest params) throws WxErrorException
params
- the paramsWxErrorException
- the wx error exceptionvoid clearOutInvoice(ClearOutInvoiceRequest params) throws WxErrorException
params
- the paramsWxErrorException
- the wx error exceptionInvoiceResult queryInvoiceInfo(String fpqqlsh, String nsrsbh) throws WxErrorException
fpqqlsh
- 发票请求流水号nsrsbh
- 纳税人识别号WxErrorException
- the wx error exceptionvoid setMerchantContactInfo(MerchantContactInfo contact) throws WxErrorException
contact
- the contactWxErrorException
- the wx error exceptionMerchantContactInfo getMerchantContactInfo() throws WxErrorException
WxErrorException
- the wx error exceptionvoid setAuthPageSetting(InvoiceAuthPageSetting authPageSetting) throws WxErrorException
authPageSetting
- the auth page settingWxErrorException
- the wx error exceptionInvoiceAuthPageSetting getAuthPageSetting() throws WxErrorException
WxErrorException
- the wx error exceptionvoid setMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo) throws WxErrorException
merchantInvoicePlatformInfo
- the merchant invoice platform infoWxErrorException
- the wx error exceptionMerchantInvoicePlatformInfo getMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo) throws WxErrorException
merchantInvoicePlatformInfo
- the merchant invoice platform infoWxErrorException
- the wx error exceptionCopyright © 2024. All rights reserved.