getCoupon
Retrieve a shop coupon's details by coupon ID, including code, discount type and amount, validity period, minimum purchase, and usage limits. Use this to verify coupon information before updating.
Instructions
指定したクーポンIDのショップクーポン 1 件を取得します。coupon_id を渡すと、code(クーポンコード)・coupon_type(amount/rate/delivery_charge)・discount_amount(単位は coupon_type が amount なら円、rate なら %)・starts_at・ends_at・minimum_amount(最低購入金額)・利用回数制限などを含むクーポンオブジェクトを返します。発行済みクーポンの詳細確認や updateCoupon 前の現在値チェックに使用。一覧は getCoupons、変更は updateCoupon、削除は deleteCoupon、新規作成は createCoupon を使用。
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": {
"coupon_id": "<coupon_id>"
},
"name": "getCoupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_id | Yes | Coupon ID |