- 开发前必读
- 开始开发
- 查询类接口文档
- 通用API
- 用户管理API
- 店铺管理API
- 连锁门店API
- 商户管理API
- 商品管理API
- 会员管理API
- 订单管理API
- 营销管理API
- 推广员API
- 插件管理API
- 人信云API
- 推送类接口文档
- 企微助手插件说明
确认订单
POST
/customOrder/index/confirm
最后修改时间:2024-06-07 02:26:10
goods_info包含参数#
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 实例 |
---|---|---|---|---|---|
goods_id | int | 是 | 11 | 商品id | 7322 |
option_id | int | 否 | 11 | 规格id | 0 |
total | int | 是 | 11 | 商品数量 | 10 |
请求参数
Body 参数multipart/form-data
goods_info
array[string]
商品信息
member_id
integer
必需
示例值:
-1
dispatch_type
integer
必需
示例值:
10
address_id
integer
可选
buyer_name
string
收货人
示例值:
收货人
buyer_mobile
string
手机号码
示例值:
15855223322
province
string
省
示例值:
安徽省
city
string
市
示例值:
蚌埠市
area
string
区
示例值:
固镇县
address
string
详细地址
示例值:
详细地址
address_code
string
code
示例值:
340323
seller_remark
string
订单备注
示例值:
订单备注
dispatch_price
string
运费
示例值:
10
is_join_member_price
integer
可选
示例值:
1
is_join_commission
integer
可选
custom_order_pay_type
integer
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/customOrder/index/confirm' \
--form 'goods_info=""' \
--form 'member_id="-1"' \
--form 'dispatch_type="10"' \
--form 'address_id=""' \
--form 'buyer_name="收货人"' \
--form 'buyer_mobile="15855223322"' \
--form 'province="安徽省"' \
--form 'city="蚌埠市"' \
--form 'area="固镇县"' \
--form 'address="详细地址"' \
--form 'address_code="340323"' \
--form 'seller_remark="订单备注"' \
--form 'dispatch_price="10"' \
--form 'is_join_member_price="1"' \
--form 'is_join_commission=""' \
--form 'custom_order_pay_type=""'
返回响应
🟢200成功
application/json
Body
error
integer
必需
order
object
必需
order_type
integer
订单类型
dispatch_type
integer
快递方式
over_scope
integer
超出范围 0不使用快递1使用快递
extra_package
object
必需
member_id
integer
会员id
member_nickname
string
会员昵称
member_mobile
string
手机号
member_avatar
string
头像
goods_price
integer
商品价格
activity_return_data
array[string]
添加活动确认订单返回值
extra_price_package
array[string]
附加价格信息包
extra_discount_rules_package
array[string]
执行折扣的活动规则
goods_info
array [object {30}]
商品信息
buyer_remark
string
买家备注
seller_remark
string
上架备注
pay_price
integer
支付价格
dispatch_price
integer
运费
total
integer
数量
delivery_pay
integer
货到付款
is_invoice_support
integer
必需
invoice_type
array[string]
发票
member_credit
null
必需
member_balance
null
必需
select_coupon_id
null
必需
is_member_card_tip
boolean
必需
delivery_time
integer
必需
示例
{
"error": 0,
"order": {
"order_type": 10,
"dispatch_type": 0,
"over_scope": 0,
"extra_package": {
"delivery_time": "",
"article_id": 0,
"inviter_id": "",
"is_prescription": false,
"medication_id": 0,
"custom_order_is_join_commission": 0,
"intracity_setting": []
},
"member_id": -1,
"member_nickname": "游客",
"member_mobile": "",
"member_avatar": "",
"goods_price": 100,
"activity_return_data": [],
"extra_price_package": [],
"extra_discount_rules_package": [],
"goods_info": [
{
"title": "bbbbb",
"short_title": "",
"sub_title": "",
"option_title": "",
"thumb": "image/25/2024/03/61e6a8ca4fd0f2eb842ab9c836f99def.png",
"option_thumb": null,
"goods_code": "",
"unit": "件",
"type": "0",
"goods_id": "7343",
"stock": "1099",
"option_id": "0",
"total": "1",
"price": 100,
"price_unit": "100.00",
"price_original": 100,
"price_discount": 0,
"extra": null,
"ext_field": {
"show_sales": "0",
"show_stock": "1",
"invoice": "0",
"refund": "1",
"return": "1",
"exchange": "1",
"is_delivery_pay": "0",
"auto_putaway": "0",
"single_max_buy": "",
"single_min_buy": "",
"max_buy": "",
"buy_limit": "0",
"putaway_time": "0NaN-NaN-NaN NaN:NaN:NaN",
"share_title_type": "0",
"deduction_gift_card_type": "0",
"deduction_gift_card": "",
"deduction_gift_card_repeat": "0",
"note": "",
"goods_stock_warning_type": 1,
"stock_warning_type": 0,
"stock_warning_number": 0,
"stock_warning_scale": 0,
"warehouseSettings": "",
"option_type": "0",
"youyu": {
"category_1": "",
"category_2": ""
},
"price_diy": "",
"goods_unit_type": "1",
"goods_unit": "件",
"wholesale_settings": {
"number_limit": "",
"one_lot_status": "0",
"one_lot_type": "1",
"one_lot_number": "",
"step_status": "0",
"step_number": "2",
"step_type": "2",
"step_data": ""
},
"title_tag": "",
"title_tag_color": "#FF3C29",
"is_finder": 0,
"finder_id": "",
"finder_text": "",
"is_feed": 0,
"feed_finder_id": "",
"feed_id": "",
"feed_text": "",
"medicine_settings": {
"disease": ""
},
"offaway_time": "0NaN-NaN-NaN NaN:NaN:NaN",
"buy_button_settings": [],
"buy_button_type": "0"
},
"auto_deliver": "0",
"auto_deliver_content": "",
"plugin_identification": {
"is_commission": "1"
},
"activity_package": [],
"form_data": null,
"form_status": "0",
"form_id": "0",
"virtual_account_id": null,
"virtual_account_mailer_setting": null,
"change_string": "",
"is_all_verify": 1
}
],
"buyer_remark": "",
"seller_remark": "",
"pay_price": 100,
"dispatch_price": 0,
"total": 100,
"delivery_pay": 0,
"is_invoice_support": 0,
"invoice_type": [],
"member_credit": null,
"member_balance": null,
"select_coupon_id": null,
"is_member_card_tip": false,
"delivery_time": 0
}
}

扫码加入 开放接口 微信交流群
在这里,获得 开放接口 使用上的任何帮助,快速上手让你的研测效率得到大幅提升


修改于 2024-06-07 02:26:10