Set up the cancel subscription notification
Learn how to set up and configure the Cancel Subscription notification, including updating properties and callout templates.
- Navigate to Extension Studio > Events & Notifications in the left navigation menu.
- Locate the notification for the Cancel Subscription notification (make sure it has "Related Event: Order Action Processed"), and click the Edit icon. The Edit Notification Definition page opens.
- Update the following properties:
- Basic Information: Toggle to enable the Active field.
- Event Parameters > Type: Select CancelSubscription.
- Delivery Options: Select the checkbox for the Callout delivery type and select a callout template from the dropdown list.
- Click Save.
- Click the Callout Templates tab and locate the callout template for the Cancel Subscription event you selected in step 3.
- Click Edit.
- Update the following information:
- HTTP Method: POST
- Request URL: "https://<yourdomain>/plugins/public/zuora-billing/subscriptionCancel"
- Request Body: Click Add Parameter, then specify the Parameter Name field as accountId and select Account.ID for the Parameter Value field. Note the lowercase "a" and lowercase "d" at the start and end of accountId.
- Request Authentication:
- Select Username/Password from the Authentication Type list, then specify the Username, Password and Domain fields. (You'll also need to add these values to Zephr later; choose a strong password, for example a randomly generated UUIDv4.) Note: You can specify any string value for the Domain field. But you must use the same value here for all the notifications set up for the integration, and the same value must also be specified for the Realm field on the Zephr side later.
- Check the Enable Preemptive Authentication checkbox.
- Click Save.