有赞新零售社区

发帖
API使用问题»换货订单

[API调用-商品/交易] 换货订单

Kylin 2023-09-19 293 浏览 1 评论 | 只看楼主 [打印]
门店有个换货场景,但是换货订单进入我们系统的时候我们判断不了是换货订单:
1、换货订单有标识能区分与正常的订单吗?
2、换货订单只有新要换货发出的商品明细,没有原本要退货的那个SKU,我们基于什么做退货单呢?
以下哪个字段我们能做判断:
array ( 'trace_id' => 'yz7-0ae85b73-1694428801655-96061', 'code' => 200, 'data' => array ( 'delivery_order' => array ( ), 'order_promotion' => array ( 'item' => array ( ), 'adjust_fee' => '0.00', 'order_paid_promotion' => array ( ), 'order' => array ( ), ), 'custom_item_infos' => array ( ), 'refund_order' => array ( ), 'full_order_info' => array ( 'child_info' => array ( 'child_orders' => array ( ), ), 'remark_info' => array ( 'buyer_message' => '', ), 'address_info' => array ( 'self_fetch_info' => '', 'delivery_address' => '', 'delivery_postal_code' => '', 'receiver_name' => '', 'delivery_province' => '', 'delivery_city' => '', 'delivery_district' => '', 'address_extra' => '{}', 'receiver_tel' => '', ), 'pay_info' => array ( 'outer_transactions' => array ( ), 'deduction_real_pay' => 0, 'real_payment' => '0.00', 'post_fee' => '0.00', 'deduction_pay' => 0, 'phase_payments' => array ( ), 'total_fee' => '210.00', 'payment' => '0.00', 'transaction' => array ( ), ), 'buyer_info' => array ( 'outer_user_id' => '', 'yz_open_id' => '8jazjiq4622531720721334272', 'fans_type' => 0, 'fans_nickname' => '', 'fans_id' => 0, ), 'orders' => array ( 0 => array ( 'is_cross_border' => '', 'outer_item_id' => 'JWYZIC80179911', 'item_type' => 0, 'discount_price' => '210.00', 'goods_date' => '', 'warehouse_code' => '', 'num' => 1, 'oid' => '2962807050567286910', 'goods_snapshot' => 'https://h5.youzan.com/v2/showcase/goodsSnap?order_no=E20230911183235086606217&alias=3f4im2944tqwkd1&goods_id=3206676528&snap_key=fe01efec93b921a3fe1af889fe970406,aca32af72f296953d432052555c09b46', 'title' => '一之己润唇膏 润M9911', 'fenxiao_payment' => '0.00', 'item_no' => 'JWYZIC80179911', 'buyer_messages' => '', 'root_sku_id' => '14193246940', 'is_present' => false, 'cross_border_trade_mode' => '', 'price' => '210.00', 'sub_order_no' => '', 'total_fee' => '210.00', 'fenxiao_price' => '0.00', 'sale_plan' => array ( 'penalty' => array ( ), 'cancel_rule_time' => array ( ), ), 'alias' => '3f4im2944tqwkd1', 'payment' => '0.00', 'item_barcode' => 'JWYZIC80179911', 'is_pre_sale' => '', 'outer_sku_id' => 'JWYZIC80179911', 'sku_unique_code' => '', 'goods_url' => 'https://h5.youzan.com/v2/showcase/goods?alias=3f4im2944tqwkd1', 'customs_code' => '', 'is_price_calendar' => '', 'item_id' => 3206676528, 'weight' => '', 'sku_id' => 0, 'sku_properties_name' => '[]', 'pic_path' => 'https://img01.yzcdn.cn/upload_files/2020/05/19/FhO5Y19m1QWzD_FXF3lxF8IllIgN.png', 'shop_org_id' => '', 'outer_oid' => '51291b3c-620e-4e89-b219-9bbacb88dccf', 'pre_sale_type' => '', 'points_price' => '0', 'sku_no' => '', 'root_item_id' => '2623441669', 'sku_barcode' => 'JWYZIC80179911', 'item_props' => '[]', ), ), 'source_info' => array ( 'is_offline_order' => true, 'book_key' => '', 'biz_source' => 'PC-RETAIL-WIN-2.52.3', 'source' => array ( 'platform' => 'other', 'wx_entrance' => 'direct_buy', ), ), 'order_info' => array ( 'consign_time' => '', 'order_extra' => array ( 'is_from_cart' => 'false', 'cashier_id' => '8576273561', 'daogou' => '{"ch":"offline","id":"100074468","name":"李健怡-Jenny","phone":"13661588625","staffNo":"","storeKdtId":"126933012"}', 'sales_guide' => array ( 'order_sales_name' => '李健怡-Jenny', 'order_sales_guide_open_id' => 'LrV6LHiH610186478206595072', 'order_sales_staff' => '', ), 'cashier_name' => '朱飞-Fay', 'force_consignment_mode' => '0', 'exchange_origin_order' => 'E20230907150241003500047', 'create_device_id' => '889d0be0-3455-a6df-7055-5fe2f2fa4093-126933012', 'service_guide' => array ( ), ), 'expired_time' => '2023-09-11 20:32:36', 'type' => 0, 'tid' => 'E20230911183235086606217', 'node_kdt_id' => 126933012, 'update_time' => '2023-09-11 18:33:47', 'pay_type_str' => 'COUPONPAY', 'pay_type' => 16, 'team_type' => 7, 'channel_type' => 0, 'created' => '2023-09-11 18:32:36', 'status_str' => '已完成', 'success_time' => '2023-09-11 18:32:36', 'shop_name' => '上海静安嘉里中心', 'confirm_time' => '', 'pay_time' => '2023-09-11 18:32:36', 'is_retail_order' => true, 'pay_type_desc' => '优惠兑换', 'refund_state' => 0, 'root_kdt_id' => 125315818, 'close_type' => 0, 'status' => 'TRADE_SUCCESS', 'express_type' => 9, 'order_tags' => array ( 'is_secured_transactions' => true, 'is_payed' => true, ), ), ), ), 'success' => true, 'message' => 'successful', )

用手机打开
收藏 ··· 回复
    千寻   有赞云团队   2023-09-19 | 只看该作者
    您好,线上记录的换货只有A换A,实际的跨SKU换货,有赞系统中不记录,需要开发者自行处理

      1跳至
      您需要登录后才可以回帖 登录 | 立即注册

      本版积分规则

      复制链接
      新浪微博
      QQ空间
      微信扫码
      • 回复

      • 评分

      客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

      复制成功