Orders
Place and manage customer orders.
授权
Authorizationstring必填
Pass your API key as a Bearer token in the Authorization header.
响应
200
An array of orders.
application/json
idinteger · int64可选
Unique order identifier.
petIdinteger · int64可选
The ID of the animal in this order.
quantityinteger可选
Number of units ordered.
shipDatestring · date-time可选
Expected or actual ship date in ISO 8601 format.
completeboolean可选
Whether the order has been fulfilled.
401
Missing or invalid API key.
application/json
get
/store/orders授权
Authorizationstring必填
Pass your API key as a Bearer token in the Authorization header.
路径参数
orderIdinteger · int64必填
The ID of the order to cancel.
响应
204
Order cancelled successfully.
401
Missing or invalid API key.
application/json
404
The requested resource could not be found.
application/json
409
Order cannot be cancelled — it has already shipped.
delete
/store/orders/{orderId}无内容
最后更新于