You can get quick answer of your question by entering here
Why we are getting an error "Ticket Request already done for this TraceId!" in the flight ticket API response?
You hit the "Book" API again with the used TraceID due to which you got this error message. If you get any error in the booking API then you must follow the process from the beginning.