3.2.01上传销售单获取二维码链接
快速开始环境
快速开始环境
POST
/kapi/app/sim/openApi
请求参数
Query 参数
access_token
string
可选
示例值:
1107974180231447552_L3nqi9yB42ysU25QKA2Z6qgxT3blIVYsp9Nr1eLbP9B63o4Pjb3177JC7544rQ0dgNCgwLEfI92NHbAaM5Cdxz1rsQwF9u1ANbDI
Body 参数application/json
requestId
string
时间戳
businessSystemCode
string
必需
interfaceCode
enum<string>
接口业务编码
枚举值:
BILL.PUSH
data
array [object {39}]
必需
billNo
string
必需
orgCode
string
可选
billDate
string
必需
totalAmount
number
必需
autoInvoice
string
必需
invoiceType
enum<string>
必需
枚举值:
02802600400702508xdp10xdp
priority
string
必需
billSource
string
5-扫码开票
contractNo
string
可选
sellerTaxpayerId
string
销方税号
sellerName
string
销方名称
sellerBankAndAccount
string
销方银行和账号
sellerAddressAndTel
string
销方地址和电话
includeTaxFlag
string
必需
deviceNo
string
可选
terminalNo
string
可选
deduction
number
可选
taxationStyle
string
必需
drawer
string
可选
payee
string
可选
reviewer
string
可选
remark
string
可选
autoMerge
string
必需
pushMatchRules
string
必需
fillValueRule
string
必需
blueinvoiceCode
string
可选
blueinvoiceNo
string
可选
originalIssueTime
string
可选
blueInvoiceType
string
可选
redReason
string
可选
specialType
string
可选
invoiceProperty
string
可选
textField1
string
可选
textField2
string
可选
textField3
string
可选
textField4
string
可选
textField5
string
可选
travelerList
array [object {8}]
必需
billDetail
array [object {21}]
必需
示例
{
"requestId": "string",
"businessSystemCode": "string",
"interfaceCode": " BILL.PUSH",
"data": [
{
"billNo": "string",
"orgCode": "string",
"billDate": "string",
"totalAmount": 0,
"autoInvoice": "string",
"invoiceType": "028",
"priority": "string",
"billSource": "string",
"contractNo": "string",
"sellerTaxpayerId": "string",
"sellerName": "string",
"sellerBankAndAccount": "string",
"sellerAddressAndTel": "string",
"includeTaxFlag": "string",
"deviceNo": "string",
"terminalNo": "string",
"deduction": 0,
"taxationStyle": "string",
"drawer": "string",
"payee": "string",
"reviewer": "string",
"remark": "string",
"autoMerge": "string",
"pushMatchRules": "string",
"fillValueRule": "string",
"blueinvoiceCode": "string",
"blueinvoiceNo": "string",
"originalIssueTime": "string",
"blueInvoiceType": "string",
"redReason": "string",
"specialType": "string",
"invoiceProperty": "string",
"textField1": "string",
"textField2": "string",
"textField3": "string",
"textField4": "string",
"textField5": "string",
"travelerList": [
{
"traveler": "string",
"cardType": "100",
"cardNo": "string",
"travelDate": "2024-04-02",
"startPlace": "广东省深圳市宝安区",
"endPlace": "广东省东莞市南城区",
"transportType": "1",
"seatClass": "一等座"
}
],
"billDetail": [
{
"amount": 0,
"detailId": "string",
"goodsCode": "string",
"goodsName": "string",
"lineProperty": 0,
"price": 0,
"privilegeContent": "string",
"privilegeFlag": 0,
"quantity": 0,
"revenueCode": "string",
"specification": "string",
"taxRate": "string",
"taxAmount": 0,
"discountAmount": 0,
"discountRate": "string",
"units": "string",
"extraField": "string",
"extraField2": "string",
"extraField3": "string",
"extraField4": "string",
"extraField5": "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/sim/openApi?access_token=1107974180231447552_L3nqi9yB42ysU25QKA2Z6qgxT3blIVYsp9Nr1eLbP9B63o4Pjb3177JC7544rQ0dgNCgwLEfI92NHbAaM5Cdxz1rsQwF9u1ANbDI' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
data
object
返回内容,需要解密
scanUrl
string
扫码开票URL
errorCode
string
0为成功
success
boolean
成功响应
示例
{
"data": {
"scanUrl": "http://ireturn.top/qrcode/test/?systemCode=SCAN_ERP&qrKey=816215273307d471c95&billNo=111111111111002264&tenantId=tenant_devscm_test&amount=19.12×tamp=1611123027796"
},
"errorCode": "0",
"success": true
}
🟢200失败
修改于 2024-07-08 06:32:19