# Affiliate Codes: How They Work and How to Share Them

> How affiliate codes differ from links, how a code is credited to you, where to get one, where to share it, how to disclose it and how to track redemptions.

Type: How-to · Updated: 2026-11-14 · Written by [Karim Radwan](https://automationtoolsforcreators.com/authors/karim-radwan) · Reviewed by [Shatla.io Team](https://automationtoolsforcreators.com/shatla-io-team) · Topic: [Ways to earn](https://automationtoolsforcreators.com/topics/make-money) · Canonical: https://automationtoolsforcreators.com/affiliate-codes

## Short answer

An affiliate code is a discount or promo code tied to you. The buyer types it at checkout, the order records the code, and the brand pays you a commission on that order. Codes work where links cannot be tapped, such as spoken in a video, so most creators share a code and a link together.

## Key takeaways

- A code is credited when the buyer enters it at checkout, so it works without a click [1].
- On Shopify Collabs, every purchase made with your link or your discount code can earn you commission [2].
- Refunded orders cancel the commission, so count only approved orders when you track [2].
- Disclose a code like any paid link: Instagram asks for the Paid Partnership label when you are paid in any form [6].

## What is an affiliate code, and how is it different from a link?

Both credit a sale to you. A link does it through a click and a tracking ID; a code does it when the buyer types it at checkout, usually in return for a discount.

| | Affiliate link | Affiliate code |
| --- | --- | --- |
| How the sale is credited | Your ID in the link, stored after the click | The code entered at checkout [1] |
| Needs a click | Yes | No |
| Works when spoken or on screen | Only if people can tap it | Yes, people can remember it |
| Gives the buyer something | Not usually | Usually a discount the brand sets |
| Risk | Lost if a tool strips the ID | Copied to coupon sites and used by strangers |

Many programs give you both: Shopify Collabs creators can share an affiliate link or a discount code [2], and impact.com tracks links and promo codes in the same reports [4]. How links are built is in our guide to [affiliate links](/affiliate-links).

## Step by step

1. **Get a code from the brand or network.** Ask a brand you already promote for a personal code, or take one from your network's offers [3] [4].
2. **Pick a clear code name.** Keep it short, without special characters [1], and ask for one code per channel if the brand allows it.
3. **Read the code terms.** Note the discount, the end date, the commission, the holding period and what happens with refunds [2].
4. **Write the caption with a disclosure.** Open with "Affiliate code: I earn a commission if you use it", then the product, the code and the end date.
5. **Share it in every place people look.** Bio, stories, captions, a pinned comment and spoken in the video, next to your link where the platform allows one.
6. **Track uses and approved orders.** Each month, compare uses, refunds and commission per code from the brand's or network's report [1] [4].
7. **Replace leaked or expired codes.** If uses jump without a post, or the code expires, ask for a new one and update every place you shared it.

## How does code attribution work?

The brand creates a code that belongs to you. When a buyer enters it at checkout, the order records the code, and the brand pays you on that order once it is past the return period.

1. The brand creates a code in its store or its network and assigns it to you.
2. A buyer types the code at checkout to get the discount [1].
3. The order is saved with the code, and the brand's report counts each use [1].
4. The commission waits as pending. On Shopify Collabs the merchant sets that holding period, between 1 and 90 days [2].
5. If the order is cancelled or fully refunded in that period, the commission is cancelled [2].

Some networks track codes with no link involved at all; Rakuten Advertising calls this Linkless Code tracking [5]. If a buyer uses another creator's link and your code, the program's rules decide who is paid. Ask the brand before you start, and get the answer in writing.

## Where do you get an affiliate code?

From the brand or from the network that runs its program. Ask brands you already work with, and look in your network dashboard for code offers.

- **The brand directly.** If you already have an affiliate link with a brand, ask for a personal code as well.
- **Networks.** Awin's Offers section gives you discount codes from brands to share with your audience [3]. impact.com lets you share promo codes for the programs you join [4].
- **Shopify Collabs.** Brands can send creators discount codes, but Collabs is not accepting new creator signups at the moment [2].

Which programs to join first is covered in our list of [affiliate programs for creators](/affiliate-programs).

### How to pick the code name

- Short, easy to say and spell: your name plus a word, such as MAYA or MAYAKIT.
- No special characters. Shopify warns they can break the code when it is added to a checkout address [1].
- One code per channel if the brand allows it, such as MAYAYT and MAYAIG, so you see which channel sells.

## How do you share an affiliate code?

Put it everywhere people might look for it later: bio, stories, captions, pinned comments and spoken in the video. Pair it with a link where the platform allows one.

| Place | How | Tip |
| --- | --- | --- |
| Bio | "Code MAYA = discount at Brand" | Keep it next to your link; see [bio ideas](/instagram-bio-ideas) |
| Stories | Code in large text, on screen for a few seconds | Repeat it in the last frame |
| Captions | First line, before "more" | Add the disclosure in the same line |
| Comments | Pin a comment with the code | Answers "what was the code?" for everyone |
| Video | Say it and show it on screen | Spell it once if it is unusual |
| Link page | Code under each product it works for | Add when it expires |

### Fill-in caption with your code

`Affiliate code: I earn a commission if you use it. I have used [product] for [time] to [result you can show]. Use [CODE] at checkout for [discount the brand gives] until [end date]. Questions? Ask in the comments.`

Swap the brackets for your details, and keep the first sentence as the disclosure.

## How do you disclose an affiliate code?

Exactly like a paid link: in plain words, before people use the code, plus the platform's label where it applies.

- **Instagram.** Instagram asks you to add the Paid Partnership label when you are paid in any form for your content [6].
- **YouTube.** If a video includes branded content, sponsorships or endorsements, select paid promotion in the video details, which adds a label [7].
- **Your words.** "Affiliate code: I earn a commission if you use it." Put it in the caption's first line and say it in the video.

A discount for your audience does not replace the disclosure. People need to know you are paid, not only that they save.

Never promise people a reward for using your code. Amazon Associates, for example, bans offering any reward or incentive for using your links [8], and many brands have similar rules for codes.

## How do you track code redemptions?

Use the brand's or the network's report, and keep your own monthly sheet of uses, approved orders and commission per code.

Where the numbers come from:

- **Shopify stores** can see how often each discount code is used in a report [1]; ask the brand for yours.
- **impact.com** reports conversions, revenue and average order value by affiliate link and promo code [4].
- **CJ** lets publishers analyse performance by coupon or promo code [9].

### Worked example

These are example numbers, not a result anyone got:

- Your code MAYAIG is used 18 times this month.
- 1 of those orders is refunded, so 17 stay.
- The average order is 50 in your currency.
- The brand pays 10 in every 100 of the order value.

17 × 50 = 850 in sales, and 850 × 10 ÷ 100 = 85 in your currency. If your YouTube code sold 6 orders in the same month, you know where the next post goes.

If uses jump with no post from you, the code may have leaked to coupon sites. Ask the brand for a new code and retire the old one.

## Do it in Shatla.io

Give people one place to find your code and your links: a Shatla.io store page with a free guide, and a comment automation that sends the link when someone comments your keyword.

Comment replies work on Instagram and Facebook Pages through Meta's official API, inside Meta's 24-hour messaging window, with up to 10 keywords; matching ignores capitals. On Instagram the link is a button, and on a Facebook Page the link goes in the message text. On TikTok, Shatla.io posts public replies under comments only, with no links. The Free plan collects up to 2,000 leads [10]; see [Shatla.io link in bio](https://shatla.io/link-in-bio?utm_source=atfc&utm_medium=hub&utm_campaign=affiliate-codes) and [the Free plan and paid plans](https://shatla.io/pricing?utm_source=atfc&utm_medium=hub&utm_campaign=affiliate-codes).

Checked against the Shatla.io product on 12 November 2026. The screenshots come from the Shatla.io screenshot library: a placeholder store shown in the real app, with example names and numbers, not a customer ([how we check](/shatla-io-team)).

1. Open My Store, add your photo and a short line about who you help, and pick one of the 15 themes under Appearance.

   ![A link-in-bio store made with Shatla.io: profile, a free guide, a course, a 1:1 call and a bundle. Example account and example numbers.](https://automationtoolsforcreators.com/api/media/file/shot-en-store-page-desktop.webp)

2. Add a free guide as the first item, such as your picks with their codes. Visitors leave their name and email to get it, and each one is saved in Customers.

   ![A free lead magnet page in a Shatla.io store: the visitor leaves a name and email to get the guide. Example account and example numbers.](https://automationtoolsforcreators.com/api/media/file/shot-en-digital-products-lead-page-desktop.webp)

3. Create a comment automation: pick the post, add your keyword, and write the message with a link button (on Instagram).

   ![The comment-to-DM automation editor in Shatla.io: a chosen reel, the keyword GUIDE, the opening DM with a "Send it" button, a follow-first step and a live preview of the conversation. Example account and example numbers.](https://automationtoolsforcreators.com/api/media/file/shot-en-comment-to-dm-editor-desktop.webp)

4. Test it with a second account, then watch runs, link clicks and failed messages in the Automations list. The Live switch stops it.

   ![The automations list in Shatla.io with runs, link clicks, click-through rate and failed messages for each automation. Example account and example numbers.](https://automationtoolsforcreators.com/api/media/file/shot-en-tracked-links-automations-desktop.webp)


See how Shatla.io's [creator store](https://shatla.io/creator-store?utm_source=atfc&utm_medium=hub&utm_campaign=affiliate-codes) works.

[The full guide on Shatla.io](https://shatla.io/guides/store?utm_source=atfc&utm_medium=hub&utm_campaign=affiliate-codes)

## Frequently asked questions

### What is an affiliate promo code?

A promo code assigned to you by a brand. Buyers enter it at checkout for a discount, and the order is credited to you, so you earn a commission on it [1] [2].

### Is a coupon affiliate the same as a creator with a code?

No. A coupon affiliate is usually a coupon website that lists codes for many brands. A creator code belongs to one person, and the brand pays that person when it is used.

### Can I use an affiliate code and a link together?

Yes, and it often works best. Shopify Collabs credits purchases made with either your link or your code [2]. Ask each brand how it credits an order that has both.

### Do I have to disclose a discount code?

Yes. A code that earns you money is a paid relationship. Instagram asks for the Paid Partnership label when you are paid in any form [6], and YouTube asks you to mark paid promotion [7].

## What changes (2026-11)

Checked on 2026-11-14: how Shopify records discount codes, Shopify Collabs' holding period and refund rule, and the code tools of Awin, impact.com, Rakuten Advertising and CJ [1] [2] [3] [4] [5] [9]. We re-check each program's code terms before the review date.

Next review by 2027-02-14.

## Sources

1. [Discount codes](https://help.shopify.com/en/manual/discounts/discount-methods/discount-codes), Shopify Help Center, accessed 2026-11-14
2. [Getting paid for commissions on Shopify Collabs](https://help.shopify.com/en/manual/promoting-marketing/collabs/creators/payments), Shopify Help Center, accessed 2026-11-14
3. [Influencer and content creator affiliate programs](https://www.awin.com/gb/publishers/content-creator-influencer), Awin, accessed 2026-11-14
4. [Creator partners](https://impact.com/partners/influencer-partners/), impact.com, accessed 2026-11-14
5. [Rakuten Advertising for publishers](https://rakutenadvertising.com/publishers/), Rakuten Advertising, accessed 2026-11-14
6. [Partner with brands and earn](https://creators.instagram.com/earn-money/branded-content), Instagram for Creators, accessed 2026-11-14
7. [Add branded content restrictions & disclosure labels](https://support.google.com/youtube/answer/154235), YouTube Help, accessed 2026-11-14
8. [Associates Central Help: application review and rejection reasons](https://affiliate-program.amazon.com/help/node/topic/G8TW5AE9XL2VX9VM), Amazon Associates, accessed 2026-11-14
9. [CJ for publishers](https://www.cj.com/publisher), CJ, accessed 2026-11-14
10. [Shatla.io pricing](https://shatla.io/pricing), Shatla.io, accessed 2026-11-14

## Next steps

- Learn: [Affiliate links: how to create and share them](https://automationtoolsforcreators.com/affiliate-links)
- Try a free tool: [Instagram engagement rate calculator](https://automationtoolsforcreators.com/instagram-engagement-rate-calculator)
- Start on Shatla.io: [Start free on Shatla.io](https://shatla.io/creator-store?utm_source=atfc&utm_medium=hub&utm_campaign=affiliate-codes)
  The Free plan is free forever, no card needed. [See the price in your country](https://shatla.io/pricing)

---

Source: Automation Tools for Creators, https://automationtoolsforcreators.com/affiliate-codes
