You can get quick answer of your question by entering here
How to avoid an error "Invalid Result Index" in FareQuote method?
To avoid these type of errors you must send the same value which received from API search response "SrdvIndex" and "ResultIndex" in FareQuote method.