Фрахт
Робота із заявками на перевезення вантажів
Метод getFreightList моделі Freight (або FreightGeneral) дозволяє отримати список заявок на фрахт.
API-ключ користувача
[ВАШ КЛЮЧ]Назва моделі API
Назва методу API
Успішна відповідь (JSON)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/json/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/json
Accept: */*
Content-Length: 354
{
"apiKey": "[ВАШ КЛЮЧ]",
"modelName": "FreightGeneral",
"calledMethod": "getFreightList",
"methodProperties": {
"Ref": "",
"Number": "",
"DateTime": "",
"DeclaredCost": "",
"Status": "",
"DateTimeVehicleFiling": "",
"SenderSettlement": "",
"RecipientSettlement": "",
"Customer": "",
"CustomerContactName": "",
"CustomerPhone": "",
"Weight": "",
"Volume": "",
"Page": "",
"Limit": ""
}
}Успішна відповідь (JSON)
{
"success": true,
"data": [
{
"Ref": "",
"Number": "",
"DateTime": "",
"DeletionMark": "0",
"Status": "",
"DeniedReason": "",
"DateTimeVehicleFiling": "",
"DateTimeVehicleDeparture": "",
"DateTimeVehicleArrival": "",
"DateTimeVehicleUnloading": "",
"CargoDescriptionString": "",
"DeclaredCost": "",
"Cost": "",
"Weight": "",
"Length": "",
"Width": "",
"Height": "",
"Volume": "",
"SemiTrailerType": "",
"Customer": "",
"CustomerContactName": "",
"CustomerPhone": "",
"CustomerEMail": "",
"SenderSettlement": "",
"SenderAddressString": "",
"SenderString": "",
"SenderName": "",
"SenderPhone": "",
"SenderEMail": "",
"RecipientSettlement": "",
"RecipientAddressString": "",
"RecipientString": "",
"RecipientName": "",
"RecipientPhone": "",
"RecipientEMail": "",
"AdditionalInformation": "",
"IntermediateStoppingPoints": {
"1": {
"Settlement": "e718a680-4b33-11e4-ab6d-005056801329",
"SettlementDescription": "Київ",
"AddressDescription": "Карельский переулок, 5",
"DateTimeVehicleDeparture": "2022-04-27 02:00:00",
"DateTimeVehicleArrival": "2022-04-27 01:00:00",
"ContactName": "Федишин Любов Миколаївна",
"Phone": "380961111111"
},
"2": {
"Settlement": "e718a680-4b33-11e4-ab6d-005056801329",
"SettlementDescription": "Київ",
"AddressDescription": "Столичное шоссе, 103",
"DateTimeVehicleDeparture": "2022-04-27 05:00:00",
"DateTimeVehicleArrival": "2022-04-27 04:00:00",
"ContactName": "Іванов Іван Іванович",
"Phone": "380961111111"
}
},
"CustomerDescription": "",
"SenderSettlementDescription": "",
"RecipientSettlementDescription": ""
}
],
"errors": [],
"warnings": [],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}Метод getFreightList моделі Freight (або FreightGeneral) дозволяє отримати список заявок на фрахт.
API-ключ користувача
Назва моделі API
Назва методу API
Успішна відповідь (XML)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/xml/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/xml
Accept: */*
Content-Length: 773
"<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[ВАШ КЛЮЧ]</apiKey>
<modelName>FreightGeneral</modelName>
<calledMethod>getFreightList</calledMethod>
<methodProperties>
<Ref></Ref>
<Number></Number>
<DateTime></DateTime>
<DeclaredCost></DeclaredCost>
<Status></Status>
<DateTimeVehicleFiling></DateTimeVehicleFiling>
<SenderSettlement></SenderSettlement>
<RecipientSettlement></RecipientSettlement>
<Customer></Customer>
<CustomerContactName></CustomerContactName>
<CustomerPhone></CustomerPhone>
<Weight></Weight>
<Volume></Volume>
<Page></Page>
<Limit></Limit>
</methodProperties>
</file>
"Успішна відповідь (XML)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<success>true</success>
<data>
<item>
<Ref></Ref>
<Number></Number>
<DateTime></DateTime>
<DeletionMark>0</DeletionMark>
<Status></Status>
<DeniedReason></DeniedReason>
<DateTimeVehicleFiling></DateTimeVehicleFiling>
<DateTimeVehicleDeparture></DateTimeVehicleDeparture>
<DateTimeVehicleArrival></DateTimeVehicleArrival>
<DateTimeVehicleUnloading></DateTimeVehicleUnloading>
<CargoDescriptionString></CargoDescriptionString>
<DeclaredCost></DeclaredCost>
<Cost></Cost>
<Weight></Weight>
<Length></Length>
<Width></Width>
<Height></Height>
<Volume></Volume>
<SemiTrailerType></SemiTrailerType>
<Customer></Customer>
<CustomerContactName></CustomerContactName>
<CustomerPhone></CustomerPhone>
<CustomerEMail></CustomerEMail>
<SenderSettlement></SenderSettlement>
<SenderAddressString></SenderAddressString>
<SenderString></SenderString>
<SenderName></SenderName>
<SenderPhone></SenderPhone>
<SenderEMail></SenderEMail>
<RecipientSettlement></RecipientSettlement>
<RecipientAddressString></RecipientAddressString>
<RecipientString></RecipientString>
<RecipientName></RecipientName>
<RecipientPhone></RecipientPhone>
<RecipientEMail></RecipientEMail>
<AdditionalInformation></AdditionalInformation>
<IntermediateStoppingPoints>
<item>
<Settlement>e718a680-4b33-11e4-ab6d-005056801329</Settlement>
<SettlementDescription>Київ</SettlementDescription>
<AddressDescription>Карельский переулок, 5</AddressDescription>
<DateTimeVehicleDeparture>2022-04-27 02:00:00</DateTimeVehicleDeparture>
<DateTimeVehicleArrival>2022-04-27 01:00:00</DateTimeVehicleArrival>
<ContactName>Федишин Любов Миколаївна</ContactName>
<Phone>380961111111</Phone>
</item>
<item>
<Settlement>e718a680-4b33-11e4-ab6d-005056801329</Settlement>
<SettlementDescription>Київ</SettlementDescription>
<AddressDescription>Столичное шоссе, 103</AddressDescription>
<DateTimeVehicleDeparture>2022-04-27 05:00:00</DateTimeVehicleDeparture>
<DateTimeVehicleArrival>2022-04-27 04:00:00</DateTimeVehicleArrival>
<ContactName>Іванов Іван Іванович</ContactName>
<Phone>380961111111</Phone>
</item>
</IntermediateStoppingPoints>
<CustomerDescription></CustomerDescription>
<SenderSettlementDescription></SenderSettlementDescription>
<RecipientSettlementDescription></RecipientSettlementDescription>
</item>
</data>
<errors/>
<warnings/>
<info/>
<messageCodes/>
<errorCodes/>
<warningCodes/>
<infoCodes/>
</root>
Метод deny працює в моделі Freight (або FreightGeneral) і дозволяє відкликати подану заявку.
API-ключ користувача
[ВАШ КЛЮЧ]Назва моделі API
FreightGeneralPossible values: Назва методу API
denyPossible values: Успішна відповідь (JSON)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/json/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"apiKey": "[ВАШ КЛЮЧ]",
"modelName": "FreightGeneral",
"calledMethod": "deny",
"methodProperties": {
"DenyReason": "",
"Number": "",
"Ref": ""
}
}Успішна відповідь (JSON)
{
"success": true,
"data": [
{
"Ref": "",
"Number": ""
}
],
"errors": [],
"warnings": [],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}Метод deny працює в моделі Freight (або FreightGeneral) і дозволяє відкликати подану заявку.
API-ключ користувача
Назва моделі API
Назва методу API
Успішна відповідь (XML)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/xml/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/xml
Accept: */*
Content-Length: 317
"<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[ВАШ КЛЮЧ]</apiKey>
<modelName>FreightGeneral</modelName>
<calledMethod>deny</calledMethod>
<methodProperties>
<DenyReason></DenyReason>
<Number></Number>
<Ref></Ref>
</methodProperties>
</file>
"Успішна відповідь (XML)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<success>true</success>
<data>
<item>
<Ref></Ref>
<Number></Number>
</item>
</data>
<errors/>
<warnings/>
<info/>
<messageCodes/>
<errorCodes/>
<warningCodes/>
<infoCodes/>
</root>
Метод getFreight працює в моделі Freight (або FreightGeneral) і дозволяє отримати перелік заявок із фільтрацією за ідентифікатором (REF) заявки та ознакою видалення.
API-ключ користувача
[ВАШ КЛЮЧ]Назва моделі API
FreightGeneralPossible values: Назва методу API
getFreightPossible values: Успішна відповідь (JSON)
Прапор успішності виконання запиту
Перелік заявок
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/json/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"apiKey": "[ВАШ КЛЮЧ]",
"modelName": "FreightGeneral",
"calledMethod": "getFreight",
"methodProperties": {
"Ref": "",
"ShowDeleted": ""
}
}Успішна відповідь (JSON)
{
"success": true,
"data": [
{}
],
"errors": [],
"warnings": [],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}Метод getFreight працює в моделі Freight (або FreightGeneral) і дозволяє отримати перелік заявок із фільтрацією за ідентифікатором (REF) заявки та ознакою видалення.
API-ключ користувача
Назва моделі API
Назва методу API
Успішна відповідь (XML)
Прапор успішності виконання запиту
Перелік заявок
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/xml/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/xml
Accept: */*
Content-Length: 298
"<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[ВАШ КЛЮЧ]</apiKey>
<modelName>FreightGeneral</modelName>
<calledMethod>getFreight</calledMethod>
<methodProperties>
<Ref></Ref>
<ShowDeleted></ShowDeleted>
</methodProperties>
</file>
"Успішна відповідь (XML)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<success>true</success>
<data>
<item/>
</data>
<errors/>
<warnings/>
<info/>
<messageCodes/>
<errorCodes/>
<warningCodes/>
<infoCodes/>
</root>
Метод save працює в моделі Freight (або FreightGeneral) і дозволяє створити заявку на перевезення великої кількості вантажу.
API-ключ користувача
[ВАШ КЛЮЧ]Назва моделі API
FreightGeneralPossible values: Назва методу API
savePossible values: Успішна відповідь (JSON)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/json/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/json
Accept: */*
Content-Length: 748
{
"apiKey": "[ВАШ КЛЮЧ]",
"modelName": "FreightGeneral",
"calledMethod": "save",
"methodProperties": {
"Ref": "",
"Customer": "",
"CustomerContactName": "",
"CustomerPhone": "",
"CustomerEMail": "",
"SenderSettlement": "",
"SenderAddressString": "",
"SenderString": "",
"SenderName": "",
"SenderPhone": "",
"SenderEMail": "",
"DateTimeVehicleFiling": "",
"DateTimeVehicleDeparture": "",
"RecipientSettlement": "",
"RecipientAddressString": "",
"RecipientString": "",
"RecipientName": "",
"RecipientPhone": "",
"RecipientEMail": "",
"DateTimeVehicleArrival": "",
"DateTimeVehicleUnloading": "",
"IntermediateStoppingPoints": [
{}
],
"CargoDescriptionString": "",
"DeclaredCost": "",
"Cost": "",
"Weight": "",
"Length": "",
"Width": "",
"Height": "",
"Volume": "",
"SemiTrailerType": "",
"AdditionalInformation": ""
}
}Успішна відповідь (JSON)
{
"success": true,
"data": [
{
"Ref": "",
"Number": ""
}
],
"errors": [],
"warnings": [],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}Метод save працює в моделі Freight (або FreightGeneral) і дозволяє створити заявку на перевезення великої кількості вантажу.
API-ключ користувача
Назва моделі API
Назва методу API
Успішна відповідь (XML)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/xml/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/xml
Accept: */*
Content-Length: 1625
"<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[ВАШ КЛЮЧ]</apiKey>
<modelName>FreightGeneral</modelName>
<calledMethod>save</calledMethod>
<methodProperties>
<Ref></Ref>
<Customer></Customer>
<CustomerContactName></CustomerContactName>
<CustomerPhone></CustomerPhone>
<CustomerEMail></CustomerEMail>
<SenderSettlement></SenderSettlement>
<SenderAddressString></SenderAddressString>
<SenderString></SenderString>
<SenderName></SenderName>
<SenderPhone></SenderPhone>
<SenderEMail></SenderEMail>
<DateTimeVehicleFiling></DateTimeVehicleFiling>
<DateTimeVehicleDeparture></DateTimeVehicleDeparture>
<RecipientSettlement></RecipientSettlement>
<RecipientAddressString></RecipientAddressString>
<RecipientString></RecipientString>
<RecipientName></RecipientName>
<RecipientPhone></RecipientPhone>
<RecipientEMail></RecipientEMail>
<DateTimeVehicleArrival></DateTimeVehicleArrival>
<DateTimeVehicleUnloading></DateTimeVehicleUnloading>
<IntermediateStoppingPoints><item/></IntermediateStoppingPoints>
<CargoDescriptionString></CargoDescriptionString>
<DeclaredCost></DeclaredCost>
<Cost></Cost>
<Weight></Weight>
<Length></Length>
<Width></Width>
<Height></Height>
<Volume></Volume>
<SemiTrailerType></SemiTrailerType>
<AdditionalInformation></AdditionalInformation>
</methodProperties>
</file>
"Успішна відповідь (XML)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<success>true</success>
<data>
<item>
<Ref></Ref>
<Number></Number>
</item>
</data>
<errors/>
<warnings/>
<info/>
<messageCodes/>
<errorCodes/>
<warningCodes/>
<infoCodes/>
</root>
Метод update працює в моделі Freight (або FreightGeneral) і дозволяє оновити інформацію за створеною заявкою на перевезення великої кількості вантажу.
API-ключ користувача
[ВАШ КЛЮЧ]Назва моделі API
FreightGeneralPossible values: Назва методу API
updatePossible values: Успішна відповідь (JSON)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/json/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/json
Accept: */*
Content-Length: 750
{
"apiKey": "[ВАШ КЛЮЧ]",
"modelName": "FreightGeneral",
"calledMethod": "update",
"methodProperties": {
"Ref": "",
"Customer": "",
"CustomerContactName": "",
"CustomerPhone": "",
"CustomerEMail": "",
"SenderSettlement": "",
"SenderAddressString": "",
"SenderString": "",
"SenderName": "",
"SenderPhone": "",
"SenderEMail": "",
"DateTimeVehicleFiling": "",
"DateTimeVehicleDeparture": "",
"RecipientSettlement": "",
"RecipientAddressString": "",
"RecipientString": "",
"RecipientName": "",
"RecipientPhone": "",
"RecipientEMail": "",
"DateTimeVehicleArrival": "",
"DateTimeVehicleUnloading": "",
"IntermediateStoppingPoints": [
{}
],
"CargoDescriptionString": "",
"DeclaredCost": "",
"Cost": "",
"Weight": "",
"Length": "",
"Width": "",
"Height": "",
"Volume": "",
"SemiTrailerType": "",
"AdditionalInformation": ""
}
}Успішна відповідь (JSON)
{
"success": true,
"data": [
{
"Ref": "",
"Number": ""
}
],
"errors": [],
"warnings": [],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}Метод update працює в моделі Freight (або FreightGeneral) і дозволяє оновити інформацію за створеною заявкою на перевезення великої кількості вантажу.
API-ключ користувача
Назва моделі API
Назва методу API
Успішна відповідь (XML)
Прапор успішності виконання запиту
Масив повідомлень про помилки
Масив попереджень
Масив інформаційних повідомлень
Масив кодів інформаційних повідомлень
Масив кодів помилок
Масив кодів попереджень
Масив кодів додаткової інформації
POST /v2.0/xml/ HTTP/1.1
Host: api.novaposhta.ua/
Content-Type: application/xml
Accept: */*
Content-Length: 1627
"<?xml version="1.0" encoding="UTF-8"?>
<file>
<apiKey>[ВАШ КЛЮЧ]</apiKey>
<modelName>FreightGeneral</modelName>
<calledMethod>update</calledMethod>
<methodProperties>
<Ref></Ref>
<Customer></Customer>
<CustomerContactName></CustomerContactName>
<CustomerPhone></CustomerPhone>
<CustomerEMail></CustomerEMail>
<SenderSettlement></SenderSettlement>
<SenderAddressString></SenderAddressString>
<SenderString></SenderString>
<SenderName></SenderName>
<SenderPhone></SenderPhone>
<SenderEMail></SenderEMail>
<DateTimeVehicleFiling></DateTimeVehicleFiling>
<DateTimeVehicleDeparture></DateTimeVehicleDeparture>
<RecipientSettlement></RecipientSettlement>
<RecipientAddressString></RecipientAddressString>
<RecipientString></RecipientString>
<RecipientName></RecipientName>
<RecipientPhone></RecipientPhone>
<RecipientEMail></RecipientEMail>
<DateTimeVehicleArrival></DateTimeVehicleArrival>
<DateTimeVehicleUnloading></DateTimeVehicleUnloading>
<IntermediateStoppingPoints><item/></IntermediateStoppingPoints>
<CargoDescriptionString></CargoDescriptionString>
<DeclaredCost></DeclaredCost>
<Cost></Cost>
<Weight></Weight>
<Length></Length>
<Width></Width>
<Height></Height>
<Volume></Volume>
<SemiTrailerType></SemiTrailerType>
<AdditionalInformation></AdditionalInformation>
</methodProperties>
</file>
"Успішна відповідь (XML)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<success>true</success>
<data>
<item>
<Ref></Ref>
<Number></Number>
</item>
</data>
<errors/>
<warnings/>
<info/>
<messageCodes/>
<errorCodes/>
<warningCodes/>
<infoCodes/>
</root>
Останнє оновлення