Create subscription availability
create-subscription-availabilitySet the territories where a subscription is available. Call before adding a price to avoid 409 relationship errors.
Instructions
Set which territories the subscription is available in. Call this before create-subscription-price; otherwise adding a price often returns 409 ENTITY_ERROR.RELATIONSHIP.INVALID.
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": {
"subscriptionId": "<subscriptionId>",
"territoryIds": "<territoryIds>"
},
"name": "create-subscription-availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| territoryIds | Yes | Territory ID(s) where the subscription is for sale (e.g. USA). Use list-territories to get IDs. Required before adding prices with create-subscription-price. | |
| subscriptionId | Yes | Subscription ID (from create-subscription or list-subscription-group-subscriptions) | |
| availableInNewTerritories | No | If true, the subscription becomes available in new territories Apple adds in the future. Default true. |