alibaba.mosinvoice.info.send (银泰发票信息回传)

银泰喵街发票老应用部署阿里云,重构新应用部署在弹内,灰度期间云上应用发票数据回传新应用数据库

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
send_d_t_o InvoiceInfoSendDto 必须 发票回传信息
  • └ invoice_content_type
  • Number
  • 必须
  • 0
  • 发票内容(1商品类别/2小票明细)
  • └ seller_bank
  • String
  • 可选
  • 中国建设银行浙江省分行营业部
  • 销方银行名称
  • └ seller_name
  • String
  • 必须
  • 浙江银泰百货有限公司
  • 销方名称
  • └ invoice_tax_amount
  • String
  • 必须
  • 1.00
  • 发票税额
  • └ invoice_amount
  • String
  • 必须
  • 10.00
  • 发票含税金额
  • └ seller_address
  • String
  • 必须
  • 杭州延安路530号
  • 销方地址
  • └ invoice_excluding_tax_amount
  • String
  • 必须
  • 9.00
  • 发票不含税金额
  • └ invoice_material_type
  • Number
  • 必须
  • 1
  • 发票介质(纸质0/电子发票1)
  • └ purchaser_address
  • String
  • 可选
  • 杭州延安路530号
  • 购方地址
  • └ ticket_no
  • String
  • 必须
  • MJ017122222
  • 小票号
  • └ invoice_type
  • Number
  • 必须
  • 1
  • 发票类型(增值税普票1/增值税专票2)
  • └ invoice_no
  • String
  • 必须
  • 12345
  • 发票号码
  • └ invoice_request_id
  • String
  • 必须
  • 12345
  • 发票请求id
  • └ purchaser_bank
  • String
  • 可选
  • 中国建设银行浙江省分行营业部
  • 购方银行名称
  • └ invoice_issue_type
  • Number
  • 必须
  • 0
  • 蓝票0/红票1
  • └ seller_phone
  • String
  • 可选
  • 0571-850698
  • 销方电话号码
  • └ invoice_date
  • Date
  • 必须
  • 2015-05-21 12:00:00
  • 发票日期
  • └ invoice_code
  • String
  • 必须
  • 12345
  • 发票代码
  • └ apply_id
  • Number
  • 必须
  • 12345
  • 用户申请id
  • └ purchaser_name
  • String
  • 必须
  • 个人
  • 购方名称
  • └ seller_tax_no
  • String
  • 必须
  • 234354354555543
  • 销方税号
  • └ purchaser_tax_no
  • String
  • 可选
  • 91330212668458134W
  • 购方税号
  • invoice_line_d_t_o_list
  • InvoiceLineDto []
  • 必须
  • []
  • └ unit_price
  • String
  • 必须
  • 1.00
  • 单价
  • └ amount
  • String
  • 必须
  • 10.00
  • 总价
  • └ quantity
  • String
  • 必须
  • 10.00
  • 数量
  • └ item_tax_no
  • String
  • 必须
  • 1060512990000000000
  • 税编
  • └ invoice_line_id
  • Number
  • 必须
  • 1
  • 发票行id
  • └ quantity_unit
  • String
  • 必须
  • 单位
  • └ tax
  • String
  • 必须
  • 0.13
  • 税率
  • └ tax_amount
  • String
  • 必须
  • 1.30
  • 税额
  • └ excluding_tax_amount
  • String
  • 必须
  • 8.70
  • 不含税金额
  • └ goods_desc
  • String
  • 可选
  • 服装
  • 商品描述
  • └ seller_bank_account
  • String
  • 可选
  • 33001613535053
  • 销方银行账号
  • └ purchaser_type
  • Number
  • 必须
  • 1
  • 购方类别(1个人/2企业)
  • └ oss_file_path
  • String
  • 必须
  • http://demo.pdf
  • 发票文件路径
  • └ store_no
  • String
  • 必须
  • HZ01
  • 门店编码

响应参数

名称 类型 示例值 描述
result Boolean true 结果返回

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMosinvoiceInfoSendRequest req = new AlibabaMosinvoiceInfoSendRequest();
AlibabaMosinvoiceInfoSendRequest.InvoiceInfoSendDto obj1 = new AlibabaMosinvoiceInfoSendRequest.InvoiceInfoSendDto();
obj1.setInvoiceContentType(0L);
obj1.setSellerBank("中国建设银行浙江省分行营业部");
obj1.setSellerName("浙江银泰百货有限公司");
obj1.setInvoiceTaxAmount("1.00");
obj1.setInvoiceAmount("10.00");
obj1.setSellerAddress("杭州延安路530号");
obj1.setInvoiceExcludingTaxAmount("9.00");
obj1.setInvoiceMaterialType(1L);
obj1.setPurchaserAddress("杭州延安路530号");
obj1.setTicketNo("MJ017122222");
obj1.setInvoiceType(1L);
obj1.setInvoiceNo("12345");
obj1.setInvoiceRequestId("12345");
obj1.setPurchaserBank("中国建设银行浙江省分行营业部");
obj1.setInvoiceIssueType(0L);
obj1.setSellerPhone("0571-850698");
obj1.setInvoiceDate(StringUtils.parseDateTime("2015-05-21 12:00:00"));
obj1.setInvoiceCode("12345");
obj1.setApplyId(12345L);
obj1.setPurchaserName("个人");
obj1.setSellerTaxNo("234354354555543");
obj1.setPurchaserTaxNo("91330212668458134W");
List<AlibabaMosinvoiceInfoSendRequest.InvoiceLineDto> list3 = new ArrayList<AlibabaMosinvoiceInfoSendRequest.InvoiceLineDto>();
AlibabaMosinvoiceInfoSendRequest.InvoiceLineDto obj4 = new AlibabaMosinvoiceInfoSendRequest.InvoiceLineDto();
list3.add(obj4);
obj4.setUnitPrice("1.00");
obj4.setAmount("10.00");
obj4.setQuantity("10.00");
obj4.setItemTaxNo("1060512990000000000");
obj4.setInvoiceLineId(1L);
obj4.setQuantityUnit("件");
obj4.setTax("0.13");
obj4.setTaxAmount("1.30");
obj4.setExcludingTaxAmount("8.70");
obj4.setGoodsDesc("服装");
obj1.setInvoiceLineDTOList(list3);
obj1.setSellerBankAccount("33001613535053");
obj1.setPurchaserType(1L);
obj1.setOssFilePath("http://demo.pdf");
obj1.setStoreNo("HZ01");
req.setSendDTO(obj1);
AlibabaMosinvoiceInfoSendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mosinvoice_info_send_response>
    <result>true</result>
</alibaba_mosinvoice_info_send_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部