5.1.02回调接口-按票回调(一次回调一张发票信息)
快速开始环境
快速开始环境
POST
/:忽略该接口前缀,此为对接发票云方提供的回调地址(对接方必须按照成功响应示例报文返回 json )
请求参数
Body 参数application/json
interfaceCode
string
必需
returnCode
string
必需
returnMsg
string
必需
data
object
必需
abolishReason
string
作废原因
<= 50 字符
batch
string
批次号
<= 50 字符
billNo
string
单据编号
<= 50 字符
buyerAddressAndTel
string
必需
buyerBankAndAccount
string
必需
buyerName
string
购买方名称
<= 100 字符
buyerProperty
number
必需
buyerRecipientMail
string
电子发票收票邮箱
<= 80 字符
buyerRecipientPhone
string
电子发票收票手机号
buyerTaxpayerId
string
购买方税号
<= 20 字符
canceler
string
作废人
<= 10 字符
deduction
number
必需
deviceNo
string
设备编号
drawer
string
必需
payee
string
必需
reviewer
string
必需
includeTaxAmount
number
价税合计
totalAmount
number
合计金额
totalTaxAmount
number
合计税额
includeTaxFlag
number
必需
inventoryMark
string
必需
invoiceCode
string
发票代码
<= 50 字符
invoiceNum
string
发票号码
<= 50 字符
invoiceStatus
string
必需
invoiceDate
string
开票日期
invoiceDetail
array [object {18}]
发票明细
invoiceFileUrl
string
必需
<= 200 字符
invoiceImageUrl
string
必需
<= 200 字符
invoicePdfFileUrl
string
必需
<= 200 字符
invoiceXmlFileUrl
string
必需
<= 200 字符
invoiceProperty
number
必需
invoiceType
enum<string>
发票种类
枚举值:
02802600400702508xdp10xdp
orderNo
string
发票流水号
<= 50 字符
originalInvoiceCode
string
可选
originalInvoiceNumber
string
可选
originalInvoiceStatus
string
可选
originalIssueTime
string
可选
printFlag
string
必需
redInfoBillNo
string
必需
remark
string
必需
sellerAddressAndTel
string
销方地址和电话
<= 120 字符
sellerBankAndAccount
string
销方银行和账号
<= 120 字符
sellerName
string
销方名称
<= 100 字符
sellerTaxpayerId
string
销方税号
<= 20 字符
serialNo
string
必需
<= 50 字符
systemSource
string
系统来源
<= 50 字符
taxedType
number
必需
terminalNo
string
终端号码
<= 50 字符
checkCode
string
校验码
<= 50 字符
skm
string
密码区
<= 500 字符
bizControl
object
可选
issueBizType
string
企业业务管控编码
bizType
string
业务类型编码
monthSurplusLimit
number
月剩余额度
daySurplusLimit
number
每日剩余额
isWarning
boolean
必需
示例
{
"interfaceCode": "string",
"returnCode": "string",
"returnMsg": "string",
"data": {
"abolishReason": "string",
"batch": "string",
"billNo": "string",
"buyerAddressAndTel": "string",
"buyerBankAndAccount": "string",
"buyerName": "string",
"buyerProperty": 0,
"buyerRecipientMail": "string",
"buyerRecipientPhone": "string",
"buyerTaxpayerId": "string",
"canceler": "string",
"deduction": 0,
"deviceNo": "string",
"drawer": "string",
"payee": "string",
"reviewer": "string",
"includeTaxAmount": 0,
"totalAmount": 0,
"totalTaxAmount": 0,
"includeTaxFlag": 0,
"inventoryMark": "string",
"invoiceCode": "string",
"invoiceNum": "string",
"invoiceStatus": "string",
"invoiceDate": "string",
"invoiceDetail": [
{
"amount": 0,
"billSourceId": "string",
"goodsName": "string",
"includeTaxAmount": 0,
"includeTaxPrice": "string",
"lineProperty": 0,
"price": "string",
"privilegeContent": "string",
"privilegeFlag": 0,
"quantity": "string",
"revenueCode": "string",
"revenueName": "string",
"seq": 0,
"specification": "string",
"taxAmount": 0,
"taxRate": "string",
"units": "string",
"zeroTaxRateFlag": "string"
}
],
"invoiceFileUrl": "string",
"invoiceImageUrl": "string",
"invoicePdfFileUrl": "string",
"invoiceXmlFileUrl": "string",
"invoiceProperty": 0,
"invoiceType": "028",
"orderNo": "string",
"originalInvoiceCode": "string",
"originalInvoiceNumber": "string",
"originalInvoiceStatus": "string",
"originalIssueTime": "string",
"printFlag": "string",
"redInfoBillNo": "string",
"remark": "string",
"sellerAddressAndTel": "string",
"sellerBankAndAccount": "string",
"sellerName": "string",
"sellerTaxpayerId": "string",
"serialNo": "string",
"systemSource": "string",
"taxedType": 0,
"terminalNo": "string",
"checkCode": "string",
"skm": "string"
},
"bizControl": {
"issueBizType": "string",
"bizType": "string",
"monthSurplusLimit": 0,
"daySurplusLimit": 0,
"isWarning": true
}
}
示例代码
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/:忽略该接口前缀,此为对接发票云方提供的回调地址(对接方必须按照成功响应示例报文返回 json )' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
message
string
必需
errorCode
string
必需
success
boolean
成功响应
示例
{
"message": "string",
"errorCode": "string",
"success": true
}
修改于 2025-03-14 10:01:53