# How to construct a webinar registration cancel hyperlink?

**URL:** <https://devforum.zoom.us/t/how-to-construct-a-webinar-registration-cancel-hyperlink/71675>\
**Category:** Webinars\
**Created:** [July 5, 2022, 1:21pm UTC](https://devforum.zoom.us/t/how-to-construct-a-webinar-registration-cancel-hyperlink/71675 "2022-07-05T13:21:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jan/32/38608_2.png) [@jan](https://devforum.zoom.us/u/jan)\
**Post date:** [July 5, 2022, 1:21pm UTC](https://devforum.zoom.us/t/how-to-construct-a-webinar-registration-cancel-hyperlink/71675/1 "2022-07-05T13:21:41Z")

</div>

Hi all,

I’m using the Zoom API via PHP to automatically add a Webinar Registrant. This is working fine:

```auto
class AddWebinarRegistrantListener implements Listener
{
    public function handle(Event $event)
    {
        if ('online' === $event->printer->booking_detail->type) {
            $zoom_helper = IoC::make('ZoomHelper');
            $registrant = $this->createWebinarRegistrant($event->printer);
            $response = $zoom_helper->addWebinarRegistrant(
                $event->printer->booking_detail->webinar_id,
                $registrant
            );

            $event->printer->webinar = $this->storeZoomWebinarResponse($response);
        }
    }
}

```

In another listener class, I create a custom email notification for our visitor, because we don’t want to use the standard email that Zoom sends. For our custom email, I need to construct a “cancel registration” link. I’ve checked a few of the hyperlinks in the Zoom emails, and they all seem to have a different hashcode in the query string params. Is there any way to construct this cancel hyperlink myself?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![john-scott](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@john-scott](https://devforum.zoom.us/u/john-scott)\
**Post date:** [August 19, 2022, 11:03pm UTC](https://devforum.zoom.us/t/how-to-construct-a-webinar-registration-cancel-hyperlink/71675/2 "2022-08-19T23:03:37Z")

</div>

We customize our emails as well and the Cancel link is the only one we cannot recreate in our templates.

The query parameter is the ID of the registrant record, but there is another hash as a path component in the URL which we cannot figure out. Using Django template syntax, we have:

```auto
https://zoom.us/webinar/register/{{ WHAT GOES HERE? }}/success?act=cancel&user_id={{ registrant.id }}

```

The join URL is provided in the registrant data via the API, but Zoom should also include the cancel URL so no guesswork is required.

---

<div class="post-metadata">

**Author:** ![wuijin](https://avatars.discourse-cdn.com/v4/letter/w/ee7513/32.png) [@wuijin](https://devforum.zoom.us/u/wuijin)\
**Post date:** [July 1, 2023, 2:54am UTC](https://devforum.zoom.us/t/how-to-construct-a-webinar-registration-cancel-hyperlink/71675/3 "2023-07-01T02:54:26Z")

</div>

Did you ever figure this out? I am having the exact same problem trying to generate the cancel link. I almost wonder if it wouldn’t be easier to create a page on our site to handle edits and cancellations.
