- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
I've contacted the support team to have Preemptive auth enabled in my tenant. But I'm still getting 401 error. Why is that?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
After the Preemptive Auth feature has been enabled at the tenant level, you will still need to update the definition of your notifications to make it enabled for the callout you'd like it to work under the preemptive way. Currently, this could only be done through API.
Here is the API request to query notification definition:
Here is the API request to update the notification definition:
Update a notification definition
Here is an example of how to update the preemptive field to true for a notification definition:
PUT https://rest.apisandbox.zuora.com/notifications/notification-definitions/14699b88afa012345678a1ebd021b4d3 { "callout": { "calloutAuth": { "preemptive": true, "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "username": "xxxx.xxxx@xxxxxx.xxx" } } }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
After the Preemptive Auth feature has been enabled at the tenant level, you will still need to update the definition of your notifications to make it enabled for the callout you'd like it to work under the preemptive way. Currently, this could only be done through API.
Here is the API request to query notification definition:
Here is the API request to update the notification definition:
Update a notification definition
Here is an example of how to update the preemptive field to true for a notification definition:
PUT https://rest.apisandbox.zuora.com/notifications/notification-definitions/14699b88afa012345678a1ebd021b4d3 { "callout": { "calloutAuth": { "preemptive": true, "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "username": "xxxx.xxxx@xxxxxx.xxx" } } }
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Why I'm still getting 401 error even with preemptive auth enabled in my tenant?
Could you please have this updated in KC article? https://knowledgecenter.zuora.com/Central_Platform/Notifications/E_Configure_Callout_Notifications#M...