- 认证中心
- 用户服务
- 商品服务
- 购物车服务
- 订单服务
- 结算服务
- 支付服务
- 智能体
确认订单
开发中
GET
/api/v1/checkout/preview
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/checkout/preview' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object (OrderConfirm)
必需
orderId
string
必需
userId
integer
必需
userCurrency
string
必需
consignee
object (Consignee)
必需
status
string
必需
orderItems
array[object (OrderItem) {5}]
必需
total
number
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"orderId": "string",
"userId": 0,
"userCurrency": "string",
"consignee": {
"email": "string",
"streetAddress": "string",
"state": "string",
"country": "string",
"zipCode": 0
},
"status": "string",
"orderItems": [
{
"id": 0,
"productId": 0,
"orderId": 0,
"quantity": 0,
"cost": 0
}
],
"total": 0
}
}
修改于 2025-02-21 08:19:35