- 评论
- souring相关
- 站点->sourcing
- 购物车 -> 购物车
- 个人中心->订单管理
- 产品->详情
- 订单 -> 订单
- 站点->支付方式
- 产品搜索->列表
- 购物车 -> 结算
- 商品详情->激光定制
- 商品定制
- 多买多奖
prepareCheckout
POST
/st-cart/order-check/prepare-checkout
请求参数
Body 参数application/json
skuInfoList
array[object (CartSkuInfoParam) {11}]
可选
cartId
integer
主键
number
integer
用户购买的数量
selected
integer
是否选中了该商品
sku
string
sku
price
number
sku的价格
spu
string
spu
type
integer
类型
weight
number
weight
cartQty
integer
可选
scanToAdd
integer
可选
date
string
可选
prepareUid
string
可选
appCartKey
string
可选
orderNumber
string
可选
currency
string
可选
默认值:
USD
type
integer
可选
isForword
integer
可选
默认值:
0
salesProhibition
boolean
可选
默认值:
false
normalConfirm
integer
可选
默认值:
0
sensorsPublicParam
object (SensorsPublicParam)
神策埋点需要
formerPageUrl
string
前向来源链接
formerFirstLevelPage
string
前向一级页面
visitorTypes
string
新老访客类型
formerModuleId
string
前向模块id
formerMktId
string
前向模块下内容id
currentPageTitle
string
当前页面名称
shipToCountry
string
shipTo国家
spm
string
spm字段
bhvType
string
行为类型
isLogin
boolean
是否登录
pushExternalBatchId
string
可选
filterLabel
integer
过滤标签
checkAddressChange
integer
是否检查地址变更
默认值:
0
applyPreSaleSplit
integer
应用预售拆分
示例
{
"skuInfoList": [
{
"cartId": 0,
"number": 0,
"selected": 0,
"sku": "string",
"price": 0,
"spu": "string",
"type": 0,
"weight": 0,
"cartQty": 0,
"scanToAdd": 0,
"date": "string"
}
],
"prepareUid": "string",
"appCartKey": "string",
"orderNumber": "string",
"currency": "USD",
"type": 0,
"isForword": 0,
"salesProhibition": false,
"normalConfirm": 0,
"sensorsPublicParam": {
"formerPageUrl": "string",
"formerFirstLevelPage": "string",
"visitorTypes": "string",
"formerModuleId": "string",
"formerMktId": "string",
"currentPageTitle": "string",
"shipToCountry": "string",
"spm": "string",
"bhvType": "string",
"isLogin": true,
"pushExternalBatchId": "string"
},
"filterLabel": 0,
"checkAddressChange": 0,
"applyPreSaleSplit": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.nihaocloud.cn/st-cart/order-check/prepare-checkout' \
--header 'Content-Type: application/json' \
--data-raw '{
"skuInfoList": [
{
"cartId": 0,
"number": 0,
"selected": 0,
"sku": "string",
"price": 0,
"spu": "string",
"type": 0,
"weight": 0,
"cartQty": 0,
"scanToAdd": 0,
"date": "string"
}
],
"prepareUid": "string",
"appCartKey": "string",
"orderNumber": "string",
"currency": "USD",
"type": 0,
"isForword": 0,
"salesProhibition": false,
"normalConfirm": 0,
"sensorsPublicParam": {
"formerPageUrl": "string",
"formerFirstLevelPage": "string",
"visitorTypes": "string",
"formerModuleId": "string",
"formerMktId": "string",
"currentPageTitle": "string",
"shipToCountry": "string",
"spm": "string",
"bhvType": "string",
"isLogin": true,
"pushExternalBatchId": "string"
},
"filterLabel": 0,
"checkAddressChange": 0,
"applyPreSaleSplit": 0
}'
返回响应
🟢200成功
application/json
Body
com.nihao.sitecartweb.model.vo.PrepareCheckoutVo
prepareUid
string
可选
outOfStock
integer
可选
默认值:
0
hasAddress
integer
可选
示例
{
"prepareUid": "",
"outOfStock": 0,
"hasAddress": 0
}
修改于 2025-04-11 07:10:58