Skip to main content

Get available delivery intervals

Gets available delivery intervals for order

Function GetAvailableDeliveryIntervals(Val Token, Val UUID, Val TestAPI = False) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
UUID--uuidStringOrder UUID
TestAPI--testapiBooleanFlag to use test API for requests

Returns: Map Of KeyAndValue - serialized JSON response from CDEK


tip

Method at API documentation: Getting delivery intervals (RU)


1C:Enterprise/OneScript code example
    Token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6WyJsb2NhdGlvbjphbGwiLCJvcmRlcjphbGwiLCJwYXltZW50OmFsbCJdLCJleHAiOjE3MzY2MjEyMzYsImF1dGhvcml0aWVzIjpbInNoYXJkLWlkOnJ1LTAxIiwiY2xpZW50LWNpdHk60J3QvtCy0L7RgdC40LHQuNGA0YHQuiwg0J3QvtCy0L7RgdC40LHQuNGA0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwiLCJhY2NvdW50LWxhbmc6cnVzIiwiY29udHJhY3Q60JjQnC3QoNCkLdCT0JvQky0yMiIsImFwaS12ZXJzaW9uOjEuMSIsImFjY291bnQtdXVpZDplOTI1YmQwZi0wNWE2LTRjNTYtYjczNy00Yjk5YzE0ZjY2OWEiLCJjbGllbnQtaWQtZWM1OmVkNzVlY2Y0LTMwZWQtNDE1My1hZmU5LWViODBiYjUxMmYyMiIsImNvbnRyYWN0LWlkOmRlNDJjYjcxLTZjOGMtNGNmNS04MjIyLWNmYjY2MDQ0ZThkZiIsImNsaWVudC1pZC1lYzQ6MTQzNDgyMzEiLCJjb250cmFnZW50L...";
UUID = "0869dacf-feb4-4944-8dc6-11bfb043ee2f";

Result = OPI_CDEK.GetAvailableDeliveryIntervals(Token, UUID, True);
    oint cdek GetAvailableDeliveryIntervals \
--token "***" \
--uuid "a08ec891-1573-4fb3-8531-0eca5b4aea01" \
--testapi "***"
Result
{
"date_intervals": [
{
"date": "2024-10-23",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
},
{
"date": "2024-10-30",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
},
{
"date": "2024-11-06",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
},
{
"date": "2024-11-13",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
},
{
"date": "2024-11-20",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
},
{
"date": "2024-11-27",
"time_intervals": [
{
"start_time": "09:00:00",
"end_time": "18:00:00"
},
{
"start_time": "09:00:00",
"end_time": "14:00:00"
},
{
"start_time": "14:00:00",
"end_time": "18:00:00"
},
{
"start_time": "18:00:00",
"end_time": "22:00:00"
}
]
}
]
}