批量创建/更新订单结果查询接口
POST
/external/order/record
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
batchId
string
订单彼此id
示例
{
"batchId": "7f45bbd6-a535-4b06-b7e4-4d1ff7fefdae"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/external/order/record' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"batchId": "7f45bbd6-a535-4b06-b7e4-4d1ff7fefdae"
}'
返回响应
🟢200成功
application/json
Body
code
integer
示例:0
message
string
必需
data
array [object {6}]
返回数据
id
integer
记录id
corpid
string
公司ID
batchId
string
批次ID
orderId
string
订单ID
failReason
string
失败原因
gmtCreateTime
string
创建时间
示例
{
"code": 0,
"message": "success",
"data": [
{
"id": 52,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 53,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 54,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 55,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 56,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 57,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 58,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
},
{
"id": 59,
"corpid": "ww61aeed0d37fac279",
"batchId": "66598259-8ee4-43d3-a100-1f0dda9806ad",
"orderId": "61e58124-0290-4b55-a6e1-312b143b2827",
"failReason": "订单批量插入数据库失败",
"gmtCreateTime": "2021-11-30 22:48:37",
"gmtUpdateTime": "2021-11-30 22:48:37",
"deleted": 0
}
]
}
🟢200错误
修改于 2022-03-04 09:57:05