Changing the order of the WebHook Response and Processing #99
Unanswered
TheDoctorD
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would be the best way to accomplish this?
I have overridden the webhook_response, signature_validator and process_webhook_job to customize those.
Our advertising group is going to post new user data to our spatie webhook.
We want to be able to pass back to them in the response the new user's Id. But it isn't available on the response because it doesn't get processed until after that. What would you do to have that available? Create a second webhook that they can call afterwards to get a user Id? or maybe create the user before the response? Call the same webhook twice, on the second call the user Id would be available? I'm at a loss.
as I understand it the flow is like this..
#1. Post to Webhook
#2. Validate Signature. isValid
#3. Send Response. respondToValidWebhook
#4. Webhook Processed from Queue. ProcessWebhookJob
Beta Was this translation helpful? Give feedback.
All reactions