ID of the order to retrieve
Retrieve order details
Retrieves details of a specific order.
Path Parameters
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
Path Parameters
Body
Condiments
Operations related to available condiments