---
title: "Referral Program"
description: "Earn credits by referring new users to Miget or writing about it, and transfer them to a workspace to pay its bill."
---
Miget's referral program lets you earn credits when people you refer make purchases on the platform. Credits you earn collect on your account; transfer them to a workspace and they pay its bill.
## How It Works
Every Miget account has a unique referral code. Share it with others, and when they sign up and make purchases, you earn credits.
1. **Share your referral code** - find it in your account settings under the Credits section.
2. **Your referral signs up** - they enter your code during registration or apply it later in their settings.
3. **You earn credits** - every time your referral makes a purchase or their subscription renews, you earn **30% of the purchase subtotal** as credit.
4. **Transfer them to a workspace** - in **Settings → Credits**, move your balance to a workspace where you manage billing. From then on the credits pay that workspace's bill.
Credits are earned on the full subtotal (the price before any discounts), so you always earn based on the base plan price.
## Credits for Posts
You can also earn credits by writing about Miget in public. Each approved post adds **$1.00** to your credit balance, for up to **five approved posts a calendar month**, counted across all platforms together.
1. **Post about what you deployed** on X, Reddit, LinkedIn, Facebook, Mastodon or Bluesky, from your own account.
2. **Submit the link** in **Settings → Credits** with **Submit a post**.
3. **A person reviews it** and replies by email either way. An approved post is credited straight away.
A few rules to keep in mind:
- **You need an active paid subscription** to submit posts.
- **The post has to be public** - it must open for anyone in a logged-out browser, so private groups and followers-only posts do not qualify.
- **Keep the post up for 30 days** after it is approved. Credits for a post that comes down sooner may be reversed.
The full rules, including what each platform expects, are in the [promotion terms](https://miget.com/promotion-terms).
## Transferring Credits to a Workspace
Credits you earn from referrals and posts collect on your account, and pay for nothing there. To spend them, transfer them to a workspace:
- Open **Settings → Credits** from your account menu in the top right, and choose **Transfer here** next to a workspace where you manage billing.
- A transfer moves your **whole balance**, and it **cannot be undone**. The credits then belong to that workspace: they stay with it if its owner or members change, or if you leave it.
- Your balance starts again from zero. Each later amount you earn is a transfer of its own, so it can go to the same workspace or another one.
The Miget team can also add credits straight to a workspace, for example through the [Startup Program](https://miget.com/startup-program). Those credits belong to the workspace from the start and may come with an end date: they are spent before any other credits the workspace holds, and whatever is left of them at the end of that day is removed.
## What Credits Pay For
A workspace's credits pay its bill before your card does:
| What | What happens |
| :--- | :--- |
| [Usage Billing](/pricing/usage-billing) beyond the $5 monthly minimum | Paid from the credits as it is billed, ahead of everything else |
| Subscription payments | What is left comes off each payment, including the first one after a [free trial](/pricing/free-trial) |
| Upgrading part-way through a billing period | Credits pay for the upgrade only once they come to more than the workspace's monthly price, and then as much of it as they reach beyond that price. Otherwise the upgrade is charged in full and the credits wait for the next payment |
Usage Billing is the one thing credits pay for even while a promotional discount is active, since it never goes through the subscription discount at all - it is spent directly against the usage ledger as it is billed. It shows as "Applied to Usage Billing" in the credit history, and the amount applied this cycle is in `credits_applied_in_cents` on `GET /api/v1/workspace/usage` and on the Usage page. A workspace billed by enterprise agreement never spends credits.
## Applying a Referral Code
You can apply a referral code in two ways:
- **During registration** - enter the code in the referral code field on the sign-up form, or use a referral link with `?ref=CODE` appended.
- **After registration** - go to your account settings, navigate to the Credits section, and enter the referral code there.
You can only apply one referral code per account. Once set, the referrer cannot be changed.
## Viewing Your Credits
### Dashboard
**Settings → Credits** shows what is on your account:
- Your current credit balance
- Your referral code to share
- The workspaces you can transfer to, with what each already holds
- A full history of what you earned and transferred
A workspace's **Billing** page shows the workspace's own credits next to the subscription, what of them expires next, its **Next payment** with the credits already taken off, and its credit history.
### API
Your own credits, referral code and history:
```bash
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://app.miget.com/api/v1/users/me/credits
```
A workspace's credits, what of them expires next and the newest operations. This needs the `workspace:billing` permission:
```bash
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://app.miget.com/api/v1/workspace/credits
```
Transferring your whole balance to the workspace, for good, also needs `workspace:billing`. A workspace API token cannot carry that permission, so use a personal token:
```bash
curl -X POST -H "Authorization: Bearer YOUR_PERSONAL_API_TOKEN" \
https://app.miget.com/api/v1/workspace/credits/transfer
```
It answers `422` when there is nothing to transfer, the workspace is on an enterprise plan, or it is suspended for review.
## Payouts
While your balance is still on your account and reaches **$100 or more**, you can ask for a cash payout instead of transferring it. Contact our support team at [support@miget.com](mailto:support@miget.com) or reach out on [Discord](https://miget.com/join-discord).
Payouts are processed manually by the Miget team. Credits you already transferred to a workspace belong to it and cannot be paid out.
## Limitations
- **One referral code per account** - once a referral code is applied, it cannot be changed.
- **One discount per subscription** - if a subscription already has a promotional discount, credits wait until the promotion ends. They are then applied to its next payment automatically. They still pay for Usage Billing in the meantime - see above.
- **A transfer is final** - credits moved to a workspace cannot be moved back to your account or on to another workspace.
## Email Notifications
You receive email notifications when:
- You earn credits from a referral's purchase
- The Miget team adds credits to your account
- Credits are applied to a payment of a workspace you own
- A workspace you own receives credits - from a member's transfer, or from the Miget team when they choose to let you know
You can toggle credit notifications in **Settings → Notifications**.