跳至主要內容

交易数据

Alex大约 44 分钟开发文档API接口文档

交易数据

v1.0.0

Base URLs:

Authentication

购物车表

POST 购物车表-添加

POST /front/trade/cart/add

购物车表-添加

请求参数

名称位置类型必选说明
activityIdqueryinteger活动Id-加价购等等加入购物的需要提示
cartQuantityqueryinteger购买商品数量
cartTypequeryinteger购买类型(ENUM):1-购买; 2-积分兑换; 3-赠品; 4-活动促销
itemIdqueryinteger商品编号

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 批量添加购物车

POST /front/trade/cart/addBatch

批量添加购物车

请求参数

名称位置类型必选说明
activityIdqueryinteger活动Id-加价购等等加入购物的需要提示
cartQuantityqueryinteger购买商品数量
cartTypequeryinteger购买类型(ENUM):1-购买; 2-积分兑换; 3-赠品; 4-活动促销
itemIdqueryinteger商品编号

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 结算 确认订单- - 收货地址 支付方式 配送方式 配送时间 发票 , 可选优惠券,礼品卡等等从 虚拟商品不经过购物车

GET /front/trade/cart/checkout

结算

请求参数

名称位置类型必选说明
activityIdqueryinteger活动编号
cartIdquerystring下单商品数据:商品编号
chainIdqueryinteger门店编号
channelTypequeryinteger来源渠道 0:正常下单;1:直播渠道
deliveryTypeIdqueryinteger配送方式
udIdqueryinteger收货地址编号
userVoucherIdsquerystring优惠券

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 购物车表-编辑

POST /front/trade/cart/edit

购物车表-编辑

请求参数

名称位置类型必选说明
cartIdqueryinteger编号
cartQuantityqueryinteger购买商品数量

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 修改购物车数量

POST /front/trade/cart/editQuantity

修改购物车数量

请求参数

名称位置类型必选说明
cartIdqueryinteger编号
cartQuantityqueryinteger购买商品数量

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 购物车表-分页列表查询

GET /front/trade/cart/list

购物车表-分页列表查询

请求参数

名称位置类型必选说明
cartSelectquerystring选中状态(BOOL):0-未选;1-已选
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式
udIdqueryinteger地址编号 或者 地址数据Map
userIdqueryinteger买家编号

返回示例

200 Response

{
  "code": 0,
  "data": {
    "in": {
      "activity_id": 0,
      "cal_freight": false,
      "chain_id": 0,
      "delivery_type_id": 0,
      "items": [
        {
          "activity_id": 0,
          "cart_id": 0,
          "cart_quantity": 0,
          "cart_select": false,
          "cart_type": 0,
          "chain_id": 0,
          "item_id": 0,
          "store_id": 0
        }
      ],
      "message": {
        "property1": "string",
        "property2": "string"
      },
      "order_type": 0,
      "payment_type_id": 0,
      "src_order_id": "string",
      "ud_id": 0,
      "user_id": 0,
      "user_invoice_id": 0,
      "user_nickname": "string",
      "user_voucher_ids": [
        0
      ]
    },
    "is_paid": false,
    "items": [
      {
        "store_address": "string",
        "store_area": "string",
        "store_banner": "string",
        "store_category_id": 0,
        "store_circle": "string",
        "store_close_hours": "string",
        "store_close_reason": "string",
        "store_deliver_district_id": "string",
        "store_district_id": "string",
        "store_end_time": "2019-08-24T14:15:22Z",
        "store_free_shipping": 0,
        "store_grade_id": 0,
        "store_id": 0,
        "store_is_open": false,
        "store_is_selfsupport": false,
        "store_latitude": 0,
        "store_logo": "string",
        "store_longitude": 0,
        "store_name": "string",
        "store_notice": "string",
        "store_o2o_flag": false,
        "store_o2o_tags": "string",
        "store_opening_hours": "string",
        "store_payment_state": 0,
        "store_slogan": "string",
        "store_start_time": "2019-08-24T14:15:22Z",
        "store_state_id": 0,
        "store_tel": "string",
        "store_template": "string",
        "store_type": 0,
        "subsite_id": 0
      }
    ],
    "order_discount_amount": 0,
    "order_freight_amount": 0,
    "order_item_amount": 0,
    "order_money_amount": 0,
    "order_points_amount": 0,
    "order_product_amount": 0,
    "order_sp_amount": 0,
    "user_delivery_address": {
      "ud_address": "string",
      "ud_city": "string",
      "ud_city_id": 0,
      "ud_county": "string",
      "ud_county_id": 0,
      "ud_id": 0,
      "ud_intl": "string",
      "ud_is_default": false,
      "ud_latitude": 0,
      "ud_longitude": 0,
      "ud_mobile": "string",
      "ud_name": "string",
      "ud_postalcode": "string",
      "ud_province": "string",
      "ud_province_id": 0,
      "ud_tag_name": "string",
      "ud_telephone": "string",
      "ud_time": "2019-08-24T14:15:22Z",
      "user_id": 0
    },
    "user_id": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 购物车表-通过cart_id删除

POST /front/trade/cart/remove

购物车表-通过cart_id删除

请求参数

名称位置类型必选说明
cart_idqueryintegercart_id

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 购物车表-批量删除

POST /front/trade/cart/removeBatch

购物车表-批量删除

请求参数

名称位置类型必选说明
cart_idquerystringcart_id

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 购物车-选中商品

GET /front/trade/cart/sel

购物车-选中商品

请求参数

名称位置类型必选说明
actionquerystringAll:全部; store:店铺编号
cartIdqueryinteger编号
cartSelectquerystring是否选中

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

分销用户信息

GET 用户分销订单列表数据

GET /front/trade/distributionOrder/listsOrder

用户分销订单列表数据

请求参数

名称位置类型必选说明
buyerUserIdqueryinteger买家编号
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
orderIdquerystring订单编号
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式
storeIdqueryinteger店铺编号
timeFlagqueryinteger时段标记
uoActivequerystring是否有效(BOOL):0-未生效;1-有效
uoBuyCommissionquerynumber推广员佣金
uoDirectsellerCommissionquerynumber销售员佣金
uoIdqueryinteger订单收益编号
uoIsPaidquerystring是否有效(BOOL):0-未支付;1-已支付
uoLevelqueryinteger等级
uoPaytimequeryinteger支付时间
uoReceivetimequeryinteger收货时间
uoRemarkquerystring备注
uoTimequeryinteger时间
uoTimeEndqueryinteger时间-结束
uoTimeStartqueryinteger时间-开始
userIdqueryinteger用户编号:上级ID,获取佣金推广员

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": {
      "current": 0,
      "pages": 0,
      "records": [
        {
          "buyer_user_avatar": "string",
          "buyer_user_id": 0,
          "buyer_user_level_name": "string",
          "buyer_user_name": "string",
          "order_id": "string",
          "store_id": 0,
          "uo_active": false,
          "uo_buy_commission": 0,
          "uo_directseller_commission": 0,
          "uo_id": 0,
          "uo_is_paid": false,
          "uo_level": 0,
          "uo_paytime": 0,
          "uo_receivetime": 0,
          "uo_remark": "string",
          "uo_time": 0,
          "user_id": 0
        }
      ],
      "size": 0,
      "total": 0
    },
    "uo_buy_commission_total": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

订单发货物流信息表

GET 快递追踪

GET /front/trade/orderLogistics/trace

快递追踪

请求参数

名称位置类型必选说明
expressIdqueryinteger快递编号
logisticsIdqueryinteger对应快递公司
orderIdquerystring订单编号
orderLogisticsIdqueryinteger订单物流编号
orderTrackingNumberquerystring订单物流单号AIRWAY BILL number

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

订单表

POST 订单详细信息

POST /front/trade/order/add

订单详细信息

请求参数

名称位置类型必选说明
activityIdqueryinteger活动编号
cartIdquerystring下单商品数据:商品编号
chainIdqueryinteger门店编号
channelTypequeryinteger来源渠道 0:正常下单;1:直播渠道
deliveryTypeIdqueryinteger配送方式
orderMessagequerystring消息
paymentTypeIdqueryinteger付款方式
udIdqueryinteger收货地址编号
userInvoiceIdqueryinteger发票
userVoucherIdsquerystring优惠券

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 订单评价

POST /front/trade/order/addOrderComment

订单评价

请求参数

名称位置类型必选说明
commentContentquerystring评论内容
commentIsAnonymousquerystring匿名评价
itemquerystring评论详细 -> 对应OrderCommentItemReq
orderIdquerystring订单编号
storeDeliverycreditquerynumber物流评价
storeDesccreditquerynumber描述相符
storeServicecreditquerynumber服务评价

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKCommonRes
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 取消订单

POST /front/trade/order/cancel

取消订单

请求参数

名称位置类型必选说明
orderCancelReasonquerystring取消原因
orderIdquerystring订单编号

返回示例

200 Response

{
  "code": 0,
  "data": {
    "orderId": [
      "string"
    ]
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 订单详细信息

GET /front/trade/order/detail

订单详细信息

请求参数

名称位置类型必选说明
order_idquerystringorder_id

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 用户中心订单数量

GET /front/trade/order/getOrderNum

用户中心订单数量

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 订单列表信息

GET /front/trade/order/list

订单列表信息

请求参数

名称位置类型必选说明
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
kindIdqueryinteger订单种类(ENUM): 1201-实物 ; 1202-教育类 ; 1203-电子卡券 ; 1204-其它
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
orderEtimequeryinteger下单时间
orderIdquerystring订单编号
orderStateIdqueryinteger订单状态(LIST):2011-待订单审核;2013-待财务审核;2020-待配货/待出库审核;2030-待发货;2040-已发货/待收货确认;2060-已完成/已签收;2070-已取消/已作废;
orderStimequeryinteger下单时间
orderTitlequerystring订单标题
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式
storeIdqueryinteger卖家店铺编号
subsiteIdqueryinteger所属分站:0-总站
userIdqueryinteger买家编号
userNicknamequerystring买家昵称

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": [
      {
        "activity_double_points_id": 0,
        "activity_id": "string",
        "activity_manhui_id": "string",
        "activity_type_id": "string",
        "activity_voucher_id": "string",
        "buyer_contacter": "string",
        "buyer_mobile": 0,
        "card_kind_id": 0,
        "cart_type_id": false,
        "chain_code": "string",
        "chain_id": 0,
        "consume_record": [
          {
            "chain_id": 0,
            "consume_record_id": 0,
            "currency_id": 0,
            "currency_symbol_left": "string",
            "order_id": "string",
            "payment_channel_id": 0,
            "payment_met_id": 0,
            "payment_type_id": 0,
            "record_commission_fee": 0,
            "record_date": "2019-08-24T14:15:22Z",
            "record_day": 0,
            "record_desc": "string",
            "record_distribution_commission_fee": 0,
            "record_enable": false,
            "record_money": 0,
            "record_month": 0,
            "record_time": 0,
            "record_title": "string",
            "record_total": 0,
            "record_year": 0,
            "store_id": 0,
            "subsite_id": 0,
            "trade_type_id": 0,
            "user_id": 0,
            "user_nickname": "string"
          }
        ],
        "consume_trade": {
          "buyer_id": 0,
          "buyer_store_id": 0,
          "chain_id": 0,
          "consume_trade_id": 0,
          "currency_id": 0,
          "currency_symbol_left": "string",
          "order_commission_fee": 0,
          "order_id": "string",
          "order_payment_amount": 0,
          "payment_channel_id": 0,
          "recharge_level_id": 0,
          "seller_id": 0,
          "store_id": 0,
          "subsite_id": 0,
          "trade_amount": 0,
          "trade_create_time": 0,
          "trade_delete": false,
          "trade_desc": "string",
          "trade_discount": 0,
          "trade_is_paid": 0,
          "trade_mode_id": 0,
          "trade_paid_time": 0,
          "trade_payment_amount": 0,
          "trade_payment_credit": 0,
          "trade_payment_money": 0,
          "trade_payment_points": 0,
          "trade_payment_recharge_card": 0,
          "trade_payment_redpack": 0,
          "trade_payment_sp": 0,
          "trade_remark": "string",
          "trade_title": "string",
          "trade_type_id": 0
        },
        "currency_id": 0,
        "currency_symbol_left": "string",
        "delivery": {
          "da_address": "string",
          "da_city": "string",
          "da_city_id": 0,
          "da_county": "string",
          "da_county_id": 0,
          "da_intl": "string",
          "da_latitude": 0,
          "da_longitude": 0,
          "da_mobile": "string",
          "da_name": "string",
          "da_postalcode": "string",
          "da_province": "string",
          "da_province_id": 0,
          "da_tag_name": "string",
          "da_telephone": "string",
          "da_time": "2019-08-24T14:15:22Z",
          "order_id": "string"
        },
        "delivery_istimer": false,
        "delivery_time": 0,
        "delivery_time_id": 0,
        "delivery_type_id": 0,
        "distributor_user_id": 0,
        "if_buyer_cancel": false,
        "items": [
          {
            "activity_code": "string",
            "activity_id": 0,
            "activity_type_id": 0,
            "category_id": 0,
            "if_return": false,
            "item_cost_price": 0,
            "item_id": 0,
            "item_name": "string",
            "item_save_price": 0,
            "item_src_id": 0,
            "item_unit_points": 0,
            "item_unit_price": 0,
            "item_unit_sp": 0,
            "order_give_id": 0,
            "order_id": "string",
            "order_item_adjust_fee": 0,
            "order_item_amount": 0,
            "order_item_can_refund_amount": 0,
            "order_item_commission_fee": 0,
            "order_item_commission_fee_refund": 0,
            "order_item_commission_rate": 0,
            "order_item_confirm_file": "string",
            "order_item_confirm_status": false,
            "order_item_discount_amount": 0,
            "order_item_evaluation_status": false,
            "order_item_file": "string",
            "order_item_id": 0,
            "order_item_image": "string",
            "order_item_inventory_lock": 0,
            "order_item_note": "string",
            "order_item_payment_amount": 0,
            "order_item_points_add": 0,
            "order_item_points_fee": 0,
            "order_item_quantity": 0,
            "order_item_reduce": 0,
            "order_item_return_agree_amount": 0,
            "order_item_return_agree_num": 0,
            "order_item_return_num": 0,
            "order_item_return_subtotal": 0,
            "order_item_sale_price": 0,
            "order_item_saler_id": 0,
            "order_item_supplier_sync": false,
            "order_item_voucher": 0,
            "policy_discountrate": 0,
            "product_id": 0,
            "product_item_name": "string",
            "product_name": "string",
            "return_ids": [
              "string"
            ],
            "src_order_id": "string",
            "store_id": 0,
            "user_id": 0
          }
        ],
        "kind_id": 0,
        "log_items": [
          {
            "order_id": "string",
            "order_state_id": 0,
            "order_state_is_sync": false,
            "order_state_log_id": 0,
            "order_state_note": "string",
            "order_state_pre_id": 0,
            "order_state_time": "2019-08-24T14:15:22Z",
            "order_state_type": "string",
            "user_account": "string",
            "user_id": 0
          }
        ],
        "logistics": [
          {
            "express_id": 0,
            "express_name": "string",
            "logistics_address": "string",
            "logistics_contacter": "string",
            "logistics_enable": false,
            "logistics_explain": "string",
            "logistics_id": 0,
            "logistics_mobile": "string",
            "logistics_phone": "string",
            "logistics_postcode": "string",
            "logistics_time": 0,
            "order_id": "string",
            "order_logistics_id": 0,
            "order_tracking_number": "string",
            "ss_id": 0,
            "stock_bill_id": "string"
          }
        ],
        "order_activity_data": "string",
        "order_activity_manhui_state": 0,
        "order_adjust_fee": 0,
        "order_bp_add": 0,
        "order_buyer_evaluation_status": false,
        "order_buyer_hidden": false,
        "order_cancel_identity": false,
        "order_cancel_reason": "string",
        "order_cancel_time": "2019-08-24T14:15:22Z",
        "order_commission_fee": 0,
        "order_commission_fee_refund": 0,
        "order_delay_time": 0,
        "order_desc": "string",
        "order_discount_amount": 0,
        "order_double_points_add": 0,
        "order_erp_id": "string",
        "order_express_print": false,
        "order_finance_review": false,
        "order_fx_is_settlemented": false,
        "order_fx_settlement_time": "2019-08-24T14:15:22Z",
        "order_id": "string",
        "order_is_cb": false,
        "order_is_cb_sync": false,
        "order_is_offline": false,
        "order_is_out": 0,
        "order_is_paid": 0,
        "order_is_received": false,
        "order_is_review": false,
        "order_is_settlemented": false,
        "order_is_shipped": 0,
        "order_is_sync": false,
        "order_is_transfer": false,
        "order_is_transfer_note": "string",
        "order_item_amount": 0,
        "order_lock_status": false,
        "order_message": "string",
        "order_number": "string",
        "order_payment_amount": 0,
        "order_points_add": 0,
        "order_points_fee": 0,
        "order_product_amount": 0,
        "order_rebate": 0,
        "order_received_time": "2019-08-24T14:15:22Z",
        "order_redpacket_price": 0,
        "order_refund_agree_amount": 0,
        "order_refund_agree_cash": 0,
        "order_refund_agree_points": 0,
        "order_refund_amount": 0,
        "order_refund_status": 0,
        "order_resource_ext1": 0,
        "order_resource_ext2": 0,
        "order_resource_ext3": 0,
        "order_return_ids": "string",
        "order_return_num": 0,
        "order_return_status": 0,
        "order_seller_evaluation_status": false,
        "order_settlement_time": "2019-08-24T14:15:22Z",
        "order_shipping_fee": 0,
        "order_shipping_fee_amount": 0,
        "order_shop_hidden": false,
        "order_state_id": 0,
        "order_time": "2019-08-24T14:15:22Z",
        "order_title": "string",
        "order_type": 0,
        "order_withdraw_confirm": false,
        "payment_form_id": false,
        "payment_time": "2019-08-24T14:15:22Z",
        "payment_type_id": 0,
        "product_name": "string",
        "redpacket_id": 0,
        "redpacket_number": "string",
        "redpacket_price": 0,
        "remain_pay_time": 0,
        "return_flag": false,
        "salesperson_id": 0,
        "src_order_id": "string",
        "stock_bill": [
          {
            "admin_id": 0,
            "bill_type_id": 0,
            "employee_id": 0,
            "items": [
              {
                "bill_item_quantity": 0,
                "bill_item_remark": "string",
                "bill_item_subtotal": 0,
                "bill_item_unit_price": 0,
                "bill_type_id": 0,
                "item_id": 0,
                "item_name": "string",
                "order_id": "string",
                "order_item_id": 0,
                "product_id": 0,
                "product_item_name": "string",
                "product_name": "string",
                "stock_bill_id": "string",
                "stock_bill_item_id": 0,
                "stock_transport_type_id": 0,
                "store_id": 0,
                "unit_id": 0,
                "warehouse_id": 0,
                "warehouse_item_quantity": 0
              }
            ],
            "order_id": "string",
            "stock_bill_amount": 0,
            "stock_bill_checked": false,
            "stock_bill_date": "2019-08-24T14:15:22Z",
            "stock_bill_enable": false,
            "stock_bill_id": "string",
            "stock_bill_modify_time": "2019-08-24T14:15:22Z",
            "stock_bill_other_money": 0,
            "stock_bill_remark": "string",
            "stock_bill_src_id": "string",
            "stock_bill_time": 0,
            "stock_transport_type_id": 0,
            "store_id": 0,
            "warehouse_id": 0
          }
        ],
        "store_id": 0,
        "store_is_selfsupport": false,
        "store_name": "string",
        "store_type": false,
        "subsite_id": 0,
        "trade_payment_amount": 0,
        "trade_payment_credit": 0,
        "trade_payment_money": 0,
        "trade_payment_recharge_card": 0,
        "user_id": 0,
        "user_nickname": "string",
        "virtual_service_time": "2019-08-24T14:15:22Z",
        "voucher_id": 0,
        "voucher_number": "string",
        "voucher_price": 0,
        "warehouse_items": [
          {
            "category_id": 0,
            "item_id": 0,
            "product_id": 0,
            "store_id": 0,
            "unit_id": 0,
            "warehouse_id": 0,
            "warehouse_item_cost": 0,
            "warehouse_item_id": 0,
            "warehouse_item_lock_quantity": 0,
            "warehouse_item_quantity": 0,
            "warehouse_item_quantity_max": 0,
            "warehouse_item_quantity_min": 0
          }
        ]
      }
    ],
    "page": 0,
    "records": 0,
    "size": 0,
    "total": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 订单发票管理表-分页列表查询

GET /front/trade/order/listInvoice

订单发票管理表-分页列表查询

请求参数

名称位置类型必选说明
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
invoiceIsElectronicqueryinteger电子发票(ENUM):0-纸质发票;1-电子发票
invoiceStatusqueryinteger开票状态(BOOL): 0-未开票; 1-已开票;
invoiceTitlequerystring发票抬头
invoiceTypequeryinteger发票类型(ENUM):1-普通发票;2-增值税专用发票
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
orderIdquerystring订单编号
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式
userIdqueryinteger所属用户

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": [
      {
        "invoice_address": "string",
        "invoice_amount": 0,
        "invoice_bankaccount": "string",
        "invoice_bankname": "string",
        "invoice_company_code": "string",
        "invoice_contact_address": "string",
        "invoice_contact_area": "string",
        "invoice_contact_name": "string",
        "invoice_content": "string",
        "invoice_datetime": "2019-08-24T14:15:22Z",
        "invoice_is_company": false,
        "invoice_is_electronic": 0,
        "invoice_phone": "string",
        "invoice_status": false,
        "invoice_time": 0,
        "invoice_title": "string",
        "invoice_type": 0,
        "order_id": "string",
        "order_invoice_id": 0,
        "order_is_paid": false,
        "store_id": 0,
        "user_email": "string",
        "user_id": 0,
        "user_intl": "string",
        "user_mobile": "string"
      }
    ],
    "page": 0,
    "records": 0,
    "size": 0,
    "total": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 确认收货

POST /front/trade/order/receive

确认收货

请求参数

名称位置类型必选说明
orderFinanceReasonquerystring原因
orderIdquerystring订单编号

返回示例

200 Response

{
  "code": 0,
  "data": {
    "orderId": [
      "string"
    ]
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 订单评价-读取订单商品

GET /front/trade/order/storeEvaluationWithContent

订单评价-读取订单商品

请求参数

名称位置类型必选说明
order_idquerystringorder_id

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": [
      {
        "store_address": "string",
        "store_area": "string",
        "store_banner": "string",
        "store_category_id": 0,
        "store_circle": "string",
        "store_close_hours": "string",
        "store_close_reason": "string",
        "store_deliver_district_id": "string",
        "store_district_id": "string",
        "store_end_time": "2019-08-24T14:15:22Z",
        "store_free_shipping": 0,
        "store_grade_id": 0,
        "store_id": 0,
        "store_is_open": false,
        "store_is_selfsupport": false,
        "store_latitude": 0,
        "store_logo": "string",
        "store_longitude": 0,
        "store_name": "string",
        "store_notice": "string",
        "store_o2o_flag": false,
        "store_o2o_tags": "string",
        "store_opening_hours": "string",
        "store_payment_state": 0,
        "store_slogan": "string",
        "store_start_time": "2019-08-24T14:15:22Z",
        "store_state_id": 0,
        "store_tel": "string",
        "store_template": "string",
        "store_type": 0,
        "subsite_id": 0
      }
    ],
    "no": 0,
    "order_evaluation": {},
    "store_info": {
      "store_address": "string",
      "store_area": "string",
      "store_banner": "string",
      "store_category_id": 0,
      "store_circle": "string",
      "store_close_hours": "string",
      "store_close_reason": "string",
      "store_deliver_district_id": "string",
      "store_district_id": "string",
      "store_end_time": "2019-08-24T14:15:22Z",
      "store_free_shipping": 0,
      "store_grade_id": 0,
      "store_id": 0,
      "store_is_open": false,
      "store_is_selfsupport": false,
      "store_latitude": 0,
      "store_logo": "string",
      "store_longitude": 0,
      "store_name": "string",
      "store_notice": "string",
      "store_o2o_flag": false,
      "store_o2o_tags": "string",
      "store_opening_hours": "string",
      "store_payment_state": 0,
      "store_slogan": "string",
      "store_start_time": "2019-08-24T14:15:22Z",
      "store_state_id": 0,
      "store_tel": "string",
      "store_template": "string",
      "store_type": 0,
      "subsite_id": 0
    },
    "yes": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

退款退货

POST 添加退款退货

POST /front/trade/orderReturn/add

添加退款退货

请求参数

名称位置类型必选说明
orderIdquerystring订单编号
orderItemIdqueryinteger订单商品表编号
returnAllFlagquerystring退货标记(BOOL):true-全退, false-单品退
returnBuyerMessagequerystring买家退货备注
returnItemImagequerystring退款凭据(DOT)
returnItemNumqueryinteger退货商品数量
returnReasonIdqueryinteger退款理由编号
returnRefundAmountquerynumber退款金额
returnTelquerystring联系电话
serviceTypeIdqueryinteger服务类型(ENUM):1-退款;2-退货;3-换货;4-维修

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 取消退款订单

POST /front/trade/orderReturn/cancel

取消退款订单

请求参数

名称位置类型必选说明
return_idquerystringreturn_id

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

POST 确认退货物流单号

POST /front/trade/orderReturn/edit

确认退货物流单号

请求参数

名称位置类型必选说明
expressIdqueryinteger快递编号
orderIdquerystring订单编号
orderItemIdqueryinteger订单商品表编号
receivingAddressqueryinteger收货地址
returnAllFlagquerystring退货标记(BOOL):true-全退, false-单品退
returnBuyerMessagequerystring买家退货备注
returnFlagqueryinteger退货类型(ENUM): 0-不用退货;1-需要退货
returnIdquerystring退单号
returnItemImagequerystring退款凭据(DOT)
returnItemNumqueryinteger退货商品数量
returnItemStateIdqueryinteger物流状态(LIST):2030-待发货;2040-已发货/待收货确认;2060-已完成/已签收;2070-已取消/已作废;
returnReasonIdqueryinteger退款理由编号
returnRefundAmountquerynumber退款金额
returnStoreMessagequerystring商家备注
returnTelquerystring联系电话
returnTrackingNumberquerystring物流单号
serviceTypeIdqueryinteger服务类型(ENUM):1-退款;2-退货;3-换货;4-维修

返回示例

200 Response

{
  "code": 0,
  "data": {},
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
201Createdopen in new windowCreatedInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 读取退款退货

GET /front/trade/orderReturn/get

退款退货列表

请求参数

名称位置类型必选说明
return_idquerystringreturn_id

返回示例

200 Response

{
  "code": 0,
  "data": {
    "buyer_store_id": 0,
    "buyer_user_id": 0,
    "deposit_trade_no": "string",
    "express_id": 0,
    "items": [
      {
        "can_refund_amount": 0,
        "can_refund_num": 0,
        "item_id": 0,
        "item_name": "string",
        "item_unit_price": 0,
        "order_id": "string",
        "order_item_id": 0,
        "order_item_image": "string",
        "order_item_quantity": 0,
        "order_item_sale_price": 0,
        "product_item_name": "string",
        "product_name": "string",
        "return_item_image_list": [
          "string"
        ],
        "return_item_num": 0,
        "return_item_subtotal": 0,
        "return_reason_list": [
          {
            "return_reason_id": 0,
            "return_reason_name": "string",
            "return_reason_sort": 0
          }
        ],
        "unit_name": "string"
      }
    ],
    "order_id": "string",
    "payment_channel_id": 0,
    "plantform_return_state_id": 0,
    "return_add_time": 0,
    "return_addr": "string",
    "return_addr_contacter": "string",
    "return_buyer_message": "string",
    "return_channel_code": "string",
    "return_channel_flag": 0,
    "return_channel_time": "2019-08-24T14:15:22Z",
    "return_channel_trans_id": "string",
    "return_commision_fee": 0,
    "return_contact_name": "string",
    "return_financial_confirm": false,
    "return_financial_confirm_time": "2019-08-24T14:15:22Z",
    "return_finish_time": "2019-08-24T14:15:22Z",
    "return_flag": 0,
    "return_id": "string",
    "return_is_paid": false,
    "return_is_settlemented": false,
    "return_is_shipping_fee": 0,
    "return_item_state_id": 0,
    "return_num": 0,
    "return_order_lock": 0,
    "return_platform_message": "string",
    "return_post_code": 0,
    "return_reason_id": 0,
    "return_refund_amount": 0,
    "return_refund_point": 0,
    "return_settlement_time": "2019-08-24T14:15:22Z",
    "return_shipping_fee": 0,
    "return_state_id": 0,
    "return_store_message": "string",
    "return_store_time": "2019-08-24T14:15:22Z",
    "return_store_user_id": 0,
    "return_tel": "string",
    "return_tracking_name": "string",
    "return_tracking_number": "string",
    "return_type": 0,
    "return_withdraw_confirm": false,
    "service_type_id": 0,
    "store_id": 0,
    "submit_return_refund_amount": 0,
    "subsite_id": 0,
    "trade_payment_amount": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 退款退货列表

GET /front/trade/orderReturn/list

退款退货列表

请求参数

名称位置类型必选说明
buyerUserIdqueryinteger买家编号
createTimeEndquerystring创建时间结束值
createTimeStartquerystring创建时间起始值
like[0].columnquerystring搜索字段
like[0].likequerystring搜索字符
orderIdquerystring订单编号
order[0].sidxquerystring排序字段
order[0].sortquerystring排序方式
pagequeryinteger分页查询页码
returnAddEndqueryinteger退款完成时间-结束
returnAddStartqueryinteger退款完成时间-开始
returnChannelCodequerystring退款渠道(ENUM):money-余额;alipay-支付宝;wx_native-微信
returnIdquerystring退单号
returnStateIdqueryinteger卖家处理状态(ENUM): 3100-【客户】提交退单;3105-退单审核;3110-收货确认;3115-退款确认;3120-客户】收款确认;3125-完成
sidxquerystring排序字段
sizequeryinteger分页查询每页数量
sortquerystring排序方式

返回示例

200 Response

{
  "code": 0,
  "data": {
    "items": [
      {
        "buyer_store_id": 0,
        "buyer_user_id": 0,
        "deposit_trade_no": "string",
        "express_id": 0,
        "items": [
          {
            "can_refund_amount": 0,
            "can_refund_num": 0,
            "item_id": 0,
            "item_name": "string",
            "item_unit_price": 0,
            "order_id": "string",
            "order_item_id": 0,
            "order_item_image": "string",
            "order_item_quantity": 0,
            "order_item_sale_price": 0,
            "product_item_name": "string",
            "product_name": "string",
            "return_item_image_list": [
              "string"
            ],
            "return_item_num": 0,
            "return_item_subtotal": 0,
            "return_reason_list": [
              {
                "return_reason_id": 0,
                "return_reason_name": "string",
                "return_reason_sort": 0
              }
            ],
            "unit_name": "string"
          }
        ],
        "order_id": "string",
        "payment_channel_id": 0,
        "plantform_return_state_id": 0,
        "return_add_time": 0,
        "return_addr": "string",
        "return_addr_contacter": "string",
        "return_buyer_message": "string",
        "return_channel_code": "string",
        "return_channel_flag": 0,
        "return_channel_time": "2019-08-24T14:15:22Z",
        "return_channel_trans_id": "string",
        "return_commision_fee": 0,
        "return_contact_name": "string",
        "return_financial_confirm": false,
        "return_financial_confirm_time": "2019-08-24T14:15:22Z",
        "return_finish_time": "2019-08-24T14:15:22Z",
        "return_flag": 0,
        "return_id": "string",
        "return_is_paid": false,
        "return_is_settlemented": false,
        "return_is_shipping_fee": 0,
        "return_item_state_id": 0,
        "return_num": 0,
        "return_order_lock": 0,
        "return_platform_message": "string",
        "return_post_code": 0,
        "return_reason_id": 0,
        "return_refund_amount": 0,
        "return_refund_point": 0,
        "return_settlement_time": "2019-08-24T14:15:22Z",
        "return_shipping_fee": 0,
        "return_state_id": 0,
        "return_store_message": "string",
        "return_store_time": "2019-08-24T14:15:22Z",
        "return_store_user_id": 0,
        "return_tel": "string",
        "return_tracking_name": "string",
        "return_tracking_number": "string",
        "return_type": 0,
        "return_withdraw_confirm": false,
        "service_type_id": 0,
        "store_id": 0,
        "submit_return_refund_amount": 0,
        "subsite_id": 0,
        "trade_payment_amount": 0
      }
    ],
    "page": 0,
    "records": 0,
    "size": 0,
    "total": 0
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline

GET 订单item详情,列出订单的item,及退款详情

GET /front/trade/orderReturn/returnItem

订单item详情,列出订单的item,及退款详情

请求参数

名称位置类型必选说明
order_idquerystringorder_id
order_item_idquerystringorder_item_id

返回示例

200 Response

{
  "code": 0,
  "data": {
    "can_refund_amount": 0,
    "can_refund_num": 0,
    "item_id": 0,
    "item_name": "string",
    "item_unit_price": 0,
    "order_id": "string",
    "order_item_id": 0,
    "order_item_image": "string",
    "order_item_quantity": 0,
    "order_item_sale_price": 0,
    "product_item_name": "string",
    "product_name": "string",
    "return_item_image_list": [
      "string"
    ],
    "return_item_num": 0,
    "return_item_subtotal": 0,
    "return_reason_list": [
      {
        "return_reason_id": 0,
        "return_reason_name": "string",
        "return_reason_sort": 0
      }
    ],
    "unit_name": "string"
  },
  "error": "string",
  "msg": "string",
  "status": 0
}

返回结果

状态码状态码含义说明数据模型
200OKopen in new windowOKInline
401Unauthorizedopen in new windowUnauthorizedInline
403Forbiddenopen in new windowForbiddenInline
404Not Foundopen in new windowNot FoundInline