HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Get Delivery Time Slots

Function

To get all kinds of delivery time slots of given delivery option with open API
透過open API獲取送貨方式的所有時段

URL

GET <<api_domain>>/v1/delivery_options/:delivery_option_id/delivery_time_slots

Request parameters

Path Param

ParameterValueDescriptionExample
delivery_option_idStringDelivery Option ID
運送方式ID
5f47c96a86a983001614a834
dateStringDate
指定日期
2022-08-23

Response Fields

FieldTypeDescriptionExample
itemsDelivery Time SlotDelivery Time Slot Data
送貨時段資訊
Please check the link on the left

Response Example

{
    "items": [
        {
            "id": "62fb881a61f2d7003564cdc8",
            "group_key": "572126",
            "limit": 10,
            "translations": {
                "zh-hant": "AM9:00-AM10:00"
            },
            "weekday": 1,
            "status": "active",
            "created_at": "2022-08-16T12:05:46.216+00:00",
            "updated_at": "2022-08-16T12:05:46.216+00:00",
            "is_available": true
        },
        {
            "id": "62fb881a61f2d7003564cdc9",
            "group_key": "572126",
            "limit": 10,
            "translations": {
                "zh-hant": "AM9:00-AM10:00"
            },
            "weekday": 2,
            "status": "active",
            "created_at": "2022-08-16T12:05:46.216+00:00",
            "updated_at": "2022-08-16T12:05:46.216+00:00",
            "is_available": true
        }
    ]
}

Delivery Option ID is shown in the url. (Refer to below picture)