1.01 产品订阅(平台服务商专用)
快速开始环境
快速开始环境
POST
/ierp/kapi/app/ocm/ThirdPlatOrderApi
请求参数
Query 参数
access_token
string
必需
Body 参数application/json
opType
enum<string>
必需
枚举值:
addCosmicApiOrder
systemSource
string
必需
callbackUrl
string
可选
thirdOrderNo
string
必需
data
object
必需
taxUserList
array [object {4}]
必需
companyInfo
object
企业相关信息内容
collectChannel
number
必需
taxChannel
number
必需
taxDeviceList
array [object {2}]
税盘相关信息内容
orderContent
array [object {4}]
订单内容
product_end_date
string
可选
product_start_date
string
可选
subscribe_days
number
可选
productName
number
可选
示例
{
"opType": "addCosmicApiOrder",
"systemSource": "string",
"callbackUrl": "string",
"thirdOrderNo": "string",
"data": {
"taxUserList": [
{
"middleNumber": {},
"roleText": "string",
"etaxPassword": "string",
"etaxAccount": "string"
}
],
"companyInfo": {
"contactEmail": "string",
"companyName": "string",
"taxNo": "string",
"companyType": "string",
"areaCode": "string",
"registerAddress": "string",
"bankName": "string",
"bankAccount": {},
"contactName": "string"
},
"collectChannel": 0,
"taxChannel": 0,
"taxDeviceList": [
{
"deviceType": 0,
"deviceNo": "string"
}
]
},
"orderContent": [
{
"product_end_date": "string",
"product_start_date": "string",
"subscribe_days": 0,
"productName": 0
}
]
}
示例代码
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/ierp/kapi/app/ocm/ThirdPlatOrderApi?access_token=' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
data
object
必需
addressUrl
string
必需
accountId
string
必需
appId
string
必需
appSecuret
string
必需
user
string
用户
businessSystemCode
string
业务系统编码
aesKey
string
加密密钥
userType
string
用户类型
requestUrl
string
星瀚发票云平台地址
message
string
描述
errorCode
string
返回码
success
boolean
返回成功状态
示例
{
"data": {
"addressUrl": "string",
"accountId": "string",
"appId": "string",
"appSecuret": "string",
"user": "string",
"businessSystemCode": "string",
"aesKey": "string",
"userType": "string",
"requestUrl": "string"
},
"message": "string",
"errorCode": "string",
"success": true
}
修改于 2024-02-22 10:40:15