Delete offer code
delete_offer_codePermanently delete a product offer code by providing product and offer code IDs. Requires explicit confirmation before the Gumroad edit action runs.
Instructions
Delete offer code. Reviewed native DELETE /products/:product_id/offer_codes/:id; scope: edit_products. Requires explicit per-call confirmation.
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>",
"offer_code_id": "<offer_code_id>"
},
"name": "delete_offer_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Exact private profile label; never inherited credentials, ownership or scope proof. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| product_id | Yes | Exact opaque provider ID, including native = padding. | |
| offer_code_id | Yes | Exact opaque provider ID, including native = padding. |