Получить температурные режимы
Порядок работы для агента · Методы API и схема OpenAPI.
Назначение
Получите справочник температурных режимов, чтобы указать режим перевозки груза.
Блоки запроса и ответов ниже сгенерированы из OpenAPI. Подстановки вроде
exampleпоказывают структуру JSON. Для вызова возьмите значения из сценария, справочников или предыдущих ответов API.
Request
GET
https://partner-test-yamagistrali.ru/api/dicts/temperatureConditions/v0/temperatureConditionsGet
Тестовый стенд
Responses
200 OK
OK
Body
application/json
{
"data": {
"temp_regime": [
{
"code": "example",
"from": 0,
"name": "example",
"tag": "example",
"to": 0
}
]
}
}
|
Name |
Description |
|
data |
Type: DictsTemperatureConditionsV0TemperatureConditionsGetResponse Example
|
TempRegimeItem
|
Name |
Description |
|
code |
Type: string Example: |
|
from |
Type: integer |
|
name |
Type: string Example: |
|
tag |
Type: string deprecated Example: |
|
to |
Type: integer |
Example
{
"code": "example",
"from": 0,
"name": "example",
"tag": "example",
"to": 0
}
DictsTemperatureConditionsV0TemperatureConditionsGetResponse
|
Name |
Description |
|
temp_regime |
Type: TempRegimeItem[] | null Example
|
Example
{
"temp_regime": [
{
"code": "example",
"from": 0,
"name": "example",
"tag": "example",
"to": 0
}
]
}
400 Bad Request
Bad Request
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
Error
|
Name |
Description |
|
info |
Type: object Example
|
|
message |
Type: string Example: |
|
message_code |
Type: string Example: |
Example
{
"info": {},
"message": "example",
"message_code": "example"
}
403 Forbidden
Forbidden
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
500 Internal Server Error
Internal Server Error
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|