List orders
Returns a list of all orders with pagination.
Query Parameters
Maximum number of items to return
Default:20
>= 1<= 100
Number of items to skip for pagination
Default:0
>= 0
Response
application/json
Response
Successful operation
Example:{"id":"5fa7b5a7-3a0a-4b8a-8b3a-4b8a5b5a7b5a","items":[{"item_name":"Hot Dog","quantity":2,"condiments":["mustard","relish"]}],"status":"pending","total_amount":10}
Show Child Parameters
Show Child Parameters
Query Parameters
Retrieve order details
Retrieves details of a specific order.
Path Parameters
ID of the order to retrieve
Response
application/json
Response
Successful operation
Order
Unique identifier for the order
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Show Child Parameters
Status of the order
Allowed values:pendingconfirmedcancelledcompleted
Total amount of the order
Path Parameters
Update an order
Updates an existing order.
Path Parameters
ID of the order to update
Body
application/json
Body
OrderRequest
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Show Child Parameters
Response
application/json
Response
Order updated successfully
Order
Unique identifier for the order
Example:{"item_name":"Hot Dog","quantity":1,"condiments":["mustard","ketchup"]}
Show Child Parameters
Status of the order
Allowed values:pendingconfirmedcancelledcompleted
Total amount of the order
Path Parameters
Body
Cancel an order
Cancels an order.
Path Parameters
ID of the order to cancel
Response
Response
Order cancelled successfully
Path Parameters
Process payment for an order
Processes payment for a specific order.
Path Parameters
ID of the order to process payment for
Body
application/json
Body
PaymentInfo
Payment method used
Allowed values:credit_cardpaypalcash
Amount to be paid
Response
application/json
Response
Payment processed successfully
Status of the payment