订单详情 #

描述 #

使用此接口获取订单详细信息。

接口说明 #

授权对象 APP

请求地址 GET /open/cps/order

请求规则 请查阅开发必读

请求参数 #

参数名称 变量名称 参数类型[长度限制] 是否必填 描述
订单号 order_number string query

示例值:CPS202501190001

交易号 transaction_id string query

示例值:4200001234202501195382031234

请求示例 #

{
  "order_number": "CPS202501190001",
  "transaction_id": "4200001234202501195382031234"
}

响应参数 #

参数名称 变量名称 参数类型 是否必填 描述
订单号 order_number string

示例值:CPS202501190001

交易号 transaction_id string

示例值:4200001234202501195382031234

订单状态 status int32 1:待支付 2:已支付 3:已完成 4:已取消

示例值:2

订单金额 amount double 单位:元

示例值:99.9

商品总额 goods_amount double 单位:元

示例值:89.9

加料总额 attach_amount double 单位:元

示例值:10

订单类型 order_type int32 0:打包 3:堂食

示例值:0

备注 remark string

示例值:不要辣

手机号 mobile string

示例值:13800138000

创建时间 create_time int64 时间戳

示例值:1705598400

支付时间 pay_time int64 时间戳

示例值:1705598500

商品列表 goods_list object[] 订单商品列表

商品信息 goods_list #

参数名称 变量名称 参数类型 是否必填 描述
商品ID id uint32

示例值:1001

商品名称 title string

示例值:示例商品

商品图片 thumb string

示例值:https://example.com/image.jpg

商品数量 goods_count uint32

示例值:1

总价 total_price double

示例值:29.9

单价 price double

示例值:29.9

规格名称 standard string

示例值:大杯

加料信息 attach string

示例值:加珍珠

原价 original_price double

示例值:35.9

退款金额 refund_price double

示例值:29.9

支付金额 pay_price double

示例值:29.9

进货价 purchase_price double

示例值:20

退款数量 refund_num uint32

示例值:1

满减类型 enough_type int32

示例值:1

重量 weight double 单位:克

示例值:500

分组ID group_id uint32

示例值:1

口袋 pocket string

示例值:口袋1

类型 types uint32

示例值:1

响应示例 #

{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "2025011900001",
    "merchant_id": 1001,
    "merchant_title": "不二云微(总店)",
    "merchant_address": "浙江省杭州市西湖区文三路478号",
    "merchant_phone": "13024777828",
    "user_id": 10086,
    "user_name": "张三",
    "user_phone": "13800138000",
    "order_sn": "2025011900001",
    "total_price": 48,
    "pay_price": 48,
    "status": 1,
    "pay_type": 1,
    "pay_status": 1,
    "created_at": "2025-01-19 02:24:07",
    "updated_at": "2025-01-19 02:24:07",
    "remark": "请尽快制作,谢谢",
    "goods_list": [
      {
        "id": 1001,
        "title": "不二云微拿铁",
        "thumb": "https://bool.dev/images/products/latte.jpg",
        "goods_count": 1,
        "total_price": 22,
        "price": 22,
        "standard": "大杯",
        "attach": "加珍珠",
        "original_price": 25,
        "pay_price": 22,
        "purchase_price": 15,
        "weight": 500,
        "types": 1
      },
      {
        "id": 1002,
        "title": "BOOL特调咖啡",
        "thumb": "https://bool.dev/images/products/special-coffee.jpg",
        "goods_count": 1,
        "total_price": 26,
        "price": 26,
        "standard": "中杯",
        "attach": "加奶盖",
        "original_price": 29,
        "pay_price": 26,
        "purchase_price": 18,
        "weight": 400,
        "types": 1
      }
    ]
  }
}
上次更新: 2/21/2025, 3:53:48 PM