2.1.14 发票用途状态查询(发票云版本6.0.11支持,暂只支持乐企)
快速开始环境
快速开始环境
POST
/kapi/app/sim/openApi
满足以下条件之一时
,蓝票可支持部分红冲:1、增值税用途不等于00
2、消费税用途不等于00
3、入账状态不等于00和03时
请求参数
Body 参数application/json
requestId
string
必需
businessSystemCode
string
必需
interfaceCode
string
必需
data
object
必需
sellerTaxpayerId
string
销方税号
<= 20 字符
invoiceType
enum<string>
发票种类
枚举值:
02802600400702508xdp10xdp
invoiceCode
string
可选
<= 50 字符
invoiceNo
string
发票号码
<= 50 字符
invoiceDate
string
开票日期
示例
{
"sellerTaxpayerId": "440103999999202",
"invoiceType": "025",
"invoiceCode": "44125895623515",
"invoiceNo": "12345678",
"issueTime": "2024-04-01 11:11:11"
}
示例代码
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/sim/openApi' \
--header 'Content-Type: application/json' \
--data-raw '{
"sellerTaxpayerId": "440103999999202",
"invoiceType": "025",
"invoiceCode": "44125895623515",
"invoiceNo": "12345678",
"issueTime": "2024-04-01 11:11:11"
}'
返回响应
🟢200成功
application/json
Body
success
boolean
必需
errorCode
string
"0"为成功
message
string
错误描述
data
object
请求结果
invoiceNo
string
发票号码
invoiceDate
string
开票日期
vatStatus
enum<string>
增值税用途
枚举值:
00
ctStatus
enum<string>
消费税用途
枚举值:
0001
accountingStatus
enum<string>
入账状态
枚举值:
000103
示例
{
"success": true,
"errorCode": "string",
"message": "string",
"data": {
"invoiceNo": "string",
"invoiceDate": "string",
"vatStatus": "00",
"ctStatus": "00",
"accountingStatus": "00"
}
}
修改于 2025-03-14 07:38:19