Step 9: Set up webhooks
Learn how to set up webhooks for fulfillment and for VAT invoicing.
Last updated
{
"types": [
"order.accepted"
],
"address": "<<SF_My_Domain_Name>>/services/apexrest/digitalriverv2/DROFIOrderMgmNotification/",
"apiVersion": "default",
"enabled": true,
"transportType": "OAUTH",
"oauth": {
"tokenEndPoint": "<<SF_OAuth_Access_Token_Endpoint>",
"userName": "<<Fulfillment_User_SF_Username>>",
"password": "<<Fulfillment_User_SF_Password+SecurityToken>>",
"clientID": "<<Fulfillment_ConnectedApp_Client_Id>>",
"clientSecret": "<<Fulfillment_ConnectedApp_Client_Secret>>",
"grantType": "password"
}
}
"types": [
"order.complete"
],
"address": "<<SF_My_Domain_Name>>/services/apexrest/digitalriverv2/DROrderCompleteNotification/",
"apiVersion": "default",
"enabled": true,
"transportType": "OAUTH",
"oauth": {
"tokenEndPoint": "<<SF_OAuth_Access_Token_Endpoint>",
"userName": "<<Fulfillment_User_SF_Username>>",
"password": "<<Fulfillment_User_SF_Password+SecurityToken>>",
"clientID": "<<Fulfillment_ConnectedApp_Client_Id>>",
"clientSecret": "<<Fulfillment_ConnectedApp_Client_Secret>>",
"grantType": "password"
}
} {
"types": [
"order.invoice.created"
],
"address": "<<SF_My_Domain_Name>>/services/apexrest/digitalriverv2/webhooks/",
"apiVersion": "default",
"enabled": true,
"transportType": "OAUTH",
"oauth": {
"tokenEndPoint": "<<SF_OAuth_Access_Token_Endpoint>",
"userName": "<<Fulfillment_User_SF_Username>>",
"password": "<<Fulfillment_User_SF_Password+SecurityToken>>",
"clientID": "<<Fulfillment_ConnectedApp_Client_Id>>",
"clientSecret": "<<Fulfillment_ConnectedApp_Client_Secret>>",
"grantType": "password"
}
}