latestOpenAPI 3.0.02026-08-0831117.0 KB
d62de4d3b8bd
Orders
Places a new order in the system
post/orders/create
Request body
Example request
{
"business": {
"id": 8
},
"pricing": {
"full_price": 5.5,
"customer_price": 3.2,
"tip": 1.1,
"coupon_id": 12345
},
"user": {
"name": "John Doe",
"email": "johndoe@gmail.com",
"phone": "+13211231223",
"user_id": 12345,
"address": "380 Webster Ave",
"address_line_2": "2A",
"zip": "12345",
"city": "New York",
"country": "US",
"state": "New York"
},
"cart": [
{
"id": 12345,
"quantity": 1,
"comments": "Not spicy please",
"metas": [
{
"name": "Add Dipping Sauce",
"values": [
{
"name": "Blue Cheese Dressing"
}
]
}
]
}
],
"scheduled_date": "2021-10-14 22:38:30.266962"
}Response
Returns the order id of the newly created order.
Example response
{
"code": "ok",
"data": {
"order_id": "ROYALOAK-123456"
}
}