gumroad_create_offer_code
Create offer codes for products by specifying name, discount amount, type, and usage limits to drive sales.
Instructions
Creates a new offer code for a product
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"name": "<name>",
"amount_off": "<amount_off>"
},
"name": "gumroad_create_offer_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name/code of the offer (coupon code used at checkout) | |
| universal | No | Whether this offer applies to all products. Default: false | |
| amount_off | Yes | The amount to discount | |
| offer_type | No | The type of offer (cents or percent). Default: cents | |
| product_id | Yes | The ID of the product this offer applies to | |
| max_purchase_count | No | Maximum number of times this offer can be used |