ERP获取开票申请数据
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
platform_tid | String | 必须 | 221123114243242 | 平台订单号 | |
apply_id | String | 可选 | klsfj39kkhs9A | 开票申请ID,跟消息中的apply_id对应,传入applyId后,只会返回一条开票申请消息 | |
biz_type | String | 可选 | fenxiao | 支持分销体系,供应商查询分销商的开票申请,分销体系请传入fenxiao |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
is_success | Boolean | true | success |
apply_list | Apply [] | apply | 开票明细 |
|
1 2 3 4 5 6 7 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaEinvoiceApplyGetRequest req = new AlibabaEinvoiceApplyGetRequest(); req.setPlatformTid( "221123114243242" ); req.setApplyId( "klsfj39kkhs9A" ); req.setBizType( "fenxiao" ); AlibabaEinvoiceApplyGetResponse rsp = client.execute(req, sessionKey); 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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | < alibaba_einvoice_apply_get_response > < is_success >true</ is_success > < apply_list > < apply > < platform_code >TM</ platform_code > < status >1</ status > < memo >我是备注</ memo > < payer_name >张三</ payer_name > < platform_tid >123242323212322</ platform_tid > < payer_register_no >9132209873843221</ payer_register_no > < trigger_status >buyer_payed</ trigger_status > < invoice_kind >0</ invoice_kind > < business_type >0</ business_type > < invoice_type >blue</ invoice_type > < invoice_amount >100.00</ invoice_amount > < normal_invoice_code >311100111</ normal_invoice_code > < normal_invoice_no >18203813</ normal_invoice_no > < sum_price >90.00</ sum_price > < sum_tax >10.00</ sum_tax > < invoice_items > < invoice_item > < item_name >电视机</ item_name > < amount >100.00</ amount > < row_type >0</ row_type > < specification >X100</ specification > < sum_price >90.00</ sum_price > < tax >10.00</ tax > < price >100.00</ price > < quantity >1</ quantity > < tax_rate >0.00</ tax_rate > < unit >台</ unit > < item_no >10000000934728123482</ item_no > < biz_order_id >198738479342342</ biz_order_id > < is_post_fee_row >true</ is_post_fee_row > < zero_rate_flag >1</ zero_rate_flag > </ invoice_item > </ invoice_items > < payer_phone >010-1234567</ payer_phone > < payer_address >浙江省杭州市余杭区</ payer_address > < payer_bankaccount >62003449373273384</ payer_bankaccount > < payer_bank >浙商银行</ payer_bank > < gmt_modified_str >2018-09-18 21:09:12</ gmt_modified_str > < extend_props >{"prop1": "123", "prop2": "456"}</ extend_props > < gmt_create >2018-09-18 21:09:10</ gmt_create > </ apply > </ apply_list > </ alibaba_einvoice_apply_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 > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.invalid-parameter | 参数错误 | 调整参数重新上传 |
isp.system-error | 系统错误 | 联系小二排查 |
isv.apply-not-exists | 申请不存在,可能是延迟,订单没有申请发票,订单开票金额为0等原因 | 请稍后重试 |