5.01全票池导入
开发中
快速开始环境
快速开始环境
POST
/kapi/app/rim/invoiceImport
请求参数
Query 参数
access_token
string
token
Body 参数application/json
invoice
array [object {5}]
必需
invoiceType
string
可选
……
string
可选
invoiceIndex
integer
发票下标
expenseInfo
array [object {6}]
单据信息
voucherInfo
array [object {4}]
凭证信息
示例
{
"invoice": [
{
"invoiceType": "string",
"……": "string",
"invoiceIndex": 0,
"expenseInfo": [
{
"status": "string",
"billNo": "string",
"billId": "string",
"billType": "string",
"billTaxNo": "string",
"orgNumber": "string"
}
],
"voucherInfo": [
{
"vouchNo": "string",
"accountDate": "string",
"vouchId": "string",
"businessDate": "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/invoiceImport?access_token=' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
data
object
结果集
fail
array [object {2}]
导入失败发票信息
invoiceCount
string
导入成功发票数量
failCount
string
导入失败发票数量
message
string
结果描述
errorCode
string
0000-成功
success
boolean
必需
示例
{
"data": {
"fail": [
{
"invoiceIndex": "string",
"msg": "string"
}
],
"invoiceCount": "string",
"failCount": "string"
},
"message": "string",
"errorCode": "string",
"success": true
}
修改于 2024-11-13 08:14:01