Webhook
Purpose of this building block
With webhooks you can call an arbitrary URL from Ultradox to retrieve data from other services.
You can specify the URL, the request method (POST or GET), the header fields and the authentication method.
When selecting POST method the data model of your Ultradox file that holds all the variables will be sent to this URL in the body of the request in JSON format.
You can create a custom request body instead by simply typing your body into the provided text field. In the body you can use all Ultradox variables and formatting options to exactly specify the format that your server expects.
If the result is provided in valid JSON format, the returned data is available as new variables that can then be used in the subsequent building blocks or in your templates.
Possible use cases
- Call 3rd party services from Ultradox
Configuration
Click on the bold name of the webhook in the building block title to open the configuration dialog.
Useful combinations
Stripe Invoicing (simplified)
The business information of the invoicing company as well as the payment information itself is loaded from Stripe using a web-hook. To load any information via the Stripe API the customers Stripe secret key needs to be entered (not shown in this simplified example).
Once the data is loaded from Stripe the Ultradox flow uses as custom script to calculate the correct VAT depending on the customers country of origin.
The country is also used to find the correct invoice template in the right language.
Each invoice in stripe has a unique identifier. Ultradox generates a unique invoice number based on this identifier.
All information is then used in the templates for the PDF invoice and the outgoing email. Finally the invoice document is send to the customer by email.
Copy the Invoicing For Stripe app to see this building block in action
Questions and Feedback
If you have any comments on this guide, feel free to add them right to the Google document that we are using to create this site.
If you are not yet member of the Ultradox community on Google+, please join now to get updates from our end or to provide feedback, bug reports or discuss with other users.
Last Updated: