简要描述:
-供应链租赁--预下单
请求域名:
- http://xx.com
请求URL:
跟商城下单用同一个接口(order.goods-buy)
新增请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lease_tenancy_terms_id | 否 | int | 中台租期id 用户选择周期后必传(自定义天数传0) |
nums_day | 否 | int | 天数 用户选择周期后必传(选了中台周期就传周期的天数,选了自定义天数就传自定义天数) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"last_deliver_user_info": null,
"amount_items": [
{
"code": "total_goods_price",
"name": "订单总金额",
"amount": "200.00"
},
{
"code": "total_dispatch_price",
"name": "总运费",
"amount": "0.00"
},
{
"code": "total_deduction_price",
"name": "总抵扣",
"amount": "140.00"
}
],
"discount_amount_items": [
{
"code": "shopGoodsMemberLevel",
"name": "全场会员等级优惠",
"amount": "60.00",
"no_show": 0
}
],
"fee_items": [],
"service_fee_items": [],
"tax_fee_items": [],
"total_price": "0.00",
"is_diy_form_jump": 0,
"balance": "3318.15",
"yz_lease_goods": {
"rent_term": [
{
"id": 1,
"title": "测试1",
"num_days": 101,
"preferential_ratio": 8000
},
{
"id": 42597,
"title": "测试",
"num_days": 11,
"preferential_ratio": 0
},
{
"id": 42615,
"title": "测试",
"num_days": 11,
"preferential_ratio": 0
},
{
"id": 42616,
"title": "222",
"num_days": 2,
"preferential_ratio": 10
},
{
"id": 42617,
"title": "2222",
"num_days": 3,
"preferential_ratio": 33
}
],
"policy": ""
},
"orders": [
{
"plugin_id": 164,
"dispatch_type_id": 0,
"mark": "",
"goods_price": "200.00",
"price": "0.00",
"order_goods_price": "200.00",
"vip_order_goods_price": "140.00",
"cost_amount": "101.00",
"discount_price": "60.00",
"fee_amount": "0.00",
"service_fee_amount": "0.00",
"deduction_price": "140.00",
"initial_freight": 0,
"dispatch_price": "0.00",
"tax_fee": 0,
"goods_total": 1,
"is_virtual": false,
"no_refund": 0,
"order_sn": "SN23041317444608D0",
"create_time": "2023-04-13 17:44:20",
"note": null,
"shop_name": "测试2",
"need_address": false,
"invoice_type": null,
"rise_type": null,
"collect_name": null,
"company_number": null,
"pre_id": "3f1139e8c095bd04f32776bbee0b824b",
"order_settings": [],
"order_invoice": {
"uniacid": 25,
"uid": 164912,
"invoice_type": 0,
"email": "",
"rise_type": 1,
"collect_name": "",
"enterprise_id": 1,
"invoice_sn": "1lEV9Vudb",
"equipment_number": "1",
"xsf_name": 1,
"xsf_taxpayer": 1,
"xsf_address": "1",
"xsf_mobile": "1",
"xsf_bank_admin": "1",
"content": "",
"drawer": "1",
"payee": "1",
"reviewer": "11",
"bill_type": 0,
"special_type": 0,
"collection": 0,
"list_identification": 0,
"gmf_taxpayer": "",
"gmf_address": "",
"gmf_bank": "",
"gmf_bank_admin": "",
"gmf_mobile": "",
"remarks": "",
"notice_no": "",
"applicant": "",
"is_audit": 0,
"tax_rate": 0,
"zero_tax_rate": 0,
"invoice_no": "",
"invoice_nature": 0,
"status": 0,
"apply": 0,
"col_address": "",
"col_name": "",
"col_mobile": "",
"detail_param": "",
"invoice_time": 1681379060
},
"order_address": {
"street_id": 0,
"zipcode": "",
"mobile": "18312687777",
"realname": "321",
"province_id": 210000,
"city_id": 210600,
"district_id": 210681,
"longitude": "",
"latitude": "",
"address": "辽宁省 丹东市 东港市 231"
},
"order_goods": [
{
"goods_option_id": 26192,
"goods_option_title": "默认",
"comment_status": 0,
"goods_id": 11589,
"total": 1,
"uid": 164912,
"uniacid": 25,
"title": "测试",
"thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803678获取公众号当前信息.png",
"type": 0,
"goods_sn": "",
"product_sn": "",
"goods_price": "200.00",
"price": "200.00",
"goods_cost_price": "101.00",
"goods_market_price": "200.00",
"coupon_price": "0.00",
"need_address": 0,
"payment_amount": "0.00",
"vip_price": "140.00",
"pre_id": "11589-26192",
"points": "50",
"show_time_word": "",
"goods_option": {
"id": 26192,
"uniacid": 25,
"goods_id": 11589,
"title": "默认",
"thumb": null,
"product_price": "200.00",
"market_price": "200.00",
"cost_price": "101.00",
"stock": 11111103,
"weight": "0.00",
"display_order": 0,
"specs": "25144",
"skuId": "",
"goods_sn": "",
"product_sn": "",
"virtual": 0,
"red_price": "0.00",
"volume": null,
"goods": {
"id": 11589,
"uniacid": 25,
"brand_id": 0,
"type": 1,
"status": 1,
"display_order": 0,
"title": "测试",
"thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803678获取公众号当前信息.png",
"thumb_url": "a:1:{i:0;s:106:\"https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/202314/1672803681获取公众号当前信息.png\";}",
"sku": "个",
"goods_sn": "",
"product_sn": "",
"market_price": "200.00",
"price": "200.00",
"cost_price": "101.00",
"stock": 11111103,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2023-04-13 14:30:03",
"deleted_at": null,
"updated_at": "2023-04-13 14:30:03",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 164,
"virtual_sales": 8,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"is_hide": 1,
"min_price": "200.00",
"max_price": "200.00",
"hide_goods_sales": 0,
"hide_goods_sales_alone": 0,
"vip_price": "140.00",
"next_level_price": "120.00",
"has_many_goods_discount": [],
"has_many_options": [
{
"id": 26192,
"uniacid": 25,
"goods_id": 11589,
"title": "默认",
"thumb": null,
"product_price": "200.00",
"market_price": "200.00",
"cost_price": "101.00",
"stock": 11111103,
"weight": "0.00",
"display_order": 0,
"specs": "25144",
"skuId": "",
"goods_sn": "",
"product_sn": "",
"virtual": 0,
"red_price": "0.00",
"volume": null
}
]
}
},
"order_goods_deductions": {
"0": {
"name": "爱心值&¥¥",
"code": "love",
"uid": 164912,
"usable_amount": "0.00",
"usable_coin": 0,
"used_amount": "0.00",
"used_coin": 0
},
"1": {
"name": "积分456",
"code": "point",
"uid": 164912,
"usable_amount": "140.00",
"usable_coin": 140,
"used_amount": "140.00",
"used_coin": 140
},
"3": {
"name": "消费积分1.0",
"code": "integral",
"uid": 164912,
"usable_amount": "0.00",
"usable_coin": 0,
"used_amount": "0.00",
"used_coin": 0
},
"4": {
"name": "余额123",
"code": "balance",
"uid": 164912,
"usable_amount": "0.00",
"usable_coin": 0,
"used_amount": "0.00",
"used_coin": 0
},
"5": {
"name": "门店余额",
"code": "storebalance",
"uid": 164912,
"usable_amount": "0.00",
"usable_coin": 0,
"used_amount": "0.00",
"used_coin": 0
}
},
"order_goods_discounts": [
{
"discount_code": "shopGoodsMemberLevel",
"amount": "60.00",
"name": "全场会员等级优惠",
"uid": 164912,
"show_style": 0
}
],
"order_goods_tax_fees": []
}
],
"order_plugin": {
"main_plugin_id": 164,
"sub_plugin_id": 164
},
"yz_supply_lease_order": {
"member_id": 164912,
"order_sn": "SN23041317444608D0",
"yz_goods_id": 5,
"uniacid": 25,
"num_days": 0,
"lease_tenancy_terms_id": 0,
"deadline": 1681379060
},
"yz_supply_lease_order_goods": [
{
"goods_id": 11589,
"yz_goods_id": 42632,
"yz_option_id": 131095,
"total": 1
}
],
"order_coupons": [],
"order_discounts": [
{
"discount_code": "selfbuyDiscount",
"amount": "0.00",
"name": "自购省",
"no_show": 0,
"uid": 164912
},
{
"discount_code": "shopGoodsMemberLevel",
"amount": "60.00",
"name": "全场会员等级优惠",
"no_show": 0,
"uid": 164912
}
],
"order_deductions": [
{
"code": "point",
"name": "积分456",
"amount": "140.00",
"coin": 140,
"checked": true
}
],
"order_freight_deduction": [],
"order_tax_fees": [],
"order_fees": [],
"order_service_fees": [],
"order_coin_exchanges": []
}
],
"discount": {
"whether_show_coupon": "1",
"coupon_show": "1",
"deduction_lang": "抵扣",
"default_deduction": "1",
"member_coupons": [
{
"id": 52593,
"uid": 164912,
"coupon_id": 43,
"used": 0,
"use_time": 0,
"get_time": "2023-02-27 00:00:00",
"is_member_deleted": 0,
"coupon_qr": "",
"small_qr": "",
"coupon_qr_sn": "",
"is_expired": 0,
"near_expiration": 0,
"expired_at": 2541340800,
"valid": true,
"checked": false,
"time_start": "2023-02-27",
"time_end": "不限时间",
"timestamp_end": "不限时间",
"belongs_to_coupon": {
"id": 43,
"uniacid": 25,
"cat_id": 0,
"name": "优惠卷32",
"get_type": 1,
"level_limit": -1,
"get_max": 1,
"get_limit_max": 1,
"get_limit_type": 0,
"use_type": 0,
"return_type": 0,
"bgcolor": "",
"enough": 0,
"coupon_type": 0,
"time_limit": 0,
"time_days": 0,
"time_start": "2022-10-08",
"time_end": "2022-10-15",
"coupon_method": 2,
"discount": "4.80",
"deduct": "0.00",
"back_type": 0,
"back_money": "",
"back_credit": "",
"back_redpack": "",
"back_when": 0,
"thumb": "",
"desc": null,
"total": 110,
"status": 1,
"money": "0.00",
"resp_desc": null,
"resp_thumb": "",
"resp_title": "",
"resp_url": "",
"credit": 0,
"usecredit2": 0,
"remark": "",
"descnoset": 0,
"display_order": 100,
"supplier_uid": 0,
"getcashier": 0,
"cashiersids": null,
"cashiersnames": null,
"category_ids": [],
"categorynames": [],
"goods_names": [],
"goods_ids": [],
"storenames": [],
"member_tags_ids": [],
"member_tags_names": [],
"getstore": 0,
"getsupplier": 0,
"supplierids": null,
"suppliernames": null,
"createtime": 0,
"created_at": "2022-10-08",
"updated_at": "2023-02-27",
"deleted_at": null,
"is_complex": 0,
"plugin_id": 0,
"use_conditions": "N;",
"is_integral_exchange_coupon": 0,
"exchange_coupon_integral": "0.00",
"content": "<p>啊发射点发射点发但是VS的</p>",
"coupon_type_name": "平台商品"
}
}
]
},
"dispatch": {
"delivery_method": [
{
"dispatch_type_id": 1,
"name": "慢递"
}
],
"recommend_goods": [],
"use_wechat_address": false,
"custom_data": "",
"default_member_address": {
"id": 15,
"uniacid": 25,
"uid": 164912,
"username": "321",
"mobile": "18312687777",
"zipcode": "",
"province": "辽宁省",
"city": "丹东市",
"district": "东港市",
"address": "231",
"isdefault": 1,
"longitude": "",
"latitude": "",
"country_code": ""
}
}
}
}
返回新增参数yz_lease_goods.rent_term说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 周期id |
title | string | 周期名称 |
num_days | int | 周期天数 |
preferential_ratio | float | 优惠比例 |