- 认证中心
- 用户服务
- 商品服务
- 购物车服务
- 订单服务
- 结算服务
- 支付服务
- 智能体
秒杀(下单)
开发中
POST
/api/v1/order/seckill
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
temp_id
integer
必需
userId
integer
必需
userCurrency
string
必需
address
object
必需
street_address
string
必需
city
string
必需
state
string
必需
country
string
必需
zip_code
string
必需
email
string
必需
示例
{
"temp_id": 0,
"userId": 0,
"userCurrency": "string",
"address": {
"street_address": "string",
"city": "string",
"state": "string",
"country": "string",
"zip_code": "string"
},
"email": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/order/seckill' \
--header 'Content-Type: application/json' \
--data-raw '{
"temp_id":0,
"userId": 0,
"userCurrency": "string",
"address": {
"street_address": "string",
"city": "string",
"state": "string",
"country": "string",
"zip_code": "string"
},
"email": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
status
string
必需
order_id
string
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"status": "processing",
"order_id": "1090973696"
}
}
修改于 2025-03-04 11:59:01