---
title: Append a discount code to a link
description: Encode a discount code into a registration link to automatically apply a discount when the link is used.
source: intercom
original: https://help.pathwright.com/en/articles/3351439-append-a-discount-code-to-a-link
retrieved: 2026-11-09
visibility: public
date: 2022-12-14
author: /people/pathwright-team.person.md
intercom-id: "3351439"
collection: Sell courses
section: Offer discount codes
---

# Append a discount code to a link

It is possible to append a discount code to a registration link so that when anyone clicks the link, they see the discount automatically applied without having to manually enter the code.

## Use cases

This can be used to....

- Offer a free one-month trial on a monthly subscription plan.
- Automatically provide a discount when someone enrolls as an observer or moderator via shared invite link.
- Award scholarships without the extra friction of entering a code.

## Set up

1. [Create discount codes](./how-discount-codes-work.help.md) with the specifications you'll need for your promo or special discount.
2. Locate the shareable registration link. For a course, use the [shareable invite link](../../add-and-manage-staff-and-members/inviting-people-to-a-course/share.help.md). For a subscription plan, click "Subscribe" on your main menu and copy the URL from your web browser.
3. Add one of the following to the end of the link from step #2 above.\
   /?coupon= (use this in most cases)\
   &coupon= (use this when another /? argument appears earlier in the link)
4. Add the discount code to the end of the link following /?coupon= or &coupon=.

Your final link should look something like these examples...

Link for public subscription plan: [https://youraccount.pathwright.com/subscribe/](https://youraccount.pathwright.com/subscribe/)**?coupon=DISCOUNTCODE**

Shareable registration link for a public course: [https://youraccount.pathwright.com/library/course-name-12345/register/23456/](https://youraccount.pathwright.com/library/course-name-12345/register/23456/)**?coupon=DISCOUNTCODE**

Shareable or single-use registration link for an invite-only course: [https://youraccount.pathwright.com/library/course-name-12345/register/23456/?ic=eyJ0eXAiOiFAKEiLCJhbGciOiJIUzI1NiJ9.eyJpbnZpcodeHlwZSI6MSwic2Nob29sX2lkIjo3ODg4LCJzZW5kZXJfaCODEjU2MjQ4LCJvZmZlcmluSO9pZfakezEzNTYsInJvbGUiOjV9.Q3Ioqdrba8FAKE2iNkpvYVaR7tj2fpI1iLOL5IX0ycM](https://youraccount.pathwright.com/library/course-name-12345/register/23456/)**&coupon=DISCOUNTCODE**
