Decode invoice