下单购买宠物
正式环境
正式环境
POST
/store/order
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apifoxmock.com/m1/4997831-4656773-default/store/order' \
--header 'Content-Type: application/json' \
--data-raw '{
"ordertime": "string",
"userid": "string",
"cart": [
{
"id": 0,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available",
"createTime": "string",
"location": {
"province": "string",
"city": "string",
"district": "string"
}
}
]
}'
响应示例响应示例
200 - 示例 1
{
"id": 0,
"petId": 0,
"quantity": 0,
"shipDate": "2019-08-24T14:15:22Z",
"status": "placed",
"complete": false,
"user": {
"id": 0,
"gender": "string",
"username": "string",
"email": "string",
"phone": "string",
"status": "normal",
"createdAt": "string",
"age": 0,
"birthday": "string",
"registerIp": "string",
"isVip": true,
"avatar": "string",
"city": "string",
"img": "string"
}
}
请求参数
Body 参数application/json
返回响应
修改于 2024-11-04 06:07:21