商家自研ERP开票结果获取
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
payee_register_no | String | 必须 | 123123123123 | 收款方税务登记证号 | |
platform_code | String | 可选 | tmall | 电商平台代码。淘宝:taobao,天猫:tmall | |
platform_tid | String | 可选 | 12132 | 电商平台对应的订单号 | |
serial_no | String | 可选 | 3123123123 | 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
invoice_result_list | InvoiceResult [] | 开票返回结果数据列表 | |
|
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaEinvoiceMerchantResultGetRequest req = new AlibabaEinvoiceMerchantResultGetRequest(); req.setPayeeRegisterNo( "123123123123" ); req.setPlatformCode( "tmall" ); req.setPlatformTid( "12132" ); req.setSerialNo( "3123123123" ); AlibabaEinvoiceMerchantResultGetResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | < alibaba_einvoice_merchant_result_get_response > < invoice_result_list > < 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 > < serial_no >123123</ serial_no > < status >waiting</ status > < biz_error_code >demo</ biz_error_code > < biz_error_msg >demo</ biz_error_msg > </ invoice_result > </ invoice_result_list > </ alibaba_einvoice_merchant_result_get_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isp.isp-system.error | 系统错误 | 联系小二排查 |
isp.system-error | 系统错误 | 联系小二排查 |