How do I integrate Opensend with a custom webhook?

Prerequisites: 

To integrate Opensend with Custom webhook you will need:

  1. Webhook method
  2. Authorization (If it's required)
  3. Webhook URL

Steps to integrate:

  1. Go to integrations tab on Opensend Dashboard
  2. Open Custom Webhook tab
  3. Select Webhook method (POST)
  4. Add Authorization details (header and key - If they are required)
  5. Under the fields dropdown select any default fields from Opensend and any custom fields, you want to send to Custom Webhook
  6. Add the the Custom Webhook URL and press Send a test request button

  7. In the popup add the email address to send as a test to Custom Webhook and Press Send

  8. You should be able to find the test request sent to your Webhook URL with test email, custom fields and authorization details in "headers".
    1. With the test request you can see what data Opensend data is sending and map the data accordingly on your end
  9. Press Done to close the Popup
  10. Finally, Press the “Submit” button

  11. Make sure the Custom Webhook toggle on top is enabled in order for the integration to work
  12. Request Data format:
    1. For DTC: In case of DTC product, on the right side you should be able to see Example request data

    2. For B2B: In case of B2B product, on the right side you should be able to see Example request data and JavaScript example code you can use to post data on your end