Fetches a specific invoice from the API by its ID.
This function retrieves a JWT token from SecureStore and uses it to authenticate a GET
request to the API. The request fetches a specific invoice by its ID and returns the response
data. If an error occurs during the request, it is caught and logged. In the case of an
error, the function returns void.
Fetches a specific invoice from the API by its ID.
This function retrieves a JWT token from SecureStore and uses it to authenticate a GET request to the API. The request fetches a specific invoice by its ID and returns the response data. If an error occurs during the request, it is caught and logged. In the case of an error, the function returns void.
getInvoiceById