[ { "project_id": "-1", "target_id": "open_blue_invoice_create", "parent_id": "0", "target_type": "api", "name": "开放API-蓝票单笔开票", "sort": 1, "version": 1, "mark_id": "1", "status": 1, "is_changed": -1, "method": "POST", "url": "{{baseUrl}}/api/open/v1/blue-invoices", "request": { "auth": { "type": "noauth", "kv": { "key": "", "value": "", "in": "header" }, "bearer": { "key": "" }, "basic": { "username": "", "password": "" }, "noauth": {} }, "body": { "mode": "json", "parameter": [], "raw": "{\n \"requestNo\": \"REQ202605200001\",\n \"invoiceReqSerialNo\": \"OPEN202605200001\",\n \"invoiceIssueKindCode\": \"82\",\n \"buyerName\": \"测试购买方有限公司\",\n \"buyerTaxpayerNum\": \"91350000000000000X\",\n \"takerName\": \"张三\",\n \"takerTel\": \"13800000000\",\n \"takerEmail\": \"test@example.com\",\n \"remark\": \"开放API测试开票\",\n \"itemList\": [\n {\n \"goodsName\": \"信息技术服务\",\n \"taxClassificationCode\": \"3040201010000000000\",\n \"includeTaxFlag\": \"1\",\n \"quantity\": \"1\",\n \"unitPrice\": \"100.00\",\n \"invoiceAmount\": \"100.00\",\n \"taxRateValue\": \"0.06\"\n }\n ]\n}", "raw_parameter": [], "raw_schema": { "type": "object" }, "binary": null }, "pre_tasks": [], "post_tasks": [], "header": { "parameter": [ { "key": "X-Api-Key", "value": "{{apiKey}}", "is_checked": 1, "type": "string" }, { "key": "Content-Type", "value": "application/json", "is_checked": 1, "type": "string" } ] }, "query": { "parameter": [], "query_add_equal": 1 }, "cookie": { "parameter": [], "cookie_encode": 1 }, "restful": { "parameter": [] }, "tabs_default_active_key": "body" }, "response": { "is_check_result": 1, "example": [ { "example_id": "1", "raw": "{\n \"code\": \"0\",\n \"message\": \"成功\",\n \"data\": {\n \"requestNo\": \"REQ202605200001\",\n \"invoiceReqSerialNo\": \"OPEN202605200001\",\n \"status\": \"PROCESSING\"\n }\n}", "raw_parameter": [], "headers": [], "expect": { "name": "成功", "is_default": 1, "code": "200", "sleep": 0, "content_type": "json", "verify_type": "schema", "mock": "", "schema": { "type": "object", "properties": {} } } } ] }, "description": "Header 必填:X-Api-Key。taxpayerNum/account 从绑定用户信息中读取,不需要在请求中传。", "tags": ["开放API", "蓝票"] }, { "project_id": "-1", "target_id": "open_blue_invoice_query", "parent_id": "0", "target_type": "api", "name": "开放API-蓝票单笔查询", "sort": 2, "version": 1, "mark_id": "1", "status": 1, "is_changed": -1, "method": "GET", "url": "{{baseUrl}}/api/open/v1/blue-invoices/{{invoiceReqSerialNo}}", "request": { "auth": { "type": "noauth", "kv": { "key": "", "value": "", "in": "header" }, "bearer": { "key": "" }, "basic": { "username": "", "password": "" }, "noauth": {} }, "body": { "mode": "none", "parameter": [], "raw": "", "raw_parameter": [], "raw_schema": { "type": "object" }, "binary": null }, "pre_tasks": [], "post_tasks": [], "header": { "parameter": [ { "key": "X-Api-Key", "value": "{{apiKey}}", "is_checked": 1, "type": "string" } ] }, "query": { "parameter": [], "query_add_equal": 1 }, "cookie": { "parameter": [], "cookie_encode": 1 }, "restful": { "parameter": [ { "key": "invoiceReqSerialNo", "value": "OPEN202605200001", "is_checked": 1, "type": "string" } ] }, "tabs_default_active_key": "restful" }, "response": { "is_check_result": 1, "example": [ { "example_id": "1", "raw": "{\n \"code\": \"0\",\n \"message\": \"成功\",\n \"data\": {\n \"invoiceReqSerialNo\": \"OPEN202605200001\",\n \"status\": \"SUCCESS\",\n \"code\": \"0000\",\n \"message\": \"开票成功\",\n \"invoiceCode\": null,\n \"invoiceNo\": \"12345678\",\n \"electronicInvoiceNo\": \"25100000000000000000\",\n \"invoiceDate\": \"2026-05-20 10:00:00\",\n \"buyerName\": \"测试购买方有限公司\",\n \"totalAmount\": \"100.00\",\n \"downloadUrl\": \"https://example.com/invoice.pdf\"\n }\n}", "raw_parameter": [], "headers": [], "expect": { "name": "成功", "is_default": 1, "code": "200", "sleep": 0, "content_type": "json", "verify_type": "schema", "mock": "", "schema": { "type": "object", "properties": {} } } } ] }, "description": "查询时会同步票通状态,然后返回平台标准化结果。", "tags": ["开放API", "蓝票"] }, { "project_id": "-1", "target_id": "open_blue_invoice_sample", "parent_id": "0", "target_type": "api", "name": "开放API-蓝票票样查询", "sort": 3, "version": 1, "mark_id": "1", "status": 1, "is_changed": -1, "method": "GET", "url": "{{baseUrl}}/api/open/v1/blue-invoices/{{invoiceReqSerialNo}}/sample", "request": { "auth": { "type": "noauth", "kv": { "key": "", "value": "", "in": "header" }, "bearer": { "key": "" }, "basic": { "username": "", "password": "" }, "noauth": {} }, "body": { "mode": "none", "parameter": [], "raw": "", "raw_parameter": [], "raw_schema": { "type": "object" }, "binary": null }, "pre_tasks": [], "post_tasks": [], "header": { "parameter": [ { "key": "X-Api-Key", "value": "{{apiKey}}", "is_checked": 1, "type": "string" } ] }, "query": { "parameter": [], "query_add_equal": 1 }, "cookie": { "parameter": [], "cookie_encode": 1 }, "restful": { "parameter": [ { "key": "invoiceReqSerialNo", "value": "OPEN202605200001", "is_checked": 1, "type": "string" } ] }, "tabs_default_active_key": "restful" }, "response": { "is_check_result": 1, "example": [ { "example_id": "1", "raw": "{\n \"code\": \"0\",\n \"message\": \"成功\",\n \"data\": {\n \"invoiceReqSerialNo\": \"OPEN202605200001\",\n \"downloadUrl\": \"https://example.com/invoice.pdf\"\n }\n}", "raw_parameter": [], "headers": [], "expect": { "name": "成功", "is_default": 1, "code": "200", "sleep": 0, "content_type": "json", "verify_type": "schema", "mock": "", "schema": { "type": "object", "properties": {} } } } ] }, "description": "返回已保存的 downloadUrl,不返回 base64 文件内容。", "tags": ["开放API", "蓝票"] }, { "project_id": "-1", "target_id": "open_blue_invoice_batch_create", "parent_id": "0", "target_type": "api", "name": "开放API-蓝票批量开票", "sort": 4, "version": 1, "mark_id": "1", "status": 1, "is_changed": -1, "method": "POST", "url": "{{baseUrl}}/api/open/v1/blue-invoices/batches", "request": { "auth": { "type": "noauth", "kv": { "key": "", "value": "", "in": "header" }, "bearer": { "key": "" }, "basic": { "username": "", "password": "" }, "noauth": {} }, "body": { "mode": "json", "parameter": [], "raw": "{\n \"batchNo\": \"BATCH202605200001\",\n \"items\": [\n {\n \"requestNo\": \"REQ202605200101\",\n \"invoiceReqSerialNo\": \"OPEN202605200101\",\n \"invoiceIssueKindCode\": \"82\",\n \"buyerName\": \"批量测试客户A\",\n \"buyerTaxpayerNum\": \"91350000000000000X\",\n \"remark\": \"开放API批量测试A\",\n \"itemList\": [\n {\n \"goodsName\": \"信息技术服务\",\n \"taxClassificationCode\": \"3040201010000000000\",\n \"includeTaxFlag\": \"1\",\n \"quantity\": \"1\",\n \"unitPrice\": \"50.00\",\n \"invoiceAmount\": \"50.00\",\n \"taxRateValue\": \"0.06\"\n }\n ]\n },\n {\n \"requestNo\": \"REQ202605200102\",\n \"invoiceReqSerialNo\": \"OPEN202605200102\",\n \"invoiceIssueKindCode\": \"82\",\n \"buyerName\": \"批量测试客户B\",\n \"remark\": \"开放API批量测试B\",\n \"itemList\": [\n {\n \"goodsName\": \"软件服务费\",\n \"taxClassificationCode\": \"3040201010000000000\",\n \"includeTaxFlag\": \"1\",\n \"quantity\": \"1\",\n \"unitPrice\": \"80.00\",\n \"invoiceAmount\": \"80.00\",\n \"taxRateValue\": \"0.06\"\n }\n ]\n }\n ]\n}", "raw_parameter": [], "raw_schema": { "type": "object" }, "binary": null }, "pre_tasks": [], "post_tasks": [], "header": { "parameter": [ { "key": "X-Api-Key", "value": "{{apiKey}}", "is_checked": 1, "type": "string" }, { "key": "Content-Type", "value": "application/json", "is_checked": 1, "type": "string" } ] }, "query": { "parameter": [], "query_add_equal": 1 }, "cookie": { "parameter": [], "cookie_encode": 1 }, "restful": { "parameter": [] }, "tabs_default_active_key": "body" }, "response": { "is_check_result": 1, "example": [ { "example_id": "1", "raw": "{\n \"code\": \"0\",\n \"message\": \"成功\",\n \"data\": {\n \"batchNo\": \"BATCH202605200001\",\n \"status\": \"PROCESSING\",\n \"total\": 2\n }\n}", "raw_parameter": [], "headers": [], "expect": { "name": "成功", "is_default": 1, "code": "200", "sleep": 0, "content_type": "json", "verify_type": "schema", "mock": "", "schema": { "type": "object", "properties": {} } } } ] }, "description": "批量接口提交后异步处理,使用批量结果查询接口查看进度。", "tags": ["开放API", "蓝票"] }, { "project_id": "-1", "target_id": "open_blue_invoice_batch_query", "parent_id": "0", "target_type": "api", "name": "开放API-蓝票批量结果查询", "sort": 5, "version": 1, "mark_id": "1", "status": 1, "is_changed": -1, "method": "GET", "url": "{{baseUrl}}/api/open/v1/blue-invoices/batches/{{batchNo}}", "request": { "auth": { "type": "noauth", "kv": { "key": "", "value": "", "in": "header" }, "bearer": { "key": "" }, "basic": { "username": "", "password": "" }, "noauth": {} }, "body": { "mode": "none", "parameter": [], "raw": "", "raw_parameter": [], "raw_schema": { "type": "object" }, "binary": null }, "pre_tasks": [], "post_tasks": [], "header": { "parameter": [ { "key": "X-Api-Key", "value": "{{apiKey}}", "is_checked": 1, "type": "string" } ] }, "query": { "parameter": [], "query_add_equal": 1 }, "cookie": { "parameter": [], "cookie_encode": 1 }, "restful": { "parameter": [ { "key": "batchNo", "value": "BATCH202605200001", "is_checked": 1, "type": "string" } ] }, "tabs_default_active_key": "restful" }, "response": { "is_check_result": 1, "example": [ { "example_id": "1", "raw": "{\n \"code\": \"0\",\n \"message\": \"成功\",\n \"data\": {\n \"batchNo\": \"BATCH202605200001\",\n \"status\": \"PROCESSING\",\n \"total\": 2,\n \"success\": 1,\n \"failed\": 0,\n \"processing\": 1,\n \"items\": [\n {\n \"requestNo\": \"REQ202605200101\",\n \"invoiceReqSerialNo\": \"OPEN202605200101\",\n \"status\": \"SUCCESS\",\n \"errorCode\": null,\n \"errorMessage\": null\n },\n {\n \"requestNo\": \"REQ202605200102\",\n \"invoiceReqSerialNo\": \"OPEN202605200102\",\n \"status\": \"PROCESSING\",\n \"errorCode\": null,\n \"errorMessage\": null\n }\n ]\n }\n}", "raw_parameter": [], "headers": [], "expect": { "name": "成功", "is_default": 1, "code": "200", "sleep": 0, "content_type": "json", "verify_type": "schema", "mock": "", "schema": { "type": "object", "properties": {} } } } ] }, "description": "批次状态:PROCESSING / SUCCESS / FAILED / PARTIAL_FAILED。", "tags": ["开放API", "蓝票"] } ]