# 查詢訂單
+++
post:/openapi/index.php?method=queryOrder
*int:partnerId#聯合分配的合作方ID。
*json:body#提交內容json格式數據,參考提交數據demo
<<<
提交數據demo
{
"partnerId": 1985,
"body": {
"orderId": "string",
"LHOrderId": "15354"
}
}
body字段介紹
*string: orderId # 訂單id unique
*string: LHOrderId # 聯合票務訂單ID unique
string: LHDealId # 產品ID unique
<<<
success
{
"code":200,
"describe":"執行成功",
"partnerId":3528,
"body":{
"orderId":"partnerorderid15354",
"LHOrderId":"15354",
"orderStatus":8,
"orderQuantity":6,
"useQuantity":3,
}
}
<<<
error
{
"code":300,
"describe":"未找到訂單",
"partnerId":3528,
"body":{
"orderId":"partnerorderid15354",
"LHOrderId":"15354",
"orderStatus":0,
}
}
<<<
返回參數說明:
開頭為 '*' 表示必填項
*int: code # 交互碼 取值請參考交互碼類型映射表
*string: describe # 交互描述
*int: partnerId # 合作方ID
*json: body # 返回body內容,字段說明如下↓
返回body內容說明
*string: LHOrderId # 聯合訂單ID 支付成功時必須返回,失敗時可不返回
*int: orderStatus # 訂單狀態,取值請參考 開發必讀》訂單返回狀態說明
*int: orderQuantity # 訂單數量(扣除退款數之后的訂單數量)
int: useQuantity # 已消費數量
int: reQuantity # 已退款數量(如果存在退款成功的數量)
int: reStatus # 退款狀態,取值請參考 開發必讀》訂單返回狀態說明
+++