GET 订单详情


GET代码目录

/tool/open_api/api/user/order-detail

请求Params

invalid image (图片无法加载)

请求 Header

invalid image (图片无法加载)

响应定义

invalid image (图片无法加载)

请求参数

Query参数

invalid image (图片无法加载)

Header参数

invalid image (图片无法加载)

数据结构

php
export interface Response {
    code: number;
    data: Data;
    msg: string;
}

export interface Data {
    /**
     * 订单信息
     */
    order: Order;
}

/**
 * 订单信息
 */
export interface Order {
    /**
     * 跨店优惠券优惠金额
     */
    acrossStoreCouponPrice: string;
    /**
     * 联系地址,快递配送
     */
    address: string;
    /**
     * 自动取消时间
     */
    autoCancelTime: string;
    /**
     * 自动关闭时间
     */
    autoCloseTime: string;
    /**
     * 自动确认收货时间
     */
    autoConfirmTime: string;
    /**
     * 自动完成时间
     */
    autoSalesTime: string;
    /**
     * 后台优惠,正数表示优惠,负数表示加价
     */
    backPrice: string;
    /**
     * 订单申请退款数据
     */
    cancelData: string[];
    /**
     * 取消状态
     */
    cancelStatus: number;
    /**
     * 取消时间
     */
    cancelTime: string;
    /**
     * 同城配送信息
     */
    city: string[];
    /**
     * 同城配送信息
     */
    cityInfo: string;
    /**
     * 联系方式,同城配送
     */
    cityMobile: string;
    /**
     * 联系人,同城配送
     */
    cityName: string;
    /**
     * 核销员id,到店自提核销之后
     */
    clerkid: number;
    /**
     * 评价时间
     */
    commentTime: string;
    /**
     * 确认收货时间
     */
    confirmTime: string;
    /**
     * 优惠券优惠金额
     */
    couponDiscountPrice: string;
    /**
     * 创建订单的用户id,订单创建用户,0--表示订单由归属用户创建
     */
    createUserid: number;
    /**
     * 订单创建时间
     */
    createdAt: string;
    /**
     * 京东商家编号,京东发货时需要
     */
    customerName: string;
    /**
     * 删除时间
     */
    deletedAt: string;
    /**
     * 订单详情
     */
    detail: Detail[];
    /**
     * 发货信息
     */
    detailExpress: DetailExpress[];
    /**
     * 同城配送距离,-1不在范围内,正数为距离KM
     */
    distance: number;
    /**
     * 运费原价,优惠前
     */
    expressOriginalPrice: string;
    /**
     * 运费,优惠后
     */
    expressPrice: string;
    /**
     * 满减优惠金额
     */
    fullReducePrice: string;
    /**
     * 订单类型,主要用于自定义交易组件
     */
    fundType: number;
    /**
     * 商品总数量
     */
    goodsNum: number;
    /**
     * 订单id
     */
    id: number;
    /**
     * 积分优惠金额
     */
    integralDeductionPrice: string;
    /**
     * 是否评价
     */
    isComment: number;
    /**
     * 是否确认收货
     */
    isConfirm: number;
    /**
     * 是否删除
     */
    isDelete: number;
    /**
     * 是否支付
     */
    isPay: number;
    /**
     * 是否加入回收站
     */
    isRecycle: number;
    /**
     * 是否完成
     */
    isSale: number;
    /**
     * 是否发货
     */
    isSend: number;
    /**
     * 联系地址,同城配送
     */
    location: string;
    /**
     * 会员优惠金额
     */
    memberDiscountPrice: string;
    /**
     * 联系方式,到店自提和快递配送
     */
    mobile: string;
    /**
     * 联系人,到店自提和快递配送
     */
    name: string;
    /**
     * 状态字段(转成二进制查看),从右往左查看依次:是否中断交易、是否关闭
     */
    newStatus: number;
    /**
     * 下单表单,和下单备注二选一
     */
    orderForm: string[];
    /**
     * 订单号
     */
    orderNo: string;
    orderStatus: number;
    /**
     * 支付时间
     */
    payTime: string;
    /**
     * 支付方式
     */
    payType: number;
    /**
     * 订单所属平台
     */
    platform: Platform;
    /**
     * 插件信息
     */
    pluginData: PluginData;
    /**
     * 退款说明
     */
    refund: string;
    /**
     * 售后信息
     */
    refundInfo: RefundInfo;
    /**
     * 下单备注,和下单表单二选一
     */
    remark: string;
    /**
     * 是否申请售后
     */
    saleStatus: number;
    /**
     * 场景值,暂时只有微信小程序有
     */
    scene: string;
    /**
     * 门店核销方式
     */
    selectStoreType: SelectStoreType;
    /**
     * 商家备注
     */
    sellerRemark: string;
    /**
     * 总优惠
     */
    sendTemplateDiscountPrice: string;
    /**
     * 发货时间
     */
    sendTime: string;
    /**
     * 发货方式
     */
    sendType: number;
    /**
     * 订单所属插件,值为各个插件的标示,空表示商城订单
     */
    sign: string;
    /**
     * 门店id,单门店核销
     */
    storeid: number;
    /**
     * 可核销门店id列表,多门店核销
     */
    storeidList: string;
    /**
     * 支持的支付方式,空表示支持系统设置支持的所有方式
     */
    supportPayTypes: string;
    /**
     * 商品原价,优惠前
     */
    totalGoodsOriginalPrice: string;
    /**
     * 商品实付金额,优惠后
     */
    totalGoodsPrice: string;
    /**
     * 实付金额,优惠后(含运费)
     */
    totalPayPrice: string;
    /**
     * 总价,优惠前
     */
    totalPrice: string;
    /**
     * 跟踪ID,有效期十分钟,会影响主播归因、分享员归因等,需创建订单前调用,调用生成订单api时需传入该参数;暂时只有微信小程序有
     */
    traceid: string;
    /**
     * 修改时间
     */
    updatedAt: string;
    /**
     * 跨店优惠券ID
     */
    useAcrossStoreCouponid: number;
    /**
     * 积分使用量
     */
    useIntegralNum: number;
    /**
     * 使用的优惠券id
     */
    useUserCouponid: number;
    /**
     * 用户id,订单所属用户
     */
    userid: number;
    /**
     * 商家留言
     */
    words: string;
}

export interface Detail {
    /**
     * 跨店优惠券优惠金额
     */
    acrossStoreCouponPrice?: string;
    /**
     * 商品规格
     */
    attrList?: AttrList[];
    /**
     * 后台优惠,正数表示优惠,负数表示加价
     */
    backPrice?: string;
    /**
     * 抹零价格
     */
    erasePrice?: string;
    /**
     * 自定义表单提交的数据
     */
    formData?: string;
    /**
     * 商品货号
     */
    goodsNo?: string;
    /**
     * 商品快照
     */
    goodsTemp?: GoodsTemp;
    /**
     * 商品类型
     */
    goodsType?: GoodsType;
    /**
     * 订单详情id
     */
    id?: number;
    /**
     * 是否退款
     */
    isRefund?: number;
    /**
     * 会员优惠金额
     */
    memberDiscountPrice?: string;
    /**
     * 商品数量
     */
    num?: number;
    /**
     * 售后状态
     */
    refundStatus?: number;
    /**
     * 订单详情标识,用于区分插件
     */
    sign?: string;
    /**
     * 商品售价,优惠前
     */
    totalOriginalPrice?: string;
    /**
     * 商品实付金额,优惠后
     */
    totalPrice?: string;
    /**
     * 商品单价
     */
    unitPrice?: string;
}

export interface AttrList {
    attrGroupid: number;
    /**
     * 规格组名称
     */
    attrGroupName: string;
    attrid: number;
    /**
     * 规格名称
     */
    attrName: string;
}

/**
 * 商品快照
 */
export interface GoodsTemp {
    attrSettingType: number;
    barCode: string;
    costPrice: string;
    coverPic: string;
    detail: string;
    discount: string[];
    ecardid: number;
    extra: string[];
    goodsid: number;
    goodsShareLevel: null;
    goodsType: string;
    goodsWarehouseid: number;
    id: number;
    individualShare: number;
    integralPrice: string;
    memberPrice: number;
    name: string;
    no: string;
    number: number;
    originalPrice: string;
    picList: PicList[];
    picurl: string;
    price: number;
    shareType: number;
    signid: string;
    stock: number;
    useIntegral: number;
    weight: number;
}

export interface PicList {
    id: string;
    picurl: string;
}

/**
 * 商品类型
 */
export type GoodsType = "goods" | "ecard" | "form-goods";

export interface DetailExpress {
    /**
     * 联系方式,同城配送
     */
    cityMobile?: null;
    /**
     * 联系人,同城配送
     */
    cityName?: null;
    /**
     * 快递公司
     */
    express?: string;
    /**
     * 快递内容
     */
    expressContent?: string;
    /**
     * 快递单号
     */
    expressNo?: string;
    /**
     * 商家留言
     */
    merchantRemark?: string;
    /**
     * 发货方式
     */
    sendType?: number;
}

/**
 * 订单所属平台
 */
export type Platform = "wxapp" | "aliapp" | "bdapp" | "ttapp" | "wechat" | "mobile";

/**
 * 插件信息
 */
export interface PluginData {
    /**
     * 折扣说明
     */
    discountList: DiscountList[];
    /**
     * 数量
     */
    exchangeCount: string;
    /**
     * 价格信息
     */
    priceList: PriceList[];
    /**
     * 额外货币名称,例如:积分、活力比等
     */
    priceName: string;
}

export interface DiscountList {
    /**
     * 名称
     */
    label: string;
    /**
     * 说明
     */
    value: string;
}

export interface PriceList {
    /**
     * 名称
     */
    label: string;
    /**
     * 说明
     */
    value: string;
}

/**
 * 售后信息
 */
export interface RefundInfo {
    /**
     * 退换货地址ID
     */
    addressid: number;
    /**
     * 确认时间
     */
    confirmTime: string;
    /**
     * 创建时间
     */
    createdAt: string;
    customerName: string;
    /**
     * 快递公司
     */
    express: string;
    /**
     * 快递单号
     */
    expressNo: string;
    /**
     * 售后单id
     */
    id: number;
    /**
     * 商家确认操作
     */
    isConfirm: number;
    /**
     * 是否退款
     */
    isRefund: number;
    /**
     * 用户是否发货
     */
    isSend: number;
    merchantCustomerName: string;
    /**
     * 商家发货快递公司,换货
     */
    merchantExpress: string;
    /**
     * 商家发货快递单号,换货
     */
    merchantExpressNo: string;
    /**
     * 商家同意|拒绝备注、理由
     */
    merchantRemark: string;
    /**
     * 手机号
     */
    mobile: string;
    /**
     * 用户上传图片凭证
     */
    picList: string;
    /**
     * 实际退款金额,运费
     */
    realityRefundExpressPrice: string;
    /**
     * 实际退款金额
     */
    realityRefundPrice: string;
    refundData: RefundData;
    /**
     * 申请退款金额
     */
    refundPrice: string;
    /**
     * 退款时间
     */
    refundTime: string;
    /**
     * 用户退款备注、说明
     */
    remark: string;
    /**
     * 发货时间
     */
    sendTime: string;
    /**
     * 申请状态
     */
    status: number;
    /**
     * 商家处理时间
     */
    statusTime: string;
    /**
     * 售后类型
     */
    type: number;
}

export interface RefundData {
    /**
     * 申请原因
     */
    cause: string;
    goodsStatus: string;
}

/**
 * 门店核销方式
 */
export type SelectStoreType = "alone" | "much";

示例代码

sql
{
    "msg": "string",
    "data": {
        "order": {
            "id": 0,
            "user_id": 0,
            "order_no": "string",
            "total_price": "string",
            "total_pay_price": "string",
            "express_original_price": "string",
            "express_price": "string",
            "total_goods_price": "string",
            "total_goods_original_price": "string",
            "member_discount_price": "string",
            "full_reduce_price": "string",
            "use_user_coupon_id": 0,
            "coupon_discount_price": "string",
            "use_integral_num": 0,
            "integral_deduction_price": "string",
            "name": "string",
            "mobile": "string",
            "address": "string",
            "remark": "string",
            "order_form": [
                "string"
            ],
            "words": "string",
            "seller_remark": "string",
            "is_pay": 0,
            "pay_type": 0,
            "pay_time": "string",
            "is_send": 0,
            "send_time": "string",
            "customer_name": "string",
            "is_sale": 0,
            "is_confirm": 0,
            "confirm_time": "string",
            "cancel_status": 0,
            "cancel_time": "string",
            "created_at": "string",
            "updated_at": "string",
            "deleted_at": "string",
            "is_delete": 0,
            "is_recycle": 0,
            "send_type": 0,
            "clerk_id": 0,
            "store_id": 0,
            "store_id_list": "string",
            "auto_close_time": "string",
            "select_store_type": "alone",
            "sign": "string",
            "support_pay_types": "string",
            "is_comment": 0,
            "comment_time": "string",
            "sale_status": 0,
            "back_price": "string",
            "auto_cancel_time": "string",
            "auto_confirm_time": "string",
            "auto_sales_time": "string",
            "distance": 0,
            "city_mobile": "string",
            "location": "string",
            "city_name": "string",
            "city_info": "string",
            "cancel_data": [
                "string"
            ],
            "platform": "wxapp",
            "new_status": 0,
            "fund_type": 0,
            "scene": "string",
            "trace_id": "string",
            "create_user_id": 0,
            "use_across_store_coupon_id": 0,
            "across_store_coupon_price": "string",
            "refund_info": {
                "id": 0,
                "type": 1,
                "refund_price": "string",
                "remark": "string",
                "pic_list": "string",
                "status": 1,
                "status_time": "string",
                "merchant_remark": "string",
                "is_send": 0,
                "send_time": "string",
                "customer_name": "string",
                "express": "string",
                "express_no": "string",
                "address_id": 0,
                "is_confirm": 0,
                "confirm_time": "string",
                "merchant_customer_name": "string",
                "merchant_express": "string",
                "merchant_express_no": "string",
                "created_at": "string",
                "refund_time": "string",
                "is_refund": 0,
                "reality_refund_price": "string",
                "mobile": "string",
                "reality_refund_express_price": "string",
                "refund_data": {
                    "goods_status": "string",
                    "cause": "string"
                }
            },
            "refund": "string",
            "goods_num": 0,
            "detail": [
                {
                    "id": 0,
                    "num": 0,
                    "unit_price": "string",
                    "total_original_price": "string",
                    "total_price": "string",
                    "member_discount_price": "string",
                    "erase_price": "string",
                    "is_refund": 0,
                    "refund_status": 0,
                    "back_price": "string",
                    "sign": "string",
                    "goods_no": "string",
                    "form_data": "string",
                    "goods_type": "goods",
                    "across_store_coupon_price": "string",
                    "attr_list": [
                        {
                            "attr_group_name": "string",
                            "attr_group_id": 0,
                            "attr_id": 0,
                            "attr_name": "string"
                        }
                    ],
                    "goods_temp": {
                        "id": 0,
                        "goods_id": 0,
                        "sign_id": "string",
                        "stock": 0,
                        "price": 0,
                        "original_price": "string",
                        "no": "string",
                        "bar_code": "string",
                        "weight": 0,
                        "pic_url": "string",
                        "individual_share": 0,
                        "share_type": 0,
                        "member_price": 0,
                        "integral_price": "string",
                        "use_integral": 0,
                        "discount": [
                            "string"
                        ],
                        "extra": [
                            "string"
                        ],
                        "goods_warehouse_id": 0,
                        "name": "string",
                        "cover_pic": "string",
                        "detail": "string",
                        "pic_list": [
                            {
                                "id": "string",
                                "pic_url": "string"
                            }
                        ],
                        "number": 0,
                        "goods_share_level": null,
                        "attr_setting_type": 0,
                        "goods_type": "string",
                        "ecard_id": 0,
                        "cost_price": "string"
                    }
                }
            ],
            "city": [
                "string"
            ],
            "plugin_data": {
                "price_list": [
                    {
                        "label": "string",
                        "value": "string"
                    }
                ],
                "price_name": "string",
                "exchange_count": "string",
                "discount_list": [
                    {
                        "label": "string",
                        "value": "string"
                    }
                ]
            },
            "send_template_discount_price": "string",
            "detailExpress": [
                {
                    "express": "string",
                    "send_type": 0,
                    "express_no": "string",
                    "merchant_remark": "string",
                    "express_content": "string",
                    "city_mobile": null,
                    "city_name": null
                }
            ],
            "order_status": 0
        }
    },
    "code": 0
}

未来鸟 2023年6月19日 16:30 收藏文檔