Struktura CreateShipmentStructure

Opisywana struktura jest obiektem służącym do tworzenia nowych przesyłek w systemie. Jest wykorzystywana w metodzie createShipment jako jej parametr.

Pola struktury

Nazwa pola Typ Wymagane? Opis
authData AuthdataStructure Tak Struktura zawierająca dane autoryzacji
shipmentData ShipmentStructure Tak Struktura zawierająca dane o przesyłce

Przykład

<shipment>
    <authData>
        <username>test</username>
        <password>WSyj3$aDE</password>
    </authData>
    <shipmentData>
        <ship>
            <shipper>
                <address>
                    <name>Testomir Testalski</name>
                    <postcode>00999</postcode>
                    <city>Testowa</city>
                    <street>Testnicka</street>
                    <houseNumber>78</houseNumber>
                    <apartmentNumber>3</apartmentNumber>
                </address>
                <contact>
                    <personName>Testomir</personName>
                    <phoneNumber>600700800</phoneNumber>
                    <emailAddress>testomir@testalski.pl</emailAddress>
                </contact>
                <preaviso>
                    <personName>Zbigniew Nowak</personName>
                    <phoneNumber>669324789</phoneNumber>
                    <emailAddress>zibi.nowy@op.pl</emailAddress>
                </preaviso>
            </shipper>
            <receiver>
                <address>
                    <addressType></addressType>
                    <name>Testomir Testalski</name>
                    <postcode>00999</postcode>
                    <city>Testowa</city>
                    <street>Testnicka</street>
                    <houseNumber>78</houseNumber>
                    <apartmentNumber>3</apartmentNumber>                    
                </address>
                <contact>
                    <personName>Testomir</personName>
                    <phoneNumber>600700800</phoneNumber>
                    <emailAddress>testomir@testalski.pl</emailAddress>
                </contact>
                <preaviso>
                    <personName>Zbigniew Nowak</personName>
                    <phoneNumber>669324789</phoneNumber>
                    <emailAddress>zibi.nowy@op.pl</emailAddress>
                </preaviso>
            </receiver>
            <servicePointAccountNumber>1254823</servicePointAccountNumber>
        </ship>
       <shipmentInfo>
            <dropOffType>REGULAR_PICKUP</dropOffType>
            <serviceType>LM</serviceType>
            <billing>
                <shippingPaymentType>SHIPPER</shippingPaymentType>
                <billingAccountNumber>1736256</billingAccountNumber>
                <paymentType>BANK_TRANSFER</paymentType>
                <costsCenter>centrala łódź</costsCenter>
            </billing>
            <specialServices>
                <item>
                    <serviceType>UBEZP</serviceType>
                    <serviceValue>20</serviceValue>
                </item>
            </specialServices>
            <shipmentDate>2014-10-25</shipmentDate>
            <labelType>BLP</labelType>
           <waybill>12345678910</waybill>
       </shipmentInfo>
        <pieceList>
            <item>
                <type>PACKAGE</type>
                <width>120</width>
                <height>20</height>
                <lenght>20</lenght>
                <weight>15</weight>
                <quantity>1</quantity>
                <nonStandard>false</nonStandard>
                <blpPieceId>12312</blpPieceId>
            </item>
            <item>
                <type>ENVELOPE</type>
                <quantity>10</quantity>
            </item>
        </pieceList>
        <content>BIŻUTERIA</content>
        <comment>Proszę natarczywie dzwonić, czesto nie słyszę telefonu.</comment>
        <reference></reference>
    </shipmentData>
</shipment>
Wróć do listy tematów