zoukankan      html  css  js  c++  java
  • 诺诺网电子发票 企业端同步发票通用版

    诺诺网电子发票企业端同步发票通用版

    请求示例

    String
    SendUrl="https://nnfpbox.nuonuocs.cn/shop/buyer/allow/cxfKp/cxfServerKpOrderSync.action";
    String order="
    {\"identity\":\"2329CC5F90EDAA8208F1F3C72A0CE72A713A9D425CD50CDE\",\"order\":{\"buye
    rname\":\"浙江爱信诺\",\"taxnum\":\"124511234993295177\",\"phone\":\"0\",\"address\":\"
    浙江省杭州市万塘路
    \",\"account\":\"\",\"telephone\":\"0\",\"orderno\":\"nuonuo12345\",\"invoicedate\":\"2018-10
    -31 19:16:51\",\"clerk\":\"黄芝\",\"saleaccount\":\"宇宙行
    442612010103507108\",\"salephone\":\"0774-7893911\",\"saleaddress\":\"富川瑶族自治县新
    永路 138 号
    \",\"saletaxnum\":\"339901999999142\",\"kptype\":\"1\",\"message\":\"\",\"payee\":\"林莉苏
    \",\"checker\":\"林莉苏
    \",\"tsfs\":\"-1\",\"email\":\"502192347@qq.com\",\"qdbz\":\"0\",\"qdxmmc\":\"\",\"dkbz\":\"
    0\",\"deptid\":\"\",\"clerkid\":\"\",\"invoiceLine\":\"p\",\"cpybz\":\"\",\"detail\":[{\"goodsname
    \":\"苹果
    \",\"num\":\"1\",\"price\":\"1\",\"hsbz\":\"1\",\"taxrate\":\"0.13\",\"spec\":\"\",\"unit\":\"吨
    \",\"spbm\":\"10101150101\",\"zsbm\":\"\",\"fphxz\":\"0\",\"yhzcbs\":\"0\",\"zzstsgl\":\"\",\"lsl
    bs\":\"\",\"kce\":\"\"}]}}";
    order=DESDZFP.encrypt(order);
    HttpClient httpclient=null;
    PostMethod post=null;
    try{
    httpclient = new HttpClient();
    post = new PostMethod(SendUrl);
    //设置编码方式
    post.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,"UTF-8");
    //添加参数
    post.addParameter("order",order);
    //执行
    httpclient.executeMethod(post);
    //接口返回信息
    String info = new String(post.getResponseBody(),"UTF-8");
    System.out.println(info);
    }catch (Exception e) {
    e.printStackTrace();
    }finally {
    //关闭连接, 释放资源
    post.releaseConnection();
    ((SimpleHttpConnectionManager)httpclient.getHttpConnectionManager()).shutdown();
    }

    响应示例

    {"status": "0000","message": "同步成功","fpqqlsh": "20160913122204858003"}

    异常示例

    {"status": "9999","message": "企业信息没有备案"}
  • 相关阅读:
    回家第二周
    回文
    回家第一周
    回家第四周
    《大道至简》读后感
    第三周Java课后题
    Java小测代码及截图
    【CheckBox】选择或取消所有CheckBox
    Web Developer's Handbook
    Oracle PL/SQL
  • 原文地址:https://www.cnblogs.com/zhouein/p/15572698.html
Copyright © 2011-2022 走看看