XML import

Basic guidelines

In Client section there is an option to upload a XML file containing packet data. It is suitable for import complete packet data including customs declaration.

The file needs to conform to the following rules:

  • The structure of the file has to correspond to the XML schema definition which contains brief descriptions of particular fields.
  • Currently supported version is 1.
  • Accepted file encoding is UTF-8.

XML file example

<parcels version="1">
    <parcel> <!-- address delivery example -->
        <orderNumber>123abc</orderNumber>
        <senderLabel>my-eshop</senderLabel>
        <name>John</name>
        <surname>Doe</surname>
        <emailAddress>[email protected]</emailAddress>
        <phoneNumber>666555666</phoneNumber>
        <currency>CZK</currency>
        <cod>132.00</cod>
        <value>100.00</value>
        <weightKg>1.5</weightKg>
        <destination>
            <pickupPointOrCarrier>13</pickupPointOrCarrier>
            <street>Yellow street</street>
            <houseNumber>12</houseNumber>
            <city>Sun city</city>
            <zip>10101</zip>
        </destination>
    </parcel>
    <parcel> <!-- address delivery incl. customs declaration data example -->
        <orderNumber>246def</orderNumber>
        <senderLabel>my-eshop</senderLabel>
        <name>Jane</name>
        <surname>Doe</surname>
        <emailAddress>[email protected]</emailAddress>
        <phoneNumber>555666555</phoneNumber>
        <currency>CZK</currency>
        <cod>264.00</cod>
        <value>200.00</value>
        <weightKg>3</weightKg>
        <destination>
            <pickupPointOrCarrier>3294</pickupPointOrCarrier>
            <street>Rocky street</street>
            <houseNumber>2244</houseNumber>
            <city>Swiss city</city>
            <zip>50505</zip>
        </destination>
        <attributes>
            <attribute name="deliveryCost" value="32"/>
            <attribute name="deliveryCostEur" value="1.5"/>
        </attributes>
        <items>
          <item>
            <attributes>
                <attribute name="customsCode" value="700700700"/>
                <attribute name="productEan" value="1111111111111"/>
                <attribute name="value" value="100.0"/>
                <attribute name="currency" value="CZK"/>
                <attribute name="valueEur" value="4"/>
                <attribute name="productName" value="Kniha"/>
                <attribute name="productNameEn" value="Book"/>
                <attribute name="countryOfOrigin" value="CS"/>
                <attribute name="unitsCount" value="2"/>
                <attribute name="weight" value="800"/>
                <attribute name="invoiceNumber" value="F123456"/>
                <attribute name="invoiceIssueDate" value="07.03.2019"/>
                <attribute name="isFoodBook" value="true"/>
                <attribute name="isVoc" value="false"/>
            </attributes>
          </item>
          <item>
            <attributes>
                <attribute name="customsCode" value="800800800"/>
                <attribute name="productEan" value="2222222222222"/>
                <attribute name="value" value="140"/>
                ...
            </attributes>
          </item>
        </items>
    </parcel>
    <parcel>
    ...
    </parcel>
</parcels>