list_gifts
Browse and search store gift items, including names, stock levels, and eligibility conditions. Use keywords to find specific gifts or retrieve the full list.
Instructions
取得贈品列表,支援依關鍵字搜尋。
【用途】 瀏覽或搜尋商店所有贈品設定,了解贈品名稱、庫存與適用條件。 若提供搜尋關鍵字則呼叫搜尋端點,否則列出所有贈品。
【呼叫的 Shopline API】
GET /v1/gifts(無搜尋條件時)
GET /v1/gifts/search(有搜尋條件時)
【回傳結構】 dict 含 total_found, returned, items[]。 每筆包含 id, name, sku, quantity, status, created_at。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_results | No | 最多回傳筆數 | |
| search_keyword | No | 搜尋關鍵字(贈品名稱) |