- 评论
- souring相关
- 站点->sourcing
- 购物车 -> 购物车
- 个人中心->订单管理
- 产品->详情
- 订单 -> 订单
- 站点->支付方式
- 产品搜索->列表
- 购物车 -> 结算
- 商品详情->激光定制
- 商品定制
- 多买多奖
checkout
POST
/st-cart/order-check/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/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.CheckoutVo
customerId
integer
可选
qty
integer
全部有效商品
weight
number
产品重量
vipDiscount
number
vip折扣
originalPrice
number
无任何折扣的总价
discountPrice
number
折后总价
freeShipDiscountPrice
number
免邮商品原价
freeShipLimit
number
免邮门槛
inventoryList
array[object (CartInventoryInfoVo) {8}]
仓库列表信息
type
integer
类型
title
string
标题
delivery_time
integer
到货时间
defaulted
integer
1默认
默认购物车
min_amount
number
最金额
min_amount_currency
string
最小金额货币
count
integer
购物车items数
默认值:
0
notice
string
提示
embargoList
array[integer]
禁运列表
locale
string
仓库地址
orderInfo
object (CheckoutOrderVo)
可选
qty
integer
全部有效商品
weight
number
产品重量
baseVipDiscount
number
vip折扣
vipDiscount
number
可选
baseOriginalPrice
number
订单原价
originalPrice
number
无任何折扣的总价
baseDiscountPrice
number
折后总价
discountPrice
number
折后总价
inventoryList
array[object (CartInventoryInfoVo) {8}]
仓库列表信息
embargoList
array[integer]
禁运列表
默认值:
new HashSet<>()
orderNumber
string
订单编号
customerId
integer
可选
locale
string
仓库地址
couponId
integer
可选
couponCode
string
可选
baseUseCredit
number
可选
useCredit
number
可选
baseCanUseCredit
number
可选
canUseCredit
number
可选
shippingMethodId
integer
可选
baseShipping
number
可选
shipping
number
可选
baseDiscountShipping
number
可选
discountShipping
number
可选
currencyCode
string
可选
currencyRate
number
可选
currencySymbol
string
可选
shippingAddressId
integer
可选
billingAddressId
integer
可选
hasItemChanges
integer
可选
默认值:
0
shippingNametaxTrans
string
物流渠道冗余字段
shippingTypeTrans
string
物流渠道冗余字段
shippingArrivalTime
string
物流渠道冗余字段
shippingMethodName
string
物流渠道名称
vat
string
税号
inventoryType
integer
库存类型
avgTime
integer
可选
freeShipWeight
number
免邮重量
cartList
array[object (CartProductInfoVo) {46}]
app兼容需要这个
cartId
integer
可选
productName
string
产品名称
activityCode
array[integer]
活动编码列表
spu
string
产品spu
url
string
产品网页跳转路径
sku
string
产品sku
suppllyCode
string
供应商编码
image
string
图片路径地址
price
number
商品原价
discountPrice
number
折后价
limitDiscountPrompt
string
限购折扣提示
multipleDiscountPrice
number
折后总价
number
integer
可选
offLimitNumber
integer
可选
折扣限购数量
multipleOffLimitDiscountPrice
number
折扣限购总价
invalid
integer
是否失 效
inventory
integer
产品库存
outOfNum
integer
缺货数
默认值:
0
miniSale
integer
最小起订量
selected
integer
是否选中了该商品
默认值:
0
skuSpec
string
显示sku字段
embargoLabel
integer
禁运标签
embargoLabelVo
object (ProductLabelVo)
可选
isCustomize
boolean
可选
是否定制 true是
isLaserCustomize
boolean
可选
invalidType
integer
产品的失效类型
createdAt
string
可选
updatedAt
string
可选
scanToAdd
integer
可选
multipleWeight
number
多个重量
weight
number
单个重量
inventoryType
integer
库存类型
stockType
integer
商品仓库类型
discount
number
可选
freeShip
integer
是否免邮
默认值:
0
productNameEnUrl
string
商品英文名Url
inventoryShow
integer
是否展示库存
默认值:
0
inventoryPrompt
string
库存 加超提示语
inventoryLimit
integer
是否库存限制
默认值:
0
batchSale
integer
一包多件商品起批量
goodsCode
string
货品spu
goodsSkuCode
string
货品sku
onShareSpu
string
可选
sourceKeyword
string
加购词
sourcePage
string
加购页面
sourceType
string
加购词类型
paypalCurrencyCode
string
可选
shippingStartTime
string
可选
shippingEndTime
string
可选
preSaleShippingStartTime
string
可选
preSaleShippingEndTime
string
可选
finalInventoryType
integer
可选
arActivityOpen
integer
可选
默认值:
0
activityPrompt
string
可选
lastOrderAddressId
integer
最近下单地址ID
lastLogisticsId
integer
最近下单物流ID
freeShipWeight
number
免邮重量
specialLogisticsTag
integer
是否新人专享
默认值:
0
accOrderNum
integer
可选
默认值:
0
worldPayToken
string
可选
notice
string
可选
promotionSummaryList
array[object (PromotionSummaryDTO) {3}]
促销汇总明细
code
enum<integer>
可选
折扣类型 10 单品直降;11 VIP折扣;12 FlashDeal折扣;13 阶梯售价折扣;14 新人专享折扣;20 运费补贴;21 常驻运费折扣;30 订单满减;31 常驻大订单折扣
枚举值:
1011121314151620213031
name
string
折扣类型名称
discountMoney
number
优惠金额
promotionAccess
boolean
促销接入
couponPrompt
string
促单优惠提示
isDomainShip
boolean
可选
默认值:
false
weightExt
number
预售商品重量
preSaleSplitState
integer
可选
labelCombinationList
array[object (LabelProperty) {5}]
标签组合
labelList
array[integer]
可选
默认值:
new HashSet<>()
weight
number
可选
freeShipWeight
number
可选
productPrice
number
可选
weightExt
number
预售商品重量
示例
{
"customerId": 0,
"qty": 0,
"weight": 0.0,
"vipDiscount": 0.0,
"originalPrice": 0.0,
"discountPrice": 0.0,
"inventoryList": [
{
"type": 0,
"title": "",
"delivery_time": 0,
"defaulted": 0,
"min_amount": 0.0,
"min_amount_currency": "",
"count": 0,
"notice": ""
}
],
"embargoList": [
0
],
"locale": "",
"orderInfo": {
"qty": 0,
"weight": 0.0,
"baseVipDiscount": 0.0,
"vipDiscount": 0.0,
"baseOriginalPrice": 0.0,
"originalPrice": 0.0,
"baseDiscountPrice": 0.0,
"discountPrice": 0.0,
"inventoryList": [
{
"type": 0,
"title": "",
"delivery_time": 0,
"defaulted": 0,
"min_amount": 0.0,
"min_amount_currency": "",
"count": 0,
"notice": ""
}
],
"embargoList": [
0
],
"orderNumber": "",
"customerId": 0,
"locale": "",
"couponId": 0,
"couponCode": "",
"baseUseCredit": 0.0,
"useCredit": 0.0,
"baseCanUseCredit": 0.0,
"canUseCredit": 0.0,
"shippingMethodId": 0,
"baseShipping": 0.0,
"shipping": 0.0,
"baseDiscountShipping": 0.0,
"discountShipping": 0.0,
"currencyCode": "",
"currencyRate": 0.0,
"currencySymbol": "",
"shippingAddressId": 0,
"billingAddressId": 0,
"hasItemChanges": 0,
"shippingNametaxTrans": "",
"shippingTypeTrans": "",
"shippingArrivalTime": "",
"shippingMethodName": "",
"vat": "",
"inventoryType": 0,
"avgTime": 0,
"freeShipWeight": 0.0
},
"cartList": [
{
"cartId": 0,
"productName": "",
"activityCode": [
0
],
"spu": "",
"url": "",
"sku": "",
"suppllyCode": "",
"image": "",
"price": 0.0,
"discountPrice": 0.0,
"limitDiscountPrompt": "",
"multipleDiscountPrice": 0.0,
"number": 0,
"offLimitNumber": 0,
"multipleOffLimitDiscountPrice": 0.0,
"invalid": 0,
"inventory": 0,
"outOfNum": 0,
"miniSale": 0,
"selected": 0,
"skuSpec": "",
"embargoLabel": 0,
"embargoLabelVo": {
"icon": "",
"prompt": ""
},
"isCustomize": false,
"invalidType": 0,
"createdAt": "",
"updatedAt": "",
"scanToAdd": 0,
"multipleWeight": 0.0,
"weight": 0.0,
"inventoryType": 0,
"stockType": 0,
"discount": 0.0,
"freeShip": 0,
"productNameEnUrl": "",
"inventoryShow": 0,
"inventoryPrompt": "",
"inventoryLimit": 0,
"batchSale": 0,
"goodsCode": "",
"goodsSkuCode": "",
"onShareSpu": "",
"sourceKeyword": "",
"sourcePage": "",
"sourceType": ""
}
],
"paypalCurrencyCode": "",
"shippingStartTime": "",
"shippingEndTime": "",
"preSaleShippingStartTime": "",
"preSaleShippingEndTime": "",
"finalInventoryType": 0,
"arActivityOpen": 0,
"activityPrompt": "",
"lastOrderAddressId": 0,
"lastLogisticsId": 0,
"freeShipWeight": 0.0,
"specialLogisticsTag": 0,
"accOrderNum": 0,
"worldPayToken": "",
"notice": "",
"promotionSummaryList": [
{
"code": 0,
"name": "",
"discountMoney": 0.0
}
],
"promotionAccess": false,
"couponPrompt": "",
"isDomainShip": false,
"preSaleWeight": 0.0,
"preSaleSplitState": 0,
"labelCombinationList": [
{
"labelList": [
0
],
"weight": 0.0,
"freeShipWeight": 0.0,
"productPrice": 0.0
}
]
}
修改于 2025-04-11 07:10:58