M
M
mapleart22021-11-09 15:55:09
PHP
mapleart2, 2021-11-09 15:55:09

How to cut off a duplicate request when receiving a webhook from api?

Hello! I use outgoing web hooks from Bitrix24. I get the transaction fields, and write them down in Google spreadsheets. If the deal ID was recorded, then I update the line.

But I ran into such a problem, the hook works twice (BP starts another transaction change), and it turns out that the records are duplicated. Prompt simple variant how to cut off the second request? It is desirable the most primitive, I cannot use a DB and crowns.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2021-11-09
@Immortal_pony

Well, write the id-shniks of the processed webhooks to the file. Or per session

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question