Getting Started
Guides
APIs
Sign up
Log in
Search
K
Log in
Sign up
Docs
Toy Store API
Place a new order
post
https://api.toystore.com/v1
/orders
Body
application/json
Order
id
string
required
customerId
string
required
items
array
[object]
required
Show Child Parameters
totalPrice
number
required
Response
201
Order placed successfully
post
/orders
Try It!
Path Parameters
Query Parameters
Headers
Body
Show only required parameters
{ "id": "id", "customerId": "customerId", "items": [ { "toyId": "toyId", "quantity": 0 } ], "totalPrice": 0 }
Shell
201
Get order details
get
https://api.toystore.com/v1
/orders/{orderId}
Path Parameters
orderId
string
required
Response
200
application/json
Order details
Order
id
string
required
customerId
string
required
items
array
[object]
required
Show Child Parameters
totalPrice
number
required
get
/orders/{orderId}
Try It!
Path Parameters
*
orderId
Query Parameters
Headers
Body
Shell
200
application/json
Toy
object
id
string
required
name
string
required
price
number
required
category
string
required
stock
integer
required
Example
Order
object
id
string
required
customerId
string
required
items
array
[object]
required
Show Child Parameters
totalPrice
number
required
Example