1. 开票数据结构
发票云(生态版)API文档
  • 错误处理 & 错误编码
  • 认证与安全[RPA/NS共用]
    • 内容安全
    • 认证
      POST
  • 订单[RPA/NS共用]
    • 对接指引
    • 创建订单
      POST
    • 关闭订单
      POST
    • 查询订单列表
      GET
  • 基础资料[RPA/NS共用]
    • 对接指引
    • 新增常用开票项
      POST
    • 删除常用开票项
      POST
    • 查询常用开票项列表
      GET
    • 新增常用不动产租赁明细
      POST
    • 删除常用不动产租赁明细
      POST
    • 查询常用不动产租赁明细列表
      GET
    • 新增电子税局账号
      POST
    • 删除电子税局账号
      POST
    • 查询电子税局账号列表
      GET
  • 开票[RPA/NS共用]
    • 对接指引
    • 查询电子税局账号状态
    • 登录电子税局账号
    • 获取电子税局扫脸认证二维码信息
    • 获取扫脸认证结果
    • 查询企业授信额度
    • 创建发票开具任务
    • 修改发票的开具任务
    • 查询发票的开具任务结果
  • 乐企联用[NS专用]
    • 创建乐企联用申请
    • 查询乐企联用申请结果
  • 发票查验
    • 发票查验
  • 数据模型
    • 开票数据结构
      • 订单
      • 电子税局账号
      • 企业对象
      • InvoiceLineItem
      • 不动产租赁明细
      • 税局城市编码
      • 电子税局登录角色
      • 扫脸认证二维码信息
      • 两位小数金额的字符串
      • 开票数据
      • 乐企联用申请
    • 公用代码
      • 医疗机构类型
      • 证件类型
      • 零税率标识
      • 发票状态标识
      • 是否蓝字发票
      • 开具类型(代开标识)
    • 查验数据结构
      • 发票状态
      • 发票类型
      • 数字化电子发票-增值税发票数据
      • 增值税发票数据
      • 增值税普通发票(卷式)数据
      • 增值税普通发票(通行费)数据
      • 机动车销售统一发票数据
      • 二手车销售统一发票数据
      • 航空运输客票电子行程单数据
      • 铁路电子客票数据
      • 数字化电子发票-机动车销售统一发票数据
      • 数字化电子发票-二手车销售统一发票数据
      • 财政票据数据
    • 响应数据结构
      • 错误响应
      • 分页信息
      • 批量新增的返回
      • 批量删除的返回
  1. 开票数据结构

开票数据

{
    "business_system_code": "stringst",
    "trade_no_list": [
        {
            "pay_type": "01",
            "out_trade_no": "string"
        }
    ],
    "invoice_request_id": "string",
    "type": 0,
    "tax_flag": 0,
    "paper_invoice_type": 1,
    "invoice_type": "26",
    "invoice_amount": 0,
    "total_tax_amount": 0,
    "total_amount": 0,
    "seller_name": "string",
    "seller_identifier": "string",
    "seller_address": "string",
    "seller_phone": "string",
    "seller_card_name": "string",
    "seller_card_number": "string",
    "show_seller_card": "N",
    "show_seller_address_tel": "Y",
    "natural_person_flag": "N",
    "buyer_name": "string",
    "buyer_address": "string",
    "buyer_fixed_telephone": "string",
    "buyer_card_name": "string",
    "buyer_card_number": "string",
    "buyer_mobile_phone": "string",
    "buyer_email": "string",
    "show_buyer_card": "N",
    "show_buyer_address_tel": "Y",
    "issuer": "string",
    "issuer_card_type": "100",
    "issuer_card_no": "string",
    "payee": "string",
    "reviewer": "string",
    "remark": "string",
    "agent_user": "string",
    "agent_card_type": "100",
    "agent_card_no": "string",
    "agent_country": "strin",
    "agent_identifier": "string",
    "agent_telephone": "string",
    "business_type": "01",
    "difference_tax_type": "01",
    "reduction_tax_type": "01",
    "agricul_goods_confirm": "Y",
    "natural_person_card_type": "100",
    "total_deduction": 0,
    "open_reason": "04",
    "origin_invoice_info": {
        "original_invoice_type": {},
        "original_gov_invoice_type": {},
        "original_invoice_code": "string",
        "original_invoice_no": "string",
        "original_etax_invoice_no": "string",
        "original_invoice_date": {},
        "red_reason": "01",
        "gov_red_confirm_bill_uuid": "string",
        "red_confirm_bill_no": "string",
        "red_confirm_enter_date": {}
    },
    "items": [
        {
            "index": 0,
            "line_number": 0,
            "discount_type": "0",
            "goods_name": "string",
            "unit": "string",
            "unit_price": "string",
            "detail_amount": 0,
            "tax_rate": 0,
            "tax_amount": 0,
            "discount_amount": 0,
            "preferential_policy": "0",
            "vat_exception": "01",
            "tax_free_type": "01",
            "product_code": "string",
            "specification": "string",
            "quantity": "string",
            "deduction_amount": 0,
            "itemId": "string"
        }
    ],
    "deduction_list": [
        {
            "evidence_type": "01",
            "etax_invoice_no": "string",
            "invoice_code": "string",
            "evidence_no": "string",
            "evidence_amount": 0,
            "remark": "string",
            "invoice_number": "string",
            "issue_date": "2024-01-01",
            "deduction_amount": 0
        }
    ],
    "extra_list": [
        {
            "extra_type": "string",
            "extra_name": "string",
            "extra_value": "string"
        }
    ],
    "build_info": {
        "detail_address": "string",
        "cross_city_tax_verify_no": "string",
        "construction_service_location": "string",
        "construction_project_name": "string",
        "land_value_tax_project_no": "string",
        "cross_city_flag": "1"
    },
    "freight_list": [
        {
            "start_place": "string",
            "end_place": "string",
            "transport_type": {},
            "transport_goods": "string",
            "transport_tool_plate_no": "string"
        }
    ],
    "estate_sale_info": {
        "estate_sale_co_flag": "Y",
        "estate_sale_co_buyer": [
            {
                "co_buyer_name": "string",
                "id_card_type": {},
                "id_no": "string"
            }
        ],
        "detail_list": [
            {
                "estate_code": "string",
                "detail_address": "string",
                "actual_turnover": "string",
                "area_unit": "string",
                "construction_service_location": "string",
                "cross_city_flag": "1",
                "land_value_tax_project_no": "string",
                "approved_tax_price": "string",
                "property_certificate_number": "string"
            }
        ]
    },
    "estate_lease_list": [
        {
            "detail_address": "string",
            "area_unit": "string",
            "property_certificate_number": "string",
            "construction_service_location": "string",
            "lease_start_date": "202411091130",
            "lease_end_date": "202411091130",
            "cross_city_flag": "1",
            "license_plate_number": "string",
            "lease_id": "string"
        }
    ],
    "vehicle_vessel_tax": {
        "tax_period": "202401",
        "amount": "string",
        "late_fee_amount": "string",
        "total_amount": "string",
        "identify_no": "string",
        "insurance_policy_no": "string",
        "vehicle_plate_or_vessel_registration_no": "string"
    },
    "traveler_list": [
        {
            "card_type": {},
            "card_no": "string",
            "travel_date": "2024-12-30",
            "start_place": "string",
            "end_place": "string",
            "transport_type": {},
            "seat_class": {},
            "passenger_name": "string"
        }
    ],
    "tractor_info": {
        "for_register": "Y",
        "engine_no": "string",
        "identify_no": "string"
    },
    "motor_vehicle": [
        {
            "compliance_no": "string",
            "import_no": "string",
            "engine_no": "string",
            "vehicle_weight": "string",
            "vehicle_capacity": "strin",
            "taxation_voucher": "string",
            "manufacturer": "string",
            "vehicle_uuid": "string",
            "identify_no": "string",
            "product_model": "string",
            "origin_place": "string",
            "inspection_no": "string",
            "vehicle_type_code": "string"
        }
    ],
    "coal_quality": {
        "coal_heat": "200",
        "total_sulfur_in_dry": "10",
        "dry_ash_free_volatile_matter": "20"
    },
    "lq_invoice_issue_mode_code": "01",
    "invoice_issue_type": "4",
    "natural_person_id_card": "string",
    "natural_person_country_code": "string",
    "buyer_tax_no": "string"
}
Built with