文档中心 > API类目 > 斑马充电中台开放API

yunos.charge.invoice.detail (充电项目-发票详情)

充电项目-发票详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
common_param String 必须 {"userToken":"zebra-82b2c8c7c81f8cdf01e90cd351bb3e29_pre","sourceType":"APP","bizCode":"ccq","oemCode":"SMPV","deviceId":"mysaictestcar","brandCode":"RMARK"} 公共参数
request_param String 必须 {"a":1} 业务参数

响应参数

名称 类型 示例值 描述
result DataResponse 返回结果
  • data
  • InvoiceDetailReq
  • 返回数据
  • └ apply_status
  • Number
  • 0
  • 状态
  • └ apply_time
  • String
  • 0
  • 创建日期
  • └ invoice_amount
  • BigDecimal
  • 0
  • 金额
  • └ invoice_code
  • String
  • 0
  • 编码
  • └ invoice_content
  • String
  • 0
  • 内容
  • └ invoice_header
  • String
  • 0
  • 抬头
  • └ invoice_no
  • String
  • 0
  • 序号
  • └ invoice_seq
  • String
  • 0
  • 唯一号
  • └ invoice_type
  • String
  • 0
  • 类型
  • └ receive_email
  • String
  • 0
  • 邮箱
  • └ tax_id_number
  • String
  • 0
  • 税务号
  • └ invoice_url
  • String
  • 0
  • 发票预览图
  • └ invoice_time
  • String
  • 0
  • 发票开票时间
  • └ fail_reason
  • String
  • 0
  • 失败原因
  • └ err_code
  • String
  • 0
  • 错误码
  • └ err_message
  • String
  • 0
  • 错误信息
  • └ success
  • Boolean
  • 0
  • 标识位

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeInvoiceDetailRequest req = new YunosChargeInvoiceDetailRequest();
req.setCommonParam("{\"userToken\":\"zebra-82b2c8c7c81f8cdf01e90cd351bb3e29_pre\",\"sourceType\":\"APP\",\"bizCode\":\"ccq\",\"oemCode\":\"SMPV\",\"deviceId\":\"mysaictestcar\",\"brandCode\":\"RMARK\"}");
req.setRequestParam("{\"a\":1}");
YunosChargeInvoiceDetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_charge_invoice_detail_response>
    <result>
        <data>
            <apply_status>0</apply_status>
            <apply_time>0</apply_time>
            <invoice_amount>0</invoice_amount>
            <invoice_code>0</invoice_code>
            <invoice_content>0</invoice_content>
            <invoice_header>0</invoice_header>
            <invoice_no>0</invoice_no>
            <invoice_seq>0</invoice_seq>
            <invoice_type>0</invoice_type>
            <receive_email>0</receive_email>
            <tax_id_number>0</tax_id_number>
            <invoice_url>0</invoice_url>
            <invoice_time>0</invoice_time>
            <fail_reason>0</fail_reason>
        </data>
        <err_code>0</err_code>
        <err_message>0</err_message>
        <success>0</success>
    </result>
</yunos_charge_invoice_detail_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

返回
顶部