less than a minute read • Updated an hour ago
Create a transaction webhook
How to create a transaction webhook, choose which resource to subscribe to, and save it.
Transaction webhooks are created from the “Integrations” section of your store’s administration.
Steps
Saving sends a GET request to your endpoint to confirm the URL is valid. Your endpoint must be able to accept GET requests for the save to complete.
Notes
All events for the subscribed resource are sent to your endpoint — filter for the specific events you care about rather than assuming only one event type will ever arrive. You can confirm which event triggered a given payload using the
Foxy-Webhook-Eventheader.If you sell subscriptions: subscriptions can start in the future, resulting in a $0 initial transaction, and subscription modifications can also result in $0 transactions. Account for this in your endpoint logic.