Happy Business Starts Here

Highlighted
Support SME

Why I'm still getting 401 error even with preemptive auth enabled in my tenant?

I've contacted the support team to have Preemptive auth enabled in my tenant. But I'm still getting 401 error. Why is that?

https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/E_Configure_Callout_Noti...

Screen Shot 2019-07-07 at 10.42.16 PM.png






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Support SME

Re: Why I'm still getting 401 error even with preemptive auth enabled in my tenant?

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:

Get a 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 √