ID of the order to update
Update an order
Updates an existing order.
Path Parameters
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
Path Parameters
Body
Condiments
Operations related to available condiments
List available condiments
Returns a list of available condiments.
Query Parameters
Maximum number of items to return
Default:20
>= 1<= 100
Number of items to skip for pagination
Default:0
>= 0
Response
200 application/json
Response
Successful operation
Example:{"id":"3e5f7b9a-1c3e-4b0a-8b3a-4b8a5b5a7b5a","name":"Mustard","description":"Yellow mustard","price":0.5}