Fetches a specific order by its ID from the API.
This function sends a GET request to the API to retrieve a specific order by its ID. If the request is successful, it returns the order data. In case of an error, it catches the error and logs it, returning void.
getOrderById
The ID of the order to fetch.
The response data from the API, which contains the order, or void if an error occurs.
If there is an error during the request, it is caught and logged.
Fetches a specific order by its ID from the API.
This function sends a GET request to the API to retrieve a specific order by its ID. If the request is successful, it returns the order data. In case of an error, it catches the error and logs it, returning void.
getOrderById