adjust_customer_member_points
Adjust a customer's member points to add or deduct points for manual corrections, activity rewards, or complaint compensation. Points balance updates immediately with a history record.
Instructions
[WRITE] 調整客戶會員點數。
【用途】 增加或扣除客戶會員點數,常用於手動補點、活動贈點、客訴補償等場景。
【呼叫的 Shopline API】
PUT /v1/customers/{customer_id}/member-points
【回傳結構】 dict 含 success: bool, resource_id: str, message: str。
【副作用】
客戶點數餘額立即變動
異動紀錄會寫入客戶的點數歷史(可透過 get_customer_profile 查看)
扣除後如點數不足,API 可能回傳錯誤
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | 客戶內部 ID | |
| points | Yes | 調整點數(正數=增加,負數=扣除) | |
| note | No | 調整備註/原因 |