Webhook with custom payload #1739
Unanswered
orjanskaar
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Hi, I've not personally used that plugin, but maybe if I summon @martijnvdbrug he might be able to advise? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@orjanskaar could you create an issue for this here https://github.com/Pinelab-studio/pinelab-vendure-plugins It shouldnt be too hard to implement some kind of strategy pattern so everyone can define his own message body. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I have a working webhook plugin from Pinelab Studio fireing on "StockMovementEvent".
This plugin sends an empty body as stated in their readme.
Is there a way to make a plugin to send with som "useful" information like:
-which variant id has triggered the change in stock
-Balance before change
-Balance after change
etc..
I have looked into the "RequestContext" section of the documentation, but im unsure if that is the correct path and also
unsure if this can provide the information im looking for.
The usecase for this (in my case) is that i have an exterrnal product database (zettle) for sales in a physical store which shares a common product inventory with vendure
With sales in the zettle app i have managed to update stock in vendure as there is the required information in the body of the request (variant id etc), but for sales in my webshop i currently have a no way to update stock in the zettle database
Thank you for any input :)
Beta Was this translation helpful? Give feedback.
All reactions