文字识别 OCR-发票验真:响应示例

时间:2024-04-15 09:41:20

响应示例

状态码:200

成功响应示例(增值税普通发票)

{
    "result": {
        "type": "vat_normal",
        "code": "03xxxxx00204",
        "number": "12528000",
        "issue_date": "20200809",
        "machine_number": "661xxxxx1000",
        "check_code": "79xxxxx8040xxxx00000",
        "status": "valid",
        "subtotal_amount": "1400.00",
        "subtotal_tax": "0.00",
        "total": "1400.00",
        "total_in_words": "壹仟肆佰元整",
        "remarks": "3091",
        "receiver": "",
        "issuer": "",
        "reviewer": "",
        "buyer_name": "xxx公司",
        "buyer_id": "91xxxxx0192xxxx00",
        "buyer_address": "",
        "buyer_bank": "",
        "seller_name": "xxx投资发展有限公司",
        "seller_id": "913101177858977000",
        "seller_address": "xx市xx区xx镇xx路xx号 021-xxxx1000",
        "seller_bank": "xx银行xx支行310xxxxxxxxx00000000",
        "deductible_toll": "N",
        "items": [
            {
                "name": "",
                "specification": "",
                "unit": "1",
                "quantity": "1",
                "unit_price": "1400.00",
                "amount": "1400.00",
                "tax_rate": "免税",
                "tax": "***",
                "license_plate_number": "",
                "vehicle_type": "",
                "start_date": "",
                "end_date": ""
            }
        ],
        "result_code": "1000",
        "result_message": "The invoice verification information is consistent with the tax authority’s information."
    }
}

成功响应示例(机动车销售统一发票)

{
    "result": {
        "type": "motor_vehicle_sales",
        "code": "14xxxxx20000",
        "number": "00xxxx94",
        "issue_date": "20171128",
        "machine_number": "49xxxxx10000",
        "status": "valid",
        "subtotal_amount": "68376.07",
        "total": "80000.00",
        "total_in_words": "捌万元整",
        "issuer": "",
        "buyer_name": "xx",
        "buyer_organization_number": "",
        "buyer_id": "",
        "seller_name": "xx汽车销售服务有限公司",
        "seller_id": "91xxxxx059xxxx0000",
        "seller_phone": "0898-xxxxxx00",
        "seller_account": "265xxxxxx000",
        "seller_address": "xx省xx市xx大道176号",
        "seller_bank": "中国银行xx支行",
        "tax_rate": "0.17",
        "tax": "11623.93",
        "tax_authority": "xx区局二分局户籍二组",
        "tax_authority_code": "146xxxxxx00",
        "tax_payment_receipt": "",
        "tonnage": "-",
        "seating_capacity": "5",
        "vehicle_type": "轿车",
        "brand_model": "北京牌BJxxxxxx000",
        "manufacturing_location": "北京",
        "quality_certificate": "YJxxxxxx270000",
        "import_certificate": "-",
        "inspection_number": "-",
        "engine_number": "BAxxxxx000",
        "vehicle_identification_number": "LNBSCxxxxx0000",
        "result_code": "1000",
        "result_message": "The invoice verification information is consistent with the tax authority’s information."
    }
}

成功响应示例(二手车销售统一发票)

{
    "result": {
        "type": "used_vehicle_sales",
        "code": "03xxxxxx0000",
        "number": "00xxx000",
        "issue_date": "20191202",
        "machine_number": "661xxxxxx000",
        "status": "valid",
        "total": "20000.00",
        "total_in_words": "贰万元整",
        "remarks": "卖方纳税人识别号:33xxxxx900xxxxx00 买方纳税人识别号:37xxxxxx561xxxxx00 初次登记:2014-07-24 免征税款",
        "issuer": "",
        "buyer_name": "xxx",
        "buyer_organization_number": "37xxxxxx561xxxxx00",
        "buyer_address": "xx省xx市xx路街道办事处xx庄居委会xx号",
        "buyer_phone": ".",
        "seller_name": "xxx",
        "seller_organization_number": "339xxxxxx009xxxx00",
        "seller_address": "xx省xx市xx市xx路xx号",
        "seller_phone": ".",
        "vehicle_license_plate_number": "苏Kxxxx0",
        "registration_certificate_number": "32xxxxxx0000",
        "vehicle_type": "小型轿车",
        "vehicle_identification_number": "LBxxxxxxZ3xxxxxx000",
        "brand_model": "xx牌HQxxxx000",
        "transfer_motor_vehicle_department_name": "xx车辆管理所",
        "auction_unit_name": "",
        "auction_unit_address": "",
        "auction_unit_tax_number": "",
        "auction_unit_bank_and_account": "",
        "auction_unit_phone": "",
        "used_vehicle_market_name": "xx旧机动车交易市场",
        "used_vehicle_market_tax_number": "91xxxxx2MAxxxxx000",
        "used_vehicle_market_address": "xx市xx区xx路xxx号",
        "used_vehicle_market_bank_and_account": "xxxx银行股份有限公司xxxx物流园分理处10xxxxx040xxxx00",
        "used_vehicle_market_phone": "13xxxxx0000",
        "result_code": "1000",
        "result_message": "The invoice verification information is consistent with the tax authority’s information."
    }
}

状态码:400

失败响应示例

{ 
    "error_code": "AIS.0118", 
    "error_msg": "Service request error." 
}
support.huaweicloud.com/api-ocr/ocr_03_0134.html