Happy Business Starts Here

Re: Why am I getting "Forbidden (403)" error when I try creating the email templates?

Highlighted
Zuora Support

Why am I getting "Forbidden (403)" error when I try creating the email templates?

Question: I am trying to create the email template using https://www.zuora.com/developer/api-reference/#operation/POST_Create_Email_Template endpoint. But we are getting the "Forbidden (403)" error.

URL: POST: https://rest.zuora.com/notifications/email-templates

Request:

"emailBody": "Test", 
"emailSubject": "Test", 
"eventTypeName": "Test", 
"replyToEmailType": "TenantEmail", 
"name": "Kevin Test", 
"toEmailType": "BillToContact" 
}

Response:
{"message":"Forbidden"}


Answer:
This API works only when "New Notification" feature is enabled for your tenant. Zuora Support has the visibility to confirm if the feature is enabled for your tenant or not. 

 

The list of the event categories for notifications can be found in the below documenation.

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

 

All these notifications are supported with "New Notification" feature. If you experience this issue, please raise a ticket for Zuora Support to confirm the status of this feature on your tenant.






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
Highlighted
Honor Student

Re: Why am I getting "Forbidden (403)" error when I try creating the email templates?

I am still getting message forbidden while trying to get all communication profiles -

method - Get

URL - https://rest.apisandbox.zuora.com/settings/communication-profiles?start=1&limit=20

Provided he Bearer token in Headers.

 

I finally want to get the notification Id for checking the filter condition. But I only got one long way to get it - 

1 . getting all communication profile - the take the id of the required communication profile.

2. get the notifications in that comm. profile.

3. then get the notification id - use this to get notification definition.

 

Kindly suggest to remove the forbidden error and also suggest if any alternate way to get notification id.