For the complete documentation index, see llms.txt. This page is also available as Markdown.

Фрахт

Робота із заявками на перевезення вантажів

Отримати список заявок (JSON)

post

Метод getFreightList моделі Freight (або FreightGeneral) дозволяє отримати список заявок на фрахт.

Body
apiKeystringRequired

API-ключ користувача

Example: [ВАШ КЛЮЧ]
modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (JSON)

application/json
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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": ""
  }
}
200

Успішна відповідь (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": []
}

Отримати список заявок (XML)

post

Метод getFreightList моделі Freight (або FreightGeneral) дозволяє отримати список заявок на фрахт.

Body
apiKeystringRequired

API-ключ користувача

modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (XML)

application/xml
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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>
"
200

Успішна відповідь (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>

Відкликати заявку (JSON)

post

Метод deny працює в моделі Freight (або FreightGeneral) і дозволяє відкликати подану заявку.

Body
apiKeystringRequired

API-ключ користувача

Example: [ВАШ КЛЮЧ]
modelNamestring · enumRequired

Назва моделі API

Example: FreightGeneralPossible values:
calledMethodstring · enumRequired

Назва методу API

Example: denyPossible values:
Responses
200

Успішна відповідь (JSON)

application/json
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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": ""
  }
}
200

Успішна відповідь (JSON)

{
  "success": true,
  "data": [
    {
      "Ref": "",
      "Number": ""
    }
  ],
  "errors": [],
  "warnings": [],
  "info": [],
  "messageCodes": [],
  "errorCodes": [],
  "warningCodes": [],
  "infoCodes": []
}

Відкликати заявку (XML)

post

Метод deny працює в моделі Freight (або FreightGeneral) і дозволяє відкликати подану заявку.

Body
apiKeystringRequired

API-ключ користувача

modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (XML)

application/xml
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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>
"
200

Успішна відповідь (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>

Отримати перелік заявок (JSON)

post

Метод getFreight працює в моделі Freight (або FreightGeneral) і дозволяє отримати перелік заявок із фільтрацією за ідентифікатором (REF) заявки та ознакою видалення.

Body
apiKeystringRequired

API-ключ користувача

Example: [ВАШ КЛЮЧ]
modelNamestring · enumRequired

Назва моделі API

Example: FreightGeneralPossible values:
calledMethodstring · enumRequired

Назва методу API

Example: getFreightPossible values:
Responses
200

Успішна відповідь (JSON)

application/json
successbooleanRequired

Прапор успішності виконання запиту

dataobject · GetFreightItem[]Required

Перелік заявок

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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": ""
  }
}
200

Успішна відповідь (JSON)

{
  "success": true,
  "data": [
    {}
  ],
  "errors": [],
  "warnings": [],
  "info": [],
  "messageCodes": [],
  "errorCodes": [],
  "warningCodes": [],
  "infoCodes": []
}

Отримати перелік заявок (XML)

post

Метод getFreight працює в моделі Freight (або FreightGeneral) і дозволяє отримати перелік заявок із фільтрацією за ідентифікатором (REF) заявки та ознакою видалення.

Body
apiKeystringRequired

API-ключ користувача

modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (XML)

application/xml
successbooleanRequired

Прапор успішності виконання запиту

dataobject · GetFreightItemRequired

Перелік заявок

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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>
"
200

Успішна відповідь (XML)

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <success>true</success>
    <data>
        <item/>
    </data>
    <errors/>
    <warnings/>
    <info/>
    <messageCodes/>
    <errorCodes/>
    <warningCodes/>
    <infoCodes/>
</root>

Створити заявку на фрахт (JSON)

post

Метод save працює в моделі Freight (або FreightGeneral) і дозволяє створити заявку на перевезення великої кількості вантажу.

Body
apiKeystringRequired

API-ключ користувача

Example: [ВАШ КЛЮЧ]
modelNamestring · enumRequired

Назва моделі API

Example: FreightGeneralPossible values:
calledMethodstring · enumRequired

Назва методу API

Example: savePossible values:
Responses
200

Успішна відповідь (JSON)

application/json
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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": ""
  }
}
200

Успішна відповідь (JSON)

{
  "success": true,
  "data": [
    {
      "Ref": "",
      "Number": ""
    }
  ],
  "errors": [],
  "warnings": [],
  "info": [],
  "messageCodes": [],
  "errorCodes": [],
  "warningCodes": [],
  "infoCodes": []
}

Створити заявку на фрахт (XML)

post

Метод save працює в моделі Freight (або FreightGeneral) і дозволяє створити заявку на перевезення великої кількості вантажу.

Body
apiKeystringRequired

API-ключ користувача

modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (XML)

application/xml
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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>
"
200

Успішна відповідь (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>

Оновити заявку на фрахт (JSON)

post

Метод update працює в моделі Freight (або FreightGeneral) і дозволяє оновити інформацію за створеною заявкою на перевезення великої кількості вантажу.

Body
apiKeystringRequired

API-ключ користувача

Example: [ВАШ КЛЮЧ]
modelNamestring · enumRequired

Назва моделі API

Example: FreightGeneralPossible values:
calledMethodstring · enumRequired

Назва методу API

Example: updatePossible values:
Responses
200

Успішна відповідь (JSON)

application/json
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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": ""
  }
}
200

Успішна відповідь (JSON)

{
  "success": true,
  "data": [
    {
      "Ref": "",
      "Number": ""
    }
  ],
  "errors": [],
  "warnings": [],
  "info": [],
  "messageCodes": [],
  "errorCodes": [],
  "warningCodes": [],
  "infoCodes": []
}

Оновити заявку на фрахт (XML)

post

Метод update працює в моделі Freight (або FreightGeneral) і дозволяє оновити інформацію за створеною заявкою на перевезення великої кількості вантажу.

Body
apiKeystringRequired

API-ключ користувача

modelNamestring · enumRequired

Назва моделі API

Possible values:
calledMethodstring · enumRequired

Назва методу API

Possible values:
Responses
200

Успішна відповідь (XML)

application/xml
successbooleanRequired

Прапор успішності виконання запиту

errorsstring[]Required

Масив повідомлень про помилки

warningsstring[]Required

Масив попереджень

infostring[]Required

Масив інформаційних повідомлень

messageCodesstring[]Required

Масив кодів інформаційних повідомлень

errorCodesstring[]Required

Масив кодів помилок

warningCodesstring[]Required

Масив кодів попереджень

infoCodesstring[]Required

Масив кодів додаткової інформації

post/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>
"
200

Успішна відповідь (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>

Останнє оновлення