Fix Invoice delete method

Invoice delete method was thowing an error for incorrect url. This was because the value of the id was not being gotten. This is now corrected.