商户事件通知接口,用户isv回传商户信息,包括托管授权查询结果,抄报税结果等功能
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
payee_register_no | String | 必须 | QWERTY0000001 |
|
纳税人识别号 |
action | String | 必须 | device_launch_query |
|
商户事件,可选值为:device_launch_query: 虚拟设备发行查询, device_launch_query_result: 虚拟设备发行查询结果, tax_range_query: 抄报税征期查询, tax_range_query_result: 抄报税征期查询结果通知, tax_report: 抄报税申请, tax_report_result: 抄报税结果通知, tax_report_postback: 监控回传, tax_report_postback_result: 监控回传结果通知。 |
ext_json | String | 可选 | {"device_launch_query_result":"T"} |
|
拓展字段,json格式。 当 action = device_launch_query, 拓展字段必填, 必须包含platformCode(业务平台码)和productCode(产品码)。当 action = device_launch_query_result, 必须包含device_launch_query_result(虚拟设备查询结果)。当 action = tax_range_query, 拓展字段必填, 必须包含platformCode(业务平台码)和productCode(产品码)。当 action = tax_range_query_result, 拓展字段必填, 必须包含success(处理成功或失败)和invoice_kind(发票类型),处理成功情况下必须包含:和start_date(抄报起始时间)和end_date(抄报截止时间)和last_report_date(上次抄报时间)和invoice_end_date(开票截止时间)和dead_line(抄报截止时间),处理失败情况下必须包含error_msg(错误信息)。当 action = tax_report, 拓展字段必填, 必须包含platformCode(业务平台码)和productCode(产品码)。 当 action = tax_report_result, 拓展字段必填, 必须包含success(处理成功或失败)和invoice_kind(发票类型),处理失败情况下必须包含error_msg(错误信息)。 当 action = tax_report_postback, 拓展字段必填, 必须包含platformCode(业务平台码)和productCode(产品码)。 当 action = tax_report_postback_result, 拓展字段必填, 必须包含success(处理成功或失败)和invoice_kind(发票类型),处理成功情况下必须包含:last_report_date(上次抄报时间),处理失败情况下必须包含error_msg(错误信息)。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ServiceResult | alinkappserver系统返回的通用结果类 | |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaEinvoiceCompanyDoactionRequest req = new AlibabaEinvoiceCompanyDoactionRequest(); req.setPayeeRegisterNo( "QWERTY0000001" ); req.setAction( "device_launch_query" ); req.setExtJson( "{\"device_launch_query_result\":\"T\"}" ); AlibabaEinvoiceCompanyDoactionResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < alibaba_einvoice_company_doaction_response > < result > < result > < ext_json >{"device_launch_query_result":"T"}</ ext_json > </ result > < result_msg ></ result_msg > < result_code ></ result_code > < success ></ success > </ result > </ alibaba_einvoice_company_doaction_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|