# 机动车发票开具

# 接口说明

机动车发票开具接口。(当前仅支持云票儿发票助手开具)

# 地址

/tax-api/invoice/motor-vehicle-blue/v1

# 请求参数

参数名称 类型 必填 最大长度(字节) 描述 示例
terminal_no string 12 税务UKEY、百旺盘为12位税盘编号(591234567890),航信盘为开票机号(0、1……) 0
invoice_type string 3 发票类型代码,固定传值为“005” 005
seller_name string 100 销方名称 上海XX专卖店
sell_tax_code string 20 销方纳税人识别号,统一社会信用代码 914403001234567890
phone string 40 销方电话号码,手机号码或者座机号 0755-88552201
account_no string 40 销方银行帐号 112233355454787878879
address string 80 销方地址 上海霞飞路一号
bank_name string 80 销方开户银行 招商银行
buy_name string 72 购货方名称(个人或企业) 深圳高灯计算机科技有限公司
card_id string 22 身份证号,个人时传购方身份证号。
与buy_tax_code一样传税号。
146546198001015646
buy_tax_code string 20 购货方识别号,即购方企业税号 914403001234567890
enterprise_name string 40 生产企业名称 XX一汽
car_type string 40 车辆类型(车辆对应分类编码tax_code对应的名称) 乘用车(排气量在1.0升以下(含))
tax_code string 19 商品编码,机动车对应的税收分类编码 1090305010100000000
plate_model string 60 厂牌型号 XXCP00005
produce_address string 32 产地 上海
certificate_no string 50 合格证号 WDJ1235JH2323
import_no string 36 进口证明书号 JK415ZMS415
inspection_no string 32 商检单号 SJD215151531
engine_no string 60 发动机号 ZT-108-1355898
vin_no string 23 车架号码/车辆识别代号 LJB8E262356545
amount_has_tax string 12 价税合计,单位:元(两位小数) 113000.00
tax_rate string 6 增值税税率或征收率 0.13
tax_amount string 12 增值税税额,单位:元(两位小数) 13000.00
amount_no_tax string 12 不含税价,单位:元(两位小数) 100000.00
tax_done_no string 32 完税凭证号码,自开为空
unit string 10 吨位 1.7
limint_count int 10 限乘人数 4
preferential_policy_flag string 1 优惠政策标识:0、不使用,1、使用 0
zero_tax_rate_flag string 1 零税率标识
空,是正常税率;
1、免税;
3、普通零税率
机动车一般为正常税率
vat_sepcial_manager string 50 增值税特殊管理, 优惠政策的名称,preferential_policy_flag 优惠政策标识位 1 时必填
remark string 200 备注,机动车票固定项“一车一票”
ticket_sample string 1 发票样式:3、机动车2021版发票样式,空、机动车2014版发票样式 默认:空
sell_drawer string 10 开票人 张三
order_id string 64 商户订单号,开发者接入方订单号 gd_1904242006002627690
callback_url string 500 发票结果推送地址,异步推送 http://test.callback_url.com
user_openid string 40 商家用户标识:三方用户id,一般为空

# 响应参数

参数名称 类型 必填 描述
state int 状态
1:已提交,只能表示提交成功,结果会通过异步通知
2:已成功开票,不能重复开具
order_sn string 高灯方商户订单号,开发者商户订单号对应高灯商户订单唯一标识号
invoice_id string 发票标识:高灯发票唯一识别号

# 请求示例

{
    "terminal_no":"0",
    "invoice_type":"005",
    "sell_tax_code":"9144030072300*****",
    "seller_name":"jackson",
    "buy_name":"张三",
    "card_id":"430589944554554665",
    "buy_tax_code":"914403001234567890",
    "enterprise_name":"XX大众",
    "car_type":"轿车",
    "plate_model":"帕萨特330",
    "produce_address":"长春",
    "certificate_no":"WEC8594580",
    "import_no":"",
    "engine_no":"dzE888",
    "vin_no":"ewew53454545",
    "phone":"0755-88552201",
    "account_no":"4548574455455455",
    "address":"广东省深圳市",
    "bank_name":"工商银行深圳支行",
    "tax_rate":"0.13",
    "tax_amount":"1150.44",
    "amount_no_tax":"8849.56",
    "amount_has_tax":"10000.00",
    "tax_done_no":"",
    "unit":"",
    "limint_count":5,
    "tax_code":"1090305010100000000",
    "preferential_policy_flag":"0",
    "vat_sepcial_manager":"",
    "remark":"一车一票",
    "sell_drawer":"李四",
    "order_id":"6439658825160956599",
    "callback_url":"http://test.goldentec.com/sign/mock/invoice-callback.php2",
    "user_openid":""
}

# 响应示例

{
    "code":0,
    "data": 
    {
        "invoice_id": "6559356833486779053",
        "order_sn": "6559356833486779053",
        "state": 1
    },
    "message": "success"
}