ERP开票结果获取
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| payee_register_no | String | 可选 | 123123123123 | 收款方税务登记证号 | |
| platform_code | String | 可选 | tmall | 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) | |
| platform_tid | String | 可选 | 12132 | 电商平台对应的订单号 | |
| serial_no | String | 可选 | 3123123123 | 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 | |
| user_id | String | 必须 | 12345 | 卖家id | |
| user_platform_code | String | 必须 | ALIPAY | 卖家所属平台,TB-淘宝,TM-天猫,ALIPAY-支付宝 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| invoice_result_list | AlipayInvoiceResult [] | 开票返回结果数据列表 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceAlipayResultGetRequest req = new AlibabaEinvoiceAlipayResultGetRequest();
req.setPayeeRegisterNo("123123123123");
req.setPlatformCode("tmall");
req.setPlatformTid("12132");
req.setSerialNo("3123123123");
req.setUserId("12345");
req.setUserPlatformCode("ALIPAY");
AlibabaEinvoiceAlipayResultGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_einvoice_alipay_result_get_response>
<invoice_result_list>
<alipay_invoice_result>
<anti_fake_code>CF6B2F6168420008</anti_fake_code>
<ciphertext>demosdffsd-32432</ciphertext>
<device_no>sw1231</device_no>
<erp_tid>123123</erp_tid>
<file_data_type>jpg</file_data_type>
<file_path>demo</file_path>
<invoice_amount>1232.00</invoice_amount>
<invoice_code>1231231234</invoice_code>
<invoice_date>2014-4-21</invoice_date>
<invoice_no>123123</invoice_no>
<payee_register_no>20150201321123</payee_register_no>
<platform_code>tmall</platform_code>
<platform_tid>123123</platform_tid>
<qr_code>demo</qr_code>
<serial_no>123123</serial_no>
<status>waiting</status>
<biz_error_code>demo</biz_error_code>
<biz_error_msg>demo</biz_error_msg>
<payee_phone>18022229999</payee_phone>
<payee_name>海尔官方旗舰店</payee_name>
<invoice_type>blue</invoice_type>
<payer_name>张三</payer_name>
<invoice_items>
<invoice_item>
<item_name>冰箱</item_name>
<item_no>333333</item_no>
<price>100.00</price>
<quantity>10</quantity>
<row_type>1</row_type>
<specification>X100</specification>
<sum_price>1.00</sum_price>
<tax>170.00</tax>
<tax_rate>0.17</tax_rate>
<unit>台</unit>
<amount>1170.00</amount>
</invoice_item>
</invoice_items>
<normal_invoice_code>333333</normal_invoice_code>
<normal_invoice_no>2222222</normal_invoice_no>
<is_retrying>false</is_retrying>
<sum_tax>0.00</sum_tax>
<payer_phone>010-102934</payer_phone>
<payer_register_no>91378274937948273</payer_register_no>
<payer_address>杭州市文一西路969号</payer_address>
<payer_bankaccount>网商银行 29742342</payer_bankaccount>
<sum_price>10.00</sum_price>
</alipay_invoice_result>
</invoice_result_list>
</alibaba_einvoice_alipay_result_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| isp.isp-system.error | 系统错误 | 联系小二排查 |
| isp.system-error | 系统错误 | 联系小二排查 |