- 整体介绍
- 快速开始
- 加解密
- 文件预览/文件上传/文件下载
- 发票数据结构
- 错误码
- 场景指引
- 授权
- 开票
- 收票
- 全票池引入
- 收票报销
- 查询全票池的发票
- 税局下载发票和勾选认证
- 识别查验
- 微服务接口
- 页面类
- 影像
- 档案
- 设置类
- 订单
4.05 发票勾选/撤销勾选
快速开始环境
快速开始环境
POST
/kapi/app/rim/deduction
请求参数
Query 参数
access_token
string
必需
Body 参数application/json
businessSystemCode
string
必需
interfaceCode
enum<string>
必需
枚举值:
invoiceSelect
requestId
string
可选
data
object
必需
authenticateFlag
number
必需
taxNo
string
企业税号
<= 20 字符
deductionPurpose
enum<string>
必需
枚举值:
123
billType
enum<string>
必需
<= 50 字符
枚举值:
01
默认值:
0
asyncFlag
string
可选
invoices
array [object {11}]
发票数组
示例
{
"businessSystemCode": "string",
"interfaceCode": "invoiceSelect",
"requestId": "string",
"data": {
"authenticateFlag": 0,
"taxNo": "string",
"deductionPurpose": "1",
"billType": "0",
"asyncFlag": "string",
"invoices": [
{
"invoiceType": "4",
"invoiceCode": "string",
"invoiceNo": "string",
"etaxInvoiceNo": "string",
"invoiceDate": "2022-06-11",
"invoiceAmount": "string",
"effectiveTaxAmount": "string",
"totalTaxAmount": "string",
"notDeductibleType": "1",
"salerName": "string",
"salerTaxNo": "string"
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://cosmic-sandbox.piaozone.com/jdpjykjyxgs/kapi/app/rim/deduction?access_token=' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
errorCode
string
必需
message
string
响应描述
success
boolean
请求是否成功
data
object
必需
asyncFlag
string
可选
taskNo
string
可选
success
array [object {9}]
成功发票数组
fail
array [object {5}]
失败发票数组
示例
{
"errorCode": "string",
"message": "string",
"success": true,
"data": {
"asyncFlag": "string",
"taskNo": "string",
"success": [
{
"invoiceCode": "string",
"invoiceNo": "string",
"invoiceDate": "string",
"taxPeriod": "string",
"effectiveTaxAmount": "string",
"selectDate": "string",
"description": "string",
"selectResult": "1",
"notDeductibleType": "1"
}
],
"fail": [
{
"invoiceCode": "string",
"invoiceNo": "string",
"invoiceDate": "string",
"description": "string",
"selectResult": "1"
}
]
}
}
修改于 2025-03-14 10:41:58