This sample webhook consumes order_create events. One event is generated for each new order placed in your store. You may then examine some detail about the order and take action. Alternatively, you could feed each new order to a third party marketing site or add the order to a custom in-house database.

  1. Create your API Key.

  2. Deploy the sample app to digital ocean (or your own cloud provider). We chose Digital Ocean because we’ve worked with some merchants using their service and we had experience with them. And their process is very simple to use. Follow the README to deploy the sample application.

  3. Once you have a working url for your webhook, configure your webhook in the UltraCart back end.

Configure a Webhook


At this point, your webhook should be ready to receive payloads. You can test this out by placing a test order on your website. A simple way to add custom fields to your order is to use the UCEditor page and specify the custom fields in the url. Here’s an example you can modify with your Merchant ID and own Item ID to add a custom field to an order:

http://secure.ultracart.com/cgi-bin/UCEditor?merchantID=DEMO&Add=simple_teapot&CustomField1=HeardFromFriend