# wx.openStoreOrderDetail(Object object)

> 基础库 3.7.1 开始支持，低版本需做[兼容处理](1003706)。

> __以 [Promise 风格](/miniprogram/dev/framework/app-service/api.md#异步-API-返回-Promise) 调用__：不支持
> 
> __小程序插件__：不支持

> 相关文档: [微信小店指引](https://developers.weixin.qq.com/doc/store/API/basics/component.html)

## 功能描述

打开微信小店订单详情页

## 参数

### Object object

| 属性 | 类型 | 默认值 | 必填 | 说明 |
| ---- | ---- | ------ | -------- | ---- |
| orderId | string |  | 是 | 订单id，通过[回调事件](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/cooperation_shop/order_callback.html#%E4%BA%94%E3%80%81%E5%90%88%E4%BD%9C%E8%B4%A6%E5%8F%B7%E5%BA%97%E9%93%BA%E8%AE%A2%E5%8D%95%E9%80%9A%E7%9F%A5%E4%BA%8B%E4%BB%B6)获取 |
| success | function |  | 否 | 接口调用成功的回调函数 |
| fail | function |  | 否 | 接口调用失败的回调函数 |
| complete | function |  | 否 | 接口调用结束的回调函数（调用成功、失败都会执行） |

#### object.fail 回调函数
##### 参数

###### Object res


```json
[
  {
    "属性": "message",
    "类型": "string",
    "说明": "错误信息"
  },
  {
    "属性": "code",
    "类型": "number",
    "说明": "错误码",
    "子项": [
      {
        "合法值": "-1",
        "说明": "系统失败"
      },
      {
        "合法值": "0",
        "说明": "成功"
      },
      {
        "合法值": "1001",
        "说明": "缺少必要参数"
      },
      {
        "合法值": "1002",
        "说明": "网络错误"
      },
      {
        "合法值": "817323001",
        "说明": "合作账号订单id不合法"
      },
      {
        "合法值": "817323002",
        "说明": "无法获取该订单"
      },
      {
        "合法值": "817323003",
        "说明": "当前小程序不是绑定的合作账号"
      }
    ]
  }
]
```
