apple_create_iap_offer_code
Create an offer code for consumable, non-consumable, or non-renewing subscription in-app purchases with per-territory prices; look up price points first to set customer eligibility.
Instructions
Create an offer code for a consumable/non-consumable/non-renewing-subscription in-app purchase. Requires per-territory prices — look them up first with apple_get_iap_price_points.
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": {
"iapId": "<iapId>",
"name": "<name>",
"customerEligibilities": "<customerEligibilities>",
"prices": "<prices>"
},
"name": "apple_create_iap_offer_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Internal reference name for the offer code | |
| iapId | Yes | In-App Purchase ID | |
| prices | Yes | Per-territory prices for the offer | |
| customerEligibilities | Yes | Which customers are eligible |