12.3获取开票详情

优质
小牛编辑
128浏览
2023-12-01

请求参数说明

参数描述必填示例值类型最大长度
action接口参数组object
└action需要调用的接口名称invoice_get_detailstring
getGET参数组,本组参数需要参与签名object
└id73number

请求示例

{
    "action":{
        "action":"invoice_get_detail"
    },
    "get":{
        "id":"73"
    }
}

响应参数说明

参数描述必填示例值类型最大长度
status返回状态。接口成功时为1,出错为01number
info错误时会返回相应的错误信息获取成功string
id开票id73number
type开票类型普通增值电子发票string
sellerTaxName开票方名称苏州果盘网络技术有限公司string
sellerTaxCode开票方税号91320594MA1MDDUN4Dstring
amt开票方金额127.00number
time开票时间2019-12-15 11:43:15string
state开票状态(0=未开票,1=开票失败,2=开票中,3=开票成功,4=冲红,5=取消开票)5number
statueName开票状态描述取消开票string
msid门店编号6786number
biz_id线下业务单号9191number
num发票号码42208449number
code发票代码137021615867number
buyerTaxName消费者公司名称苏州果盘网络技术有限公司string
buyerTaxCode消费者公司税号91320594MA1MDDUN4Dstring
otherInfo其他开票信息object
└drawer开票人西瓜string
└payer收款人雪碧string
└reviewer复核人雪碧string
└remark发票备注西瓜测试string
└items商品明细list
└└code商品编码(19位数字)3070401000000000000number
└└name商品名称青椒土豆丝string
└└price商品单价8.88number
└└quantity商品数量1number
└└uom商品单位string
└└taxRate商品税率(免税时传0)0.06number
└└amount合计金额8.88number
└└catalogCode商品分类编码(19位数字)3070401000000000000number
statueTime状态时间2019-12-15 11:43:15string
└viewUrl发票查看地址https://www.chinaeinv.com:943/p.jspa?c=2B01DCBFCA9F5C356A57string
└downloadUrl发票下载地址https://hz-beta.dc78.cn/proxy?source=https%3A%2F%2Fwww.chinaeinv.com%3A943%2Fpdf.jspa%3Fc%3D2B01DCBFCA9F5C356A57string

响应示例

{
    "status":"1",
    "info":"获取成功",
    "id":73,
    "biz_id": "9191",
    "type":"普通增值电子发票",
    "sellerTaxName":"苏州果盘网络技术有限公司",
    "sellerTaxCode":"91320594MA1MDDUN4D",
    "buyerTaxName":"苏州果盘网络技术有限公司",
    "buyerTaxCode":"91320594MA1MDDUN4D",
    "amt":"127.00",
    "time":"2019-12-15 11:43:15",
    "statueTime":"2019-12-15 11:43:15",
    "state":5,
    "num":42208449,
    "code":137021615867,
    "statueName":"取消开票",
    "otherInfo":{
        "drawer":"西瓜",
        "payer":"雪碧",
        "reviewer":"雪碧",
        "remark":"西瓜测试",
        "items":[{
           "code":"3070401000000000000",
           "name":"青椒土豆丝",
           "price":"8.88",
           "quantity":"1",
           "uom":"份",
           "taxRate":"0.06",
           "amount":"8.88",
           "catalogCode":"3070401000000000000"
        }],
     "viewUrl": "https:\/\/www.chinaeinv.com:943\/p.jspa?c=2B01DCBFCA9F5C356A57",
      "downloadUrl": "https:\/\/hz-beta.dc78.cn\/proxy?source=https%3A%2F%2Fwww.chinaeinv.com%3A943%2Fpdf.jspa%3Fc%3D2B01DCBFCA9F5C356A57"
    },
    "server_timestamp":1585044281,
    "server_time":"2020-03-24 18:04:41",
    "server_name":"wx-task2.hz",
    "msid":"6786"
}