MENU navbar-image

Введение

Документация к API

Документация к основным системам

Аутентификация

Для аутентификации запросов включите заголовок Authorization в форме "Bearer {token}".

Все конечные точки, требующие аутентификации, помечены значком requires authentication в документации ниже.

Для доступа к API необходимо получить ключ доступа у администратора системы.

Грузы

Получить список грузов

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v2/pb/cargos"
);

const params = {
    "limit": "1",
    "offset": "0",
    "sort": "-updated_at",
    "filter[price]": "100000",
    "filter[truck_types][0]": "1",
    "filter[load_types][0]": "1",
    "filter[weight]": "1000",
    "filter[volume]": "50.5",
    "filter[distance]": "100",
    "filter[start_point_id]": "1",
    "filter[start_point_type]": "2",
    "filter[start_point_radius]": "10",
    "filter[finish_point_id]": "1",
    "filter[finish_point_type]": "2",
    "filter[finish_point_radius]": "10",
    "filter[type]": "auction",
    "filter[wv]": "20-83",
    "filter[load_date]": "2024-04-04 09:52:38",
    "filter[unload_date]": "2024-04-04 09:52:38",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v2/pb/cargos?limit=1&offset=0&sort=-updated_at&filter%5Bprice%5D=100000&filter%5Btruck_types%5D[]=1&filter%5Bload_types%5D[]=1&filter%5Bweight%5D=1000&filter%5Bvolume%5D=50.5&filter%5Bdistance%5D=100&filter%5Bstart_point_id%5D=1&filter%5Bstart_point_type%5D=2&filter%5Bstart_point_radius%5D=10&filter%5Bfinish_point_id%5D=1&filter%5Bfinish_point_type%5D=2&filter%5Bfinish_point_radius%5D=10&filter%5Btype%5D=auction&filter%5Bwv%5D=20-83&filter%5Bload_date%5D=2024-04-04+09%3A52%3A38&filter%5Bunload_date%5D=2024-04-04+09%3A52%3A38" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):


{
    "data": [
        {
            "id": null,
            "uuid": null,
            "status": "open",
            "auction": null,
            "type": "auction",
            "price": 10000000,
            "price_vat": 8333333,
            "price_carrier": 8799995,
            "price_carrier_vat": 8799995,
            "weight": 20000,
            "volume": 82,
            "route": {
                "distance": 0,
                "price_per_km": 0,
                "price_per_km_carrier": 0,
                "platon_road_length": 0,
                "platon_price": 0,
                "travel_time": 0
            },
            "size": {
                "height": 0,
                "length": 0,
                "width": 0,
                "diameter": 0
            },
            "payment": {
                "type": "original",
                "prepay": 0,
                "vat": 20,
                "prepay_in_fuel": false,
                "tax_rate": 20,
                "credit_score": 0,
                "payday": 0,
                "pay_on_unload": false,
                "bargain": false,
                "hide_responses": true,
                "cargo_price": 0,
                "advance_amount": 0,
                "advance_percent": 0,
                "margin_percent": 0
            },
            "truck": {
                "tir": false,
                "cmr": false,
                "t1": false,
                "quantity": 1,
                "belt_count": 0,
                "place_count": 0,
                "pallet_count": 0,
                "san_passport": false,
                "medical_book": false,
                "coupling": false,
                "koniki": false,
                "temperature_from": null,
                "temperature_to": null,
                "adr": 0,
                "height": 0,
                "length": 0,
                "width": 0,
                "weight": 0,
                "volume": 0
            },
            "extra": {
                "note": null
            },
            "load_first_date": null,
            "load_last_date": null,
            "unload_first_date": null,
            "unload_last_date": null,
            "created_at": null,
            "updated_at": null,
            "publication_at": "2024-04-04T09:52:38.000000Z",
            "export_disabled_at": null,
            "export_enabled_at": null
        },
        {
            "id": null,
            "uuid": null,
            "status": "open",
            "auction": null,
            "type": "express",
            "price": 10000000,
            "price_vat": 8333333,
            "price_carrier": 8799995,
            "price_carrier_vat": 8799995,
            "weight": 20000,
            "volume": 82,
            "route": {
                "distance": 0,
                "price_per_km": 0,
                "price_per_km_carrier": 0,
                "platon_road_length": 0,
                "platon_price": 0,
                "travel_time": 0
            },
            "size": {
                "height": 0,
                "length": 0,
                "width": 0,
                "diameter": 0
            },
            "payment": {
                "type": "original",
                "prepay": 0,
                "vat": 20,
                "prepay_in_fuel": false,
                "tax_rate": 20,
                "credit_score": 0,
                "payday": 0,
                "pay_on_unload": false,
                "bargain": false,
                "hide_responses": true,
                "cargo_price": 0,
                "advance_amount": 0,
                "advance_percent": 0,
                "margin_percent": 0
            },
            "truck": {
                "tir": false,
                "cmr": false,
                "t1": false,
                "quantity": 1,
                "belt_count": 0,
                "place_count": 0,
                "pallet_count": 0,
                "san_passport": false,
                "medical_book": false,
                "coupling": false,
                "koniki": false,
                "temperature_from": null,
                "temperature_to": null,
                "adr": 0,
                "height": 0,
                "length": 0,
                "width": 0,
                "weight": 0,
                "volume": 0
            },
            "extra": {
                "note": null
            },
            "load_first_date": null,
            "load_last_date": null,
            "unload_first_date": null,
            "unload_last_date": null,
            "created_at": null,
            "updated_at": null,
            "publication_at": "2024-04-04T09:52:38.000000Z",
            "export_disabled_at": null,
            "export_enabled_at": null,
            "pack_type": {
                "id": 2,
                "name": "другое"
            }
        }
    ]
}
 

Request   

GET v2/pb/cargos

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

sort   string  optional  

Сортировка.

start_date Время загрузки
finish_date Время разгрузки
updated_at Время обновления груза
distance Рассояние
price Цена
price_per_km Цена за км

Для обратной сортировки указать - перед названием, например -updated_at. Example: -updated_at

filter[price]   int  optional  

Фильтр по цене в копейках Example: 100000

filter[truck_types]   int[]  optional  

Фильтр по типам кузова

filter[load_types]   int[]  optional  

Фильтр по типам загрузки

filter[weight]   int  optional  

Фильтр по весу в КГ Example: 1000

filter[volume]   float  optional  

Фильтр по объему Example: 50.5

filter[distance]   int  optional  

Фильтр по расстоянию в КМ Example: 100

filter[start_point_id]   int  optional  

Ид точки погрузки (город, регион или страна) Example: 1

filter[start_point_type]   int  optional  

Тип точки погрузки (город = 2, регион = 1, страна = 0) Example: 2

filter[start_point_radius]   int  optional  

Радиус в КМ. Макс 100 км. Example: 10

filter[finish_point_id]   int  optional  

Ид точки выгрузки (город, регион или страна) Example: 1

filter[finish_point_type]   int  optional  

Тип точки выгрузки (город = 2, регион = 1, страна = 0) Example: 2

filter[finish_point_radius]   int  optional  

Радиус в КМ. Макс 100 км. Example: 10

filter[type]   string  optional  

Тип груза: auction или express Example: auction

filter[wv]   string  optional  

Категории грузоподъемности: 1.5-9, 3-16, 5-36, 10-54, 20-83. Example: 20-83

filter[load_date]   datetime  optional  

Фильтр по времени загрузки Example: 2024-04-04 09:52:38

filter[unload_date]   datetime  optional  

Фильтр по времени загрузки.

Примечание к фильтрам:
filter[weight]=1000 - все грузы >= весом 1 т.
filter[weight]=1000,1500 - все грузы от 1 т. до 1.5 т. Example: 2024-04-04 09:52:38

Получить груз

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v2/pb/cargos/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "external_id": "9472d68e-418d-4f22-af16-eb33667309d2",
    "pack_type_id": 1,
    "cargo_type_id": 1,
    "cargo_type": "Свой тип груза",
    "money_type_id": 1,
    "currency_id": 1,
    "load_types": [
        1
    ],
    "unload_types": [
        1
    ],
    "type": "express",
    "price": 10000000,
    "weight": 10000000,
    "volume": 82
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v2/pb/cargos/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"external_id\": \"9472d68e-418d-4f22-af16-eb33667309d2\",
    \"pack_type_id\": 1,
    \"cargo_type_id\": 1,
    \"cargo_type\": \"Свой тип груза\",
    \"money_type_id\": 1,
    \"currency_id\": 1,
    \"load_types\": [
        1
    ],
    \"unload_types\": [
        1
    ],
    \"type\": \"express\",
    \"price\": 10000000,
    \"weight\": 10000000,
    \"volume\": 82
}"

Example response (200):


{
    "data": {
        "id": null,
        "uuid": null,
        "status": "open",
        "auction": null,
        "type": "express",
        "price": 10000000,
        "price_vat": 8333333,
        "price_carrier": 8799995,
        "price_carrier_vat": 8799995,
        "weight": 20000,
        "volume": 82,
        "route": {
            "distance": 0,
            "price_per_km": 0,
            "price_per_km_carrier": 0,
            "platon_road_length": 0,
            "platon_price": 0,
            "travel_time": 0
        },
        "size": {
            "height": 0,
            "length": 0,
            "width": 0,
            "diameter": 0
        },
        "payment": {
            "type": "original",
            "prepay": 0,
            "vat": 20,
            "prepay_in_fuel": false,
            "tax_rate": 20,
            "credit_score": 0,
            "payday": 0,
            "pay_on_unload": false,
            "bargain": false,
            "hide_responses": true,
            "cargo_price": 0,
            "advance_amount": 0,
            "advance_percent": 0,
            "margin_percent": 0
        },
        "truck": {
            "tir": false,
            "cmr": false,
            "t1": false,
            "quantity": 1,
            "belt_count": 0,
            "place_count": 0,
            "pallet_count": 0,
            "san_passport": false,
            "medical_book": false,
            "coupling": false,
            "koniki": false,
            "temperature_from": null,
            "temperature_to": null,
            "adr": 0,
            "height": 0,
            "length": 0,
            "width": 0,
            "weight": 0,
            "volume": 0
        },
        "extra": {
            "note": null
        },
        "load_first_date": null,
        "load_last_date": null,
        "unload_first_date": null,
        "unload_last_date": null,
        "created_at": null,
        "updated_at": null,
        "publication_at": "2024-04-04T09:52:38.000000Z",
        "export_disabled_at": null,
        "export_enabled_at": null
    }
}
 

Request   

GET v2/pb/cargos/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer  optional  

ID груза Example: 18

Body Parameters

id   int  optional  

ID груза

uuid   uuid  optional  

UUID груза

external_id   string  optional  

Внешний ID. Любой текст до 120 сим. Example: 9472d68e-418d-4f22-af16-eb33667309d2

pack_type_id   int  optional  

ID типа упаковки Example: 1

cargo_type_id   int  optional  

ID типа груза Example: 1

cargo_type   string  optional  

Свой тип груза Example: Свой тип груза

money_type_id   int  optional  

ID типа оплаты Example: 1

currency_id   int  optional  

ID валюты Example: 1

load_types   int[]  optional  

ID типов загрузки

unload_types   int[]  optional  

ID типов разгрузок

type   string  optional  

Тип заказа Example: express

price   int  optional  

Цена с НДС Example: 10000000

price_vat   int  optional  

Цена без НДС

price_carrier   int  optional  

Цена перевозчика с НДС

price_carrier_vat   int  optional  

Цена перевозчика без НДС

weight   int  optional  

Вес груза в КГ Example: 10000000

volume   float  optional  

Объем груза в кубических метрах (далее м3) Example: 82

truck   object  optional  
tir   bool  optional  

Разрешение: TIR

cmr   bool  optional  

Разрешение: CMR

t1   bool  optional  

Разрешение: T1

quantity   int  optional  

Количество машин

belt_count   int  optional  

Количество ремней

place_count   int  optional  

Количество мест

pallet_count   int  optional  

Количество паллет

adr   int  optional  

ADR (Опасность груза) 1-9

san_passport   bool  optional  

Сан. паспорт

medical_book   bool  optional  

Мед. книжка

koniki   bool  optional  

Коники

temperature_from   int  optional  

Температура от

temperature_to   int  optional  

Температура до

partial_load   bool  optional  

Частичная загрузка

size   object  optional  
height   int  optional  

Высота кузова в См

length   int  optional  

Длина кузова в См

width   int  optional  

Ширина кузова в См

extra   object  optional  
krugoreis   bool  optional  

Кругорейс

note   string  optional  

Примечание к грузу

partial_load   bool  optional  

Частичная загрузка

payment   object  optional  
prepay   int  optional  

Предоплата в процентах (1-100)

payday   int  optional  

Оплата через N дней

prepay_in_fuel   bool  optional  

Предоплата топливом

pay_on_unload   bool  optional  

Оплата на выгрузке

size   object  optional  
height   int  optional  

Высота груза в См

length   int  optional  

Длина груза в См

width   int  optional  

Ширина груза в См

diameter   int  optional  

Диаметр (М)

Справочники

Валюты

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/currencies"
);

const params = {
    "filter[name]": "14",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/currencies?filter%5Bname%5D=14&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 5
    },
    "data": [
        {
            "id": 1,
            "name": "руб",
            "vat": 20
        }
    ]
}
 

Request   

GET v1/dictionaries/currencies

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 14

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Страны

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/countries"
);

const params = {
    "filter[name]": "15",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/countries?filter%5Bname%5D=15&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 89
    },
    "data": [
        {
            "id": 1,
            "name": "Россия"
        }
    ]
}
 

Request   

GET v1/dictionaries/countries

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 15

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Регионы

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/regions"
);

const params = {
    "filter[name]": "14",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/regions?filter%5Bname%5D=14&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 707
    },
    "data": [
        {
            "id": 1,
            "name": "Московская область"
        }
    ]
}
 

Request   

GET v1/dictionaries/regions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 14

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Города

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/cities"
);

const params = {
    "filter[name]": "Моск",
    "filter[fias]": "laborum",
    "filter[country_id]": "exercitationem",
    "filter[region_id]": "ut",
    "include": "region",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/cities?filter%5Bname%5D=%D0%9C%D0%BE%D1%81%D0%BA&filter%5Bfias%5D=laborum&filter%5Bcountry_id%5D=exercitationem&filter%5Bregion_id%5D=ut&include=region&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 56073
    },
    "data": [
        {
            "id": 1,
            "name": "Москва",
            "fias_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
            "latitude": 55.750446,
            "longitude": 37.617494,
            "region": {
                "id": 54,
                "name": "Москва (регион)"
            }
        }
    ]
}
 

Request   

GET v1/dictionaries/cities

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   string  optional  

Example: Моск

filter[fias]   string  optional  

Фиас ИД Example: laborum

filter[country_id]   string  optional  

ИД Страны Example: exercitationem

filter[region_id]   string  optional  

ИД Региона Example: ut

include   string  optional  

Include relation region/country. Example: region

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Ближайшие города

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/cities/nearest"
);

const params = {
    "latitude": "55.753559",
    "longitude": "37.609218",
    "name": "моск",
    "radius": "10",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/cities/nearest?latitude=55.753559&longitude=37.609218&name=%D0%BC%D0%BE%D1%81%D0%BA&radius=10&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 1
    },
    "data": [
        {
            "id": 1,
            "name": "Москва",
            "fias_id": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
            "latitude": 55.750446,
            "longitude": 37.617494
        }
    ]
}
 

Request   

GET v1/dictionaries/cities/nearest

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

latitude   string   

float Example: 55.753559

longitude   string   

float Example: 37.609218

name   string  optional  

Дополнительный фильтр по названию. Example: моск

radius   integer  optional  

Example: 10

limit   integer  optional  

Limit. Example: 1

offset   integer  optional  

Offset. Example: 0

Типы кузовов

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/truck_types"
);

const params = {
    "filter[name]": "7",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/truck_types?filter%5Bname%5D=7&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 67
    },
    "data": [
        {
            "id": 17,
            "name": "реф",
            "short_name": "реф"
        }
    ]
}
 

Request   

GET v1/dictionaries/truck_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 7

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Тип оплаты

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/money_types"
);

const params = {
    "filter[name]": "14",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/money_types?filter%5Bname%5D=14&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 3
    },
    "data": [
        {
            "id": 1,
            "name": "б/нал без НДС"
        }
    ]
}
 

Request   

GET v1/dictionaries/money_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 14

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Типы упаковок

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/pack_types"
);

const params = {
    "filter[name]": "10",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/pack_types?filter%5Bname%5D=10&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 19
    },
    "data": [
        {
            "id": 1,
            "name": "не указано"
        }
    ]
}
 

Request   

GET v1/dictionaries/pack_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 10

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Типы грузов

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/cargo_types"
);

const params = {
    "filter[name]": "5",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/cargo_types?filter%5Bname%5D=5&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 110
    },
    "data": [
        {
            "id": 77,
            "name": "тнп"
        }
    ]
}
 

Request   

GET v1/dictionaries/cargo_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 5

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Типы загрузок

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/load_types"
);

const params = {
    "filter[name]": "4",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/load_types?filter%5Bname%5D=4&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 65
    },
    "data": [
        {
            "id": 17,
            "name": "боковая",
            "short_name": "боковая"
        }
    ]
}
 

Request   

GET v1/dictionaries/load_types

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 4

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Марки машин

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/vehicles"
);

const params = {
    "filter[name]": "3",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/vehicles?filter%5Bname%5D=3&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 0
    },
    "data": []
}
 

Request   

GET v1/dictionaries/vehicles

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 3

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Дополнительные условия

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/additional-conditions"
);

const params = {
    "filter[name]": "6",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/additional-conditions?filter%5Bname%5D=6&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 5
    },
    "data": [
        {
            "id": 1,
            "name": "Температурный режим"
        }
    ]
}
 

Request   

GET v1/dictionaries/additional-conditions

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 6

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Additional Equipments

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/additional-equipments"
);

const params = {
    "filter[name]": "8",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/additional-equipments?filter%5Bname%5D=8&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 6
    },
    "data": [
        {
            "id": 1,
            "name": "Коники"
        }
    ]
}
 

Request   

GET v1/dictionaries/additional-equipments

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 8

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0

Точки загрузки и выгрузки

requires authentication

Example request:
const url = new URL(
    "https://api.cargotech.pro/v1/dictionaries/points"
);

const params = {
    "filter[name]": "10",
    "limit": "1",
    "offset": "0",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
curl --request GET \
    --get "https://api.cargotech.pro/v1/dictionaries/points?filter%5Bname%5D=10&limit=1&offset=0" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "meta": {
        "offset": 0,
        "limit": 1,
        "size": 0
    },
    "data": []
}
 

Request   

GET v1/dictionaries/points

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

filter[name]   integer  optional  

Фильтр по названию. Example: 10

limit   int  optional  

Максимум сущностей на страницу Example: 1

offset   int  optional  

Смещение Example: 0