List offer codes
list_offer_codesRetrieve offer codes for a specific Gumroad product using its product ID, so you can review active discounts and promotions before taking action.
Instructions
List offer codes. Reviewed native GET /products/:product_id/offer_codes; scope: edit_products. Read only; no local effect approval required.
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": "list_offer_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Exact private profile label; never inherited credentials, ownership or scope proof. | |
| product_id | Yes | Exact opaque provider ID, including native = padding. |