Step 9: Set up webhooks
Learn how to set up webhooks for fulfillment and for VAT invoicing.
Last updated
Learn how to set up webhooks for fulfillment and for VAT invoicing.
Last updated
Digital River uses webhooks to notify the app when events occur. As part of the fulfillment process, the app looks for two events: order.accepted
and order.complete
.
The order.accepted
event occurs whenever a Digital River order is submitted, and the payment is Authorized (funds are not captured yet).
The order.complete
event occurs whenever an order is both fulfilled and captured (funds are captured).
Follow the steps below to register webhook URLs for your Digital River site so that Digital River can notify the app when the order.accepted
and order.complete
events occur.
You will need the following information before you set up the webhook URLs.
Username of Fulfillment Integration User.
Password of Fulfillment Integration User.
Client Id of Connected App DigitalRiver B2B Fulfillment created in .
Client Secret of Connected App DigitalRiver B2B Fulfillment created in .
Security Token of Fulfillment Integration User.
order.accepted
eventOpen a REST client such as Postman.
Set the HTTP method to POST.
Set the URL as https://api.digitalriver.com/webhooks
.
Set the HTTP body as shown in the following example:
order.complete
eventOpen Postman.
Set the HTTP method to POST.
Set the URL as https://api.digitalriver.com/webhooks.
Set the HTTP body as shown in the following example:
Support for retrieving VAT Invoices is now available within this app.
Sample Webhook registration for the event order.invoice.created
.
A successful request returns a 200 OK response. Once configured, you can see these in the .