文档
测试

购物车提交判断 proceed to checkout

GET
route=checkout/cart/checkPickUpCart&cart_id=1719813&route_type=1&delivery_type=1

请求参数

参数名
类型
描述
必填
cart_id
必填
route_type
int
老路由传0 新路由传1 用来区分响应的格式
必填
delivery_type
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:Successfully.
必填
data
object
数据字典
必填
cart_cache_token
string
缓存的唯一key,跳转到pre_order界面需要这个cart_cache_token
必填
product_id
int
示例:3334746
必填
transaction_type
int
示例:0
必填
quantity
int
示例:7
必填
cart_id
int
示例:1719813
必填
agreement_id
object
示例:null
必填
agreement_code
object
示例:null
必填
add_cart_type
int
示例:0
必填
is_virtual_pay
int
示例:0
必填
list
object
有list的时候 就是新的报错弹框
可选
randomProducts
array
随机
必填
itemCode
string
Item Code
必填
quantity
int
qty
必填
appointProducts
array
指定
必填
itemCode
string
Item Code
必填
quantity
int
qty
必填
warehouse
array
仓库code
必填

说明 / 示例

当route_type=1 验证成功返回.. ```json { "code": 200, "msg": "Successfully.", "data": { "cart_cache_token": "780d3b07c25957e28adf4f1e6a39af84" } } ``` 验证失败返回msg情况.. ```json { "code":0, "msg":"cannot be directly purchased for stock up. You must first upload a sales order and pay for the items, then ship the items immediately.", "data":{ } } ``` 验证失败返回list的情况.. ```json { "code": 0, "msg": "cannot be directly purchased for stock up. You must first upload a sales order and pay for the items, then ship the items immediately.", "data": {} } ``` ```json { "code": 0, "msg": "", "data": { "type": "modal", "list": { "randomProducts": [ { "itemCode": "W38416389", "quantity": 0 }, { "itemCode": "W38415785", "quantity": 0 } ], "appointProducts": [ { "itemCode": "W33115875", "quantity": 0, "warehouse": [ "CA24", "CA32", "CA52" ] }, { "itemCode": "W33115870", "quantity": 0, "warehouse": [ "CA2" ] }, { "itemCode": "W33115869", "quantity": 0, "warehouse": [ "CA1", "CA2", "CA4" ] } ] } } } ``` ```