get_delivery_time_slots
Get the list of available delivery time slots for a delivery option, enabling you to confirm booking availability or analyze customer preferences for delivery times.
Instructions
取得指定配送方式的可用時段清單。
【用途】 查詢特定配送方式的預約時段設定,例如到府配送的時間選項。 適合確認預約配送時段或分析客戶配送時段偏好。
【呼叫的 Shopline API】
GET /v1/delivery_options/{delivery_option_id}/time_slots
【回傳結構】 dict 含 delivery_option_id, total, time_slots[]。 每個 time_slot 包含 id, day, start_time, end_time, enabled 等。
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": {
"delivery_option_id": "<delivery_option_id>"
},
"name": "get_delivery_time_slots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delivery_option_id | Yes | 物流方式 ID(由 list_delivery_options 回傳的 id 欄位取得) |