discounts-and-promotions

discounts-and-promotions is a skill for Claude Code from dodopayments/dodo-agent-plugin. It costs 37 tokens per session (3,292 once invoked), scanned A, a copy of discounts-and-promotions, MIT.

A guide to discount codes and promotional prices in Dodo Payments. It covers percentage and fixed-amount discounts, eligibility rules, usage limits, and discounts that continue through subscription plan changes.

In plain words
What is it for?
Use it to create and manage codes, apply them at checkout or plan changes, validate prices before display, and configure product, customer, date, or subscription-cycle restrictions.
Why use it?
It helps avoid mistakes when validating codes, combining discounts, limiting their use, or preserving them during upgrades and downgrades.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dodopayments plugin — 17 skills, 2 MCP servers shipped together

Good fit Use it to create and manage codes, apply them at checkout or plan changes, validate prices before display, and configure product, customer, date, or subscription-cycle restrictions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dodopayments/dodo-agent-plugin/discounts-and-promotions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dodopayments/dodo-agent-plugin --skill discounts-and-promotions
Clone the repo
git clone --depth 1 https://github.com/dodopayments/dodo-agent-plugin

Made for: Claude Code.

Or install dodopayments, the plugin that ships this one along with the rest of its 17 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discounts-and-promotions

README.md
[![agentmods](https://agentmods.dev/badge/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions/github.svg)](https://agentmods.dev/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions)
Your own site
<a href="https://agentmods.dev/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions"><img src="https://agentmods.dev/badge/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discounts-and-promotions

Your own site · 80×15
<a href="https://agentmods.dev/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions"><img src="https://agentmods.dev/badge/skills/dodopayments/dodo-agent-plugin/discounts-and-promotions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,292 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.03292
Opus 5 $0.00018 $0.01646
Sonnet 5 $0.00007 $0.00658
Haiku 4.5 $0.00004 $0.00329

Measured 11d ago against content hash a527107c2bdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

discounts-and-promotions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to discounts-and-promotions — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/dodopayments/skills/discounts-and-promotions/SKILL.md · 465 lines

How it starts

The opening of the file, as written. The whole thing — 465 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discounts and Promotions

This skill covers discount codes, coupons, and promotional pricing in Dodo Payments. Use it when building discount management, applying codes at checkout, validating codes before showing prices, or handling discounts during subscription plan changes.

When to use this skill

  • Create, update, list, or delete discount codes
  • Apply discount codes at checkout or during plan changes
  • Validate a code before displaying adjusted pricing to the user
  • Configure eligibility rules, usage limits, or subscription-cycle restrictions
  • Handle the subtle semantics of discount preservation during plan upgrades/downgrades
  • Debug why a discount isn't applying or stacking as expected

Core concepts

Discount types: Dodo supports both percentage and flat-amount discounts. Percentage amounts are expressed as integers where 1500 means 15% (100 = 1%). Flat amounts are in the smallest currency unit (cents for USD).

Discount code: A human-readable string (e.g., SUMMER2025) that customers enter at checkout. Codes are case-sensitive.

Eligibility: Discounts can be restricted to specific products, customers, or date ranges. A discount without restrictions applies to any product and any customer.

Stacking: Multiple discount codes can be applied to a single checkout or subscription. They are applied in the order specified in the discount_codes array, up to a maximum of 20 codes.

Subscription-cycle limits: A discount can be configured to apply only for a specific number of billing cycles (e.g., first 3 months only).

Preservation on plan change: When a customer upgrades or downgrades their subscription, the preserve_on_plan_change setting and the discount_codes parameter control whether existing discounts carry forward.

Discount CRUD

Create a discount

import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env.DODO_PAYMENTS_API_KEY,
  environment: 'test_mode',
});

// Percentage discount: 15% off
const percentageDiscount = await client.discounts.create({
  type: 'percentage',
  amount: 1500, // 15%
  code: 'SUMMER2025',
  metadata: {
    campaign: 'summer_promo',
    source: 'email_blast'
  }
});

// Flat discount: $10 off (1000 cents in currency_options)
const flatDiscount = await client.discounts.create({
  type: 'flat',
  amount: 1000,
  currency_options: [{
    currency: 'USD',
    max_amount_possible: 1000,
    is_default: true,
  }],
  code: 'WELCOME10',
});

Read the full file on GitHub · 465 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 465 lines · 37 tokens per session scan A a527107c2bdb

Subscribe to this mod's changes

discounts-and-promotions is a skill published in the GitHub repository dodopayments/dodo-agent-plugin (6 stars, last pushed 4d ago), licensed MIT. It adds 37 tokens to every session and 3,292 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to discounts-and-promotions, differing in 0 lines, and is treated as a copy.