Pby Paddle
Create a discount
Creates a flat, per-seat or percentage discount, with a code customers can redeem at checkout, and returns the discount.
Description
`description`, `type` and `amount` are required: a `percentage` discount takes 0.01 to 100, while `flat` and `flat_per_seat` take an amount in the currency's lowest denomination plus `currency_code`. Set `code` yourself, or Paddle generates a 10-character code when `enabled_for_checkout` is true. Apply it to a transaction with `discount_id`. On the MCP server, run it with `execute`; a live OAuth connection needs write access first.
create-discount.md
Create a discount
Creates a flat, per-seat or percentage discount, with a code customers can redeem at checkout, and returns the discount.
description, type and amount are required: a percentage discount takes
0.01 to 100, while flat and flat_per_seat take an amount in the currency's
lowest denomination plus currency_code. Set code yourself, or Paddle
generates a 10-character code when enabled_for_checkout is true. Apply it to
a transaction with discount_id. On the MCP server, run it with execute; a
live OAuth connection needs write access first.
Set up
Use the first option your agent supports.
MCP (official, remote)
Add this server to your agent's MCP settings, then sign in when asked.
{ "mcpServers": { "paddle": { "url": "https://mcp.paddle.com/mcp" } } }
Call the MCP tool execute.
Server URL: https://mcp.paddle.com/mcp
API (official)
- Base URL: https://api.paddle.com
- Endpoint:
POST /discounts - Auth: send the header
Authorization: Bearer $PADDLE_API_KEY - Get a key: https://vendors.paddle.com/authentication-v2
- Docs: https://developer.paddle.com/api-reference/about
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.