The purpose of the "Calculator" service is the operative calculation of the shipping cost for a potential customer. The description of the formation of the fields for introduction into the form is presented in Table 2.5

 

Example of an XML code for a single submission, wait = 1: Example of request execution
<?xml version="1.0" encoding="UTF-8"?>
<param>
<login>login</login>
<function>CalculateShipments</function>
<request>
<CalculateShipment>
<ClientUID>62f66c7c-cd19-11df-bb67-
00215aee3ebe</ClientUID>
<SenderService>0</SenderService>
<SenderBranch_UID>d0a207fb-0115-11df-b41f-
00215aee3ebe</SenderBranch_UID>
<SenderCity_UID/>
<ReceiverService>1</ReceiverService>
<ReceiverBranch_UID/>
<ReceiverCity_UID>62c3d54a-749b-11df-b112-
00215aee3ebe</ReceiverCity_UID>
<COD>300</COD>
 
<Conditions_items>
<ContitionsName></ContitionsName>
</Conditions_items>
<Places_items>
<SendingFormat>PAX</SendingFormat>
<Quantity>1</Quantity>
<Weight>6</Weight>
<Length>50</Length>
<Width>50</Width>
<Height>80</Height>
<Packaging/>
<Insurance>300</Insurance>
</Places_items>
</CalculateShipment>
</request>
 
<sign>sign*</sign>
</param>
<return>
<api>API-1C</api>
<apiversion>1</apiversion>
<result_table>
<items>
<PriceOfDelivery>134,23</PriceOfDelivery>
<Error>000</Error>
</items>
</result_table>
<result_uuid>552</result_uuid>
<errors>
<code>000</code>
<name> </name>
</errors>
</return>

Table 2.4. Description of the contents of <request>XML code.

Field
Description Type
CalculateShipment
Block for description of departure
ClientUID
Unique customer ID assigned after a counterpart is entered into the system (Mandatory)
Uniqueidentifier
SenderService
Type of service if
"0" - warehouse
"1" - door (Mandatory)
Boolean (1/0)
SenderBranch_UID
The unique identifier of the Sender unit, the result of the Branch function, paragraph 1.7. Installed if [SenderService] = 0 (If the service of the sender is a compulsory one)
Uniqueidentifier
SenderСity_UID
Unique sender city identifier, the result of the "City" function, p.1.5. Installed if [SenderService] = 1 (If the sender service door is required - Required)
Uniqueidentifier
ReceiverService
Type of service if
"0" - warehouse
"1" - door (Mandatory)
Boolean (1/0)
ReceiverBranch_UID
Unique identifier of the Recipient subdivision, the result of the Branch function, p.1.7.
Installed if [ReceiverService] = 0 (If service
Recipient Warehouse - Required)
Uniqueidentifier
ReceiverCity_UID
The unique identifier of the recipient city, the result of the "City" function, p.1.5. Installs if
Uniqueidentifier
 
[ ReceiverService] = 1 (If the recipient's door service is Mandatory)
 
Block description of additional delivery conditions
Conditions_items
The block may have one or more entries, the result of the "ShipmentOptCondition" function, p.1.10.
ContitionsName
Unique condition identifier
Uniqueidentifier
A description of the places of departure
Places_items
The result of the "ShipmentFormats" function p.1.9.
The block may have one or more entries. When forming a place, check the shipping format in accordance with the minimum and maximum parameters of weight, volume, insurance. (Obligatory)
SendingFormat
Code format
Text
Quantity
departure (obligatory)
Number
Volume
Volume (Required)
Number
Weight
Weight (Mandatory)
Number
Packaging
Packaging
 
Insurance
Insurance(Mandatory)
Number