And that objectId goes and searches with the api ofobjects/tickets/searchto bring the information and save it in database. The problem is that when this webhook arrives and goes and searches with the api it seems that the ticket does not exist and returns in the query total = 0, I tried putting 7 seconds of wait between the arrival of the webhook and the search and it seems that it worked, as if it was a timing problem. Is there any other way I can do it without setting the timeout?
I am doing webhooks reading to store information regarding tickets and contacts, the way it works is that the payload of the ticket arrives, and that objectId goes and searches with the api of objects/ticket/searchto bring the information and save it in database. The problem is that when this webhook arrives and goes and searches with the api it seems that the ticket does not exist and returns in the query total = 0, I tried putting 7 seconds of wait between the arrival of the webhook and the search and it seems that it worked, as if it was a timing problem. Is there any other way I can do it without setting the timeout?