XCode 16.3 日本語化計画
自動更新サブスクリプションに変更を加えるためにあなたのアプリが提供する要求データ。
Advanced Commerce API 1.0+
| addItems [SubscriptionModifyAdd Item] | |
| changeItems [SubscriptionModify ChangeItem] | |
| currency currency | |
| descriptors SubscriptionModifyDescriptors | |
| operation string | (必須) Value: MODIFY_SUBSCRIPTION |
| periodChange SubscriptionModify PeriodChange | |
| removeItems [SubscriptionModify RemoveItem] | |
| requestInfo RequestInfo | (必須) |
| retainBillingCycle retainBillingCycle | (必須) |
| storefront storefront | |
| taxCode taxCode | |
| transactionId transactionId | (必須) |
| version version | (必須) |
顧客がサブスクリプションにアップグレード、ダウングレード、アイテムの追加や削除などの 1 つ以上の変更を加えた場合は、あなたのアプリで SubscriptionModifyInAppRequest を使用して下さい。
以下の要求では、
Request (要求)
{
"operation": "MODIFY_SUBSCRIPTION",
"version": "1",
"transactionId": "12345",
"requestInfo": {
"requestReferenceId": "e2a88501-25ba-403a-9c46-d7b8eecc56ba"
},
"currency": "USD",
"storefront": "USA",
"descriptors": {
"effective": "IMMEDIATELY",
"displayName": "Anne's Game Stream",
"description": "Streaming Service for Anne's Game"
},
"periodChange": {
"effective": "IMMEDIATELY",
"period": "P1Y"
},
"retainBillingCycle": false,
"changeItems": [
{
"effective": "IMMEDIATELY",
"currentSKU": "ANNES_GOLD_TIER_1M",
"SKU": "ANNES_PLATINUM_TIER_1Y",
"price": 99990,
"displayName": "Platinum Tier",
"description": "Access to Anne's Game Stream & chat",
"reason": "UPGRADE"
}
]
}
以下の要求では、
Request (要求)
{
"operation": "MODIFY_SUBSCRIPTION",
"version": "1",
"transactionId": "12345",
"requestInfo": {
"requestReferenceId": "e2a88501-25ba-403a-9c46-d7b8eecc56ba"
},
"currency": "USD",
"storefront": "USA",
"descriptors": {
"effective": "IMMEDIATELY",
"displayName": "Streaming Pass",
"description": "Streaming pass with multiple items"
},
"retainBillingCycle": true,
"addItems": [
{
"SKU": "NEWS_CHANNELS",
"displayName": "News Channel",
"description": "Access to news channels",
"price": 4990
}
]
}
以下の要求では、
Request (要求)
{
"operation": "MODIFY_SUBSCRIPTION",
"version": "1",
"transactionId": "12345",
"requestInfo": {
"requestReferenceId": "e2a88501-25ba-403a-9c46-d7b8eecc56ba"
},
"currency": "USD",
"storefront": "USA",
"retainBillingCycle": true,
"removeItems": [
{
"SKU": "LIVE_SPORTS"
}
]
}
以下の要求では、
Request (要求)
{
"operation": "MODIFY_SUBSCRIPTION",
"version": "1",
"transactionId": "12345",
"requestInfo": {
"requestReferenceId": "e2a88501-25ba-403a-9c46-d7b8eecc56ba"
},
"currency": "USD",
"storefront": "USA",
"descriptors": {
"effective": "NEXT_BILL_CYCLE",
"displayName": "Anne's Game Stream",
"description": "Streaming Service for Anne’s Game"
},
"retainBillingCycle": true,
"changeItems": [
{
"effective": "NEXT_BILL_CYCLE",
"currentSKU": "ANNES_PLATINUM_TIER_1M",
"SKU": "ANNES_GOLD_TIER_1M",
"price": 7990,
"displayName": "Gold Tier",
"description": "Access to Anne's Game Stream",
"reason": "DOWNGRADE"
}
]
}
object SubscriptionModifyAddItem
自動更新サブスクリプションに変更を加えるときに、あなたのアプリがアイテムを追加するために提供するデータ。
object SubscriptionModifyChangeItem
自動更新サブスクリプションのアイテムを変更するためにあなたのアプリが提供するデータ。
object SubscriptionModifyRemoveItem
自動更新サブスクリプションからアイテムを削除するためにあなたのアプリが提供するデータ。
object SubscriptionModifyPeriodChange
自動更新サブスクリプションの期間を変更するためにあなたのアプリが提供するデータ。