查询订单详情
POST
/external/order/detail/get
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
channelId
string
平台id
id
string
订单唯一id,不是orderId
示例
{
"channelId": "12306",
"id": "9970a40cae4311ebb0d800163e30b52e"
}
示例代码
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/detail/get' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"channelId": "12306",
"id": "9970a40cae4311ebb0d800163e30b52e"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
必需
data
object
示例:-
id
string
必需
corpid
string
公司id
salesId
integer
销售id
customerId
integer
客户id
channelId
string
平台id
channelName
string
平台名
shopId
string
店铺id
shopName
string
店铺名
unionId
string
unionId
mobile
string
手机号
orderId
string
订单编号
orderPrice
number
订单金额
orderStatus
integer
订单状态
orderTime
string
下单时间
customDefine
array [object {2}]
自定义信息
goodsList
array [object {4}]
商品列表
示例
{
"code": 0,
"message": "success",
"data": {
"id": "85fd72f95c0e11eca61600163e106b20",
"corpid": "ww9czxxxxxx",
"salesId": 444256224170048,
"customerId": 444926101606464,
"channelId": "12306",
"channelName": "12306",
"shopId": "TEST",
"shopName": "测试店铺",
"unionId": "",
"mobile": "18145673027",
"orderId": "TEST_12345678",
"orderPrice": 0.01,
"orderStatus": 2,
"orderTime": "2021-12-10 15:53:29",
"customDefine": [
{
"key": "1191",
"value": "xxx"
},
{
"key": "1190",
"value": "1"
}
],
"goodsList": [
{
"goodName": "测试商品",
"imageUrl": "https://xxx",
"goodPrice": 0.01,
"num": 1
}
]
}
}
🟢200错误
修改于 2022-02-15 07:17:20