updateCoupon
Update an existing coupon by merging specified fields. Provide coupon_id and only the keys to modify. When changing coupon_type, adjust discount_amount: amount (yen), rate (%), or omit for delivery_charge. Other settings remain unchanged.
Instructions
既存クーポンの設定を差分マージします。shop_coupon に含めたキーのみ更新され、省略したキーはそのまま。coupon_id で対象を特定。discount_amount の単位は coupon_type によって円(amount)または %(rate、1〜100 範囲)に変わるため、coupon_type を変更する時は discount_amount もセットで見直してください(delivery_charge では discount_amount は不要)。新規作成は createCoupon、削除は deleteCoupon、現在値は getCoupon を参照。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_id | Yes | Coupon ID | |
| shop_coupon | No |