Webhook automation loop problem

New Member
1 0 0

Hello all,


I use webhooks("ORDERS/CREATE" and "ORDERS/PAID") for saving orders in DB via flask API call. It worked good but I recently added a function call that is linked to Tezos blockchain. The call basically mints an NFT and transfers it to user wallet which takes about 2 minutes. This call is before the return response from the API. Since shopify does not get the return response in its designated window it basically keeps spamming the same webhook and now I am stuck in a loop where I have multiple entries of the same order.

Is there a way I can add a delay to the webhook return window until the service is done with the order or if I can have a workaround it so that I do not have to process the order manually when the order is created.


Thank you. 



Replies 0 (0)