クーポンとプロモーションコードのパラメーターを削除破壊的変更
新規情報
We’re removing the singular coupon
and promotion_
parameters in favor of the discounts
parameter that supports applying multiple discounts.
対応処理が必要な変更である理由
The coupon
and promotion_
parameters and fields are no longer available on Subscription, Subscription Schedule, or Preview Invoice endpoints and respective resources.
効果
Use the discounts
parameter to include one or more discounts on a Subscription, Subscription Schedule, or Preview Invoice, and read from discounts
in the responses instead.