- 整体介绍
- 快速开始
- 加解密
- 文件预览/文件上传/文件下载
- 发票数据结构
- 错误码
- 场景指引
- 授权
- 开票
- 收票
- 全票池引入
- 收票报销
- 查询全票池的发票
- 税局下载发票和勾选认证
- 识别查验
- 微服务接口
- 页面类
- 影像
- 档案
- 设置类
- 订单
4.02 进项发票表头归集
快速开始环境
快速开始环境
POST
/kapi/app/rim/deduction
请求参数
Query 参数
access_token
string
必需
Body 参数application/json
businessSystemCode
string
必需
interfaceCode
enum<string>
必需
枚举值:
invoiceDown
requestId
string
可选
data
object
必需
taxNo
string
企业税号
<= 20 字符
asyncFlag
string
可选
searchOpt
object
查询参数
示例
{
"businessSystemCode": "string",
"interfaceCode": "invoiceDown",
"requestId": "string",
"data": {
"taxNo": "string",
"asyncFlag": "string",
"searchOpt": {
"invoiceCode": "string",
"invoiceNo": "string",
"salerTaxNo": "string",
"authenticateFlags": "空字符串",
"invoiceStatus": "空字符串",
"invoiceType": "空字符串",
"startTime": "2022-06-01",
"endTime": "2022-07-01",
"taxPeriod": "202206"
}
}
}
示例代码
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
可选
totalElement
integer
发票总数量
invoicesData
array [object {22}]
发票数组
示例
{
"errorCode": "string",
"message": "string",
"success": true,
"data": {
"asyncFlag": "string",
"taskNo": "string",
"totalElement": 0,
"invoicesData": [
{
"invoiceType": "string",
"invoiceCode": "string",
"invoiceNo": "string",
"invoiceDate": "string",
"salerName": "string",
"salerTaxNo": "string",
"invoiceAmount": "string",
"totalTaxAmount": "string",
"invoiceStatus": "string",
"checkFlag": "string",
"deductionPurpose": "string",
"effectiveTaxAmount": "string",
"selectTime": "string",
"manageStatus": "string",
"authenticateFlag": "string",
"checkAuthenticateFlag": "string",
"selectAuthenticateTime": "string",
"scanAuthenticateFlag": "string",
"scanAuthenticateTime": "string",
"taxPeriod": "202206",
"buyerTaxNo": "string",
"notDeductibleType": "string"
}
]
}
}
修改于 2025-03-14 10:33:05