send_coupon
Sends a coupon to a specified customer for marketing campaigns or customer rewards. Uses Shopline API to apply discounts directly to customer accounts.
Instructions
[WRITE] 發送優惠券給指定客戶。
【用途】 主動將優惠券發送給特定客戶,常用於行銷活動、客戶回饋、CRM 觸發場景。
【呼叫的 Shopline API】
POST /v1/coupons/send
【回傳結構】 dict 含 success: bool, resource_id: str, message: str, result: dict。
【副作用】
優惠券發送後,目標客戶帳號中將出現對應的優惠券
依優惠券設定,可能有數量限制;若庫存不足,API 會回傳錯誤
部分類型的優惠券一旦發送,無法收回
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_data | Yes | 優惠券發送資料,通常包含 coupon_id 與目標客戶識別資訊 |