# 讓使用者按月支付 12 個月的訂閱

> 讓 Agent 為你的年度方案開啟 Apple 的「按月付款（承諾 12 個月）」選項：選擇月付價格和國家或地區，查看在哪裡已開啟，並再次關閉。

Source: https://air.build/tw/docs/app-store/offer-a-monthly-plan-with-a-yearly-commitment/

年度方案通常是每年預先付款一次。Apple 的「按月付款（承諾 12 個月）」選項讓訂閱者可以按月分期支付同一個年度方案，並承諾支付 12 期。Apple 在 [Set availability for an auto-renewable subscription](https://developer.apple.com/help/app-store-connect/manage-subscriptions/set-availability-for-an-auto-renewable-subscription) 中有說明。Agent 可以依你選擇的月付價格和國家或地區，為你的年度方案開啟這個選項。

> [!NOTE]
> AirBuild 沒有用於此操作的控制項：**App 內購買項目** 分頁上的 **價格與商店** 用於設定方案的價格，不會顯示月付選項。你在專案的聊天中詢問 Agent，它會使用 `asc subscriptions pricing monthly-commitment`（列在 [asc：App 內購買與訂閱](https://air.build/tw/docs/cli/asc-monetization/#subscriptions) 的 `subscriptions` 下）。它的說明將它描述為「Manage Monthly with 12-Month Commitment subscription availability.」

## 提出要求之前

- 一個年度方案。說明中寫道「The subscription must use subscriptionPeriod ONE_YEAR」：也就是 **時長** 為 **1 年** 的方案。要建立一個，請參閱[販售 App 內購買項目與訂閱](https://air.build/tw/docs/app-store/sell-in-app/#sell-a-subscription)。
- 每個國家或地區都有預付價格。說明中寫道「Each eligible territory must already have an UPFRONT subscription price」：在你想提供月付選項的每個國家或地區，年度方案都必須已設定價格。
- 不包括美國。說明中寫道「USA is excluded by Apple.」關於 Apple 提供此選項的其他國家或地區、裝置和 App 建置版本，請參閱 Apple 的[頁面](https://developer.apple.com/help/app-store-connect/manage-subscriptions/set-availability-for-an-auto-renewable-subscription)。

## 選擇月付價格

說明中寫道，此指令會檢查「that the 12-payment total is at least the upfront annual price and no more than 1.5x the upfront annual price」。對於價格為 49.99 歐元的年度方案，12 期付款的總額必須介於 49.99 到約 74.99 之間，所以月付價格大約介於 4.17 到 6.24 歐元之間。以每月 4.99 計算，12 期付款共 59.88。

月付價格必須是 Apple 在每個國家或地區提供的價格之一。此指令只接受一個金額，並以各國家或地區自己的貨幣，把它用於你指定的每個國家或地區，以及月付選項已開啟的每個國家或地區。所以只把它用於一種貨幣，例如德國、法國和義大利，每月 4.99 歐元。對於使用其他貨幣的國家或地區，請參閱下方的常見問題。

## 提出要求

在專案的聊天中詢問，例如：

```text
Let people pay for Premium Yearly monthly with a 12-month commitment in Germany, France and Italy, at 4.99 euros a month.
```

1. Agent 會告訴你它即將開啟什麼：方案、月付價格和國家或地區。此指令需要 `--confirm`，所以 Agent 會先詢問你。
2. 你同意後，它會執行 `asc subscriptions pricing monthly-commitment enable`，帶上方案、`--price 4.99`、`--price-territory`（其中一個國家或地區，用來與當地的年度價格比較）和 `--territories "Germany,France,Italy"`。
3. 在做任何變更之前，此指令會檢查方案是否為年度方案、每個國家或地區是否有預付價格，以及每個國家或地區的 12 期月付是否落在上述範圍內。
4. 它在這些國家或地區開啟月付選項，並在當地設定月付價格。Agent 會告訴你結果。

### 從某個日期開始

要讓月付價格晚一點開始，請給一個日期，例如「從 3 月 1 日開始」。日期必須在今天之後。說明中寫道，帶日期時「Plan availability still changes immediately」：國家或地區會立即開啟，月付價格則從該日期開始生效。

### 之後變更月付價格

用新價格再提一次要求，例如「把 Premium Yearly 的月付選項改為 5.49 歐元。」新價格會用於月付選項已開啟的每個國家或地區，而不只是你指定的那些。說明中寫道：「already priced at --price on that date is skipped」，也就是在該日期已是這個價格的國家或地區會被略過。請說明已經按月付款的使用者是否保留原價：此指令接受 `--preserved`，即「Preserve current prices for existing subscribers.」

## 查看在哪裡已開啟

例如，詢問：

```text
Where can people pay Premium Yearly monthly, and at what price?
```

Agent 會用 `asc subscriptions pricing monthly-commitment list` 讀取方案的計費選項，它會在預付選項（`UPFRONT`）旁顯示月付選項（`MONTHLY`），並用 `asc subscriptions pricing plan-availability show` 讀取每個選項的國家或地區。各國家或地區的月付價格，它會使用 `asc subscriptions pricing prices list --plan-type MONTHLY`。

## 在部分國家或地區關閉

例如，詢問「在義大利停止為 Premium Yearly 提供月付選項。」Agent 會對你指定的國家或地區執行 `asc subscriptions pricing monthly-commitment disable`。它需要 `--confirm`，所以 Agent 會先詢問你。其他國家或地區仍保留月付選項。關於已經按月付款的使用者會怎樣，請參閱 Apple 的[頁面](https://developer.apple.com/help/app-store-connect/manage-subscriptions/set-availability-for-an-auto-renewable-subscription)。

## 檢查你的 App

這個選項是在 Apple 那邊設定的。本頁不涵蓋你的 App 程式碼需要做什麼才能在訂閱畫面上顯示月付選項，也不涵蓋 Apple 要求哪些 App 建置版本：Apple 的[頁面](https://developer.apple.com/help/app-store-connect/manage-subscriptions/set-availability-for-an-auto-renewable-subscription)列出了這些內容。詢問 Agent，例如：

```text
Premium Yearly can now be paid monthly with a 12-month commitment in Germany, France and Italy. Check that our subscription screen shows that option, and fix it if it doesn't.
```

## 常見問題

**Agent 說方案必須是 ONE_YEAR 訂閱。**

月付選項只適用於年度方案。選擇 **時長** 為 **1 年** 的方案，或建立一個。

**Agent 說月付承諾總額超出允許範圍。**

至少在一個國家或地區，以該價格付 12 期的總額低於年度價格，或高於年度價格的 1.5 倍。訊息中會提供範圍。請在範圍內選擇月付價格。如果該國家或地區使用其他貨幣，請為它另外設定價格（見下方）。

**Agent 說某些國家或地區缺少目前的 UPFRONT 訂閱價格。**

年度方案在當地沒有預付價格。請先在這些國家或地區為它定價或開始販售：請參閱[變更訂閱方案的價格](https://air.build/tw/docs/app-store/raise-your-subscription-price/)。

**Agent 說美國不提供月付承諾計費。**

美國會從列表中移除，其他國家或地區照常進行。如果它是唯一的國家，就不會有任何變更。

**Agent 說找不到與該價格相符的價格點。**

該金額不是 Apple 在那個國家或地區貨幣中提供的價格之一。請 Agent 告訴你當地最接近的價格，或為那個國家或地區另外設定價格。

**使用不同貨幣的國家或地區可以有各自的月付價格嗎？**

可以。`enable` 一次只接受一個金額，所以 Agent 會另外設定其他國家或地區：它用 `asc subscriptions pricing plan-availability set --plan-type MONTHLY` 設定月付選項的完整國家或地區列表（已開啟的加上新的），並用 `asc subscriptions pricing prices set --plan-type MONTHLY` 設定每一個的價格，說明中寫道這個指令「sets a Monthly with 12-Month Commitment price」。`plan-availability set` 需要 `--confirm`，所以 Agent 會先詢問你。請告訴它每種貨幣的價格。

**Agent 說方案的銷售範圍已就緒，但月付價格設定失敗。**

國家或地區已開啟，但並非所有月付價格都已設定。請 Agent 用同一價格再執行一次：已有該價格的國家或地區會被略過。

**Agent 說找不到月付承諾方案的銷售範圍。**

該方案從未開啟過月付選項，所以沒有可以關閉的內容。

**按月付款的使用者可以取得優惠嗎？**

關於挽留優惠，請參閱[在使用者取消訂閱時提供折扣](https://air.build/tw/docs/app-store/offer-a-discount-when-someone-cancels/)。關於其他優惠，請參閱[提供免費試用、折扣和優惠代碼](https://air.build/tw/docs/app-store/offer-trials-and-discounts/)。

**這和根據月度方案為年度方案定價是一樣的嗎？**

不是。那是根據另一個獨立的月度方案來設定年度方案的預付價格：請參閱[讓年度方案在各地都等於固定月數的價格](https://air.build/tw/docs/app-store/price-your-yearly-plan-from-the-monthly-one/)。
