• BOLD

    (@welovebold)


    Hello,

    our customer wants to send a package to Switzerland but can’t create a label with this error message in the log:
    Response Error: SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property.

    Plugin-Version: 3.8.1
    Woocommerce: 9.6.0

    Here is the log:

    2025-01-30T12:23:43+00:00 Notiz "createShipmentOrder" called with: Array
    (
        [Version] => Array
            (
                [majorRelease] => 3
                [minorRelease] => 1
            )
    
        [ShipmentOrder] => Array
            (
                [sequenceNumber] => 3400
                [Shipment] => Array
                    (
                        [ShipmentDetails] => Array
                            (
                                [product] => V53WPAK
                                [accountNumber] => hidden
                                [shipmentDate] => 2025-01-30
                                [ShipmentItem] => Array
                                    (
                                        [weightInKG] => 0.49
                                    )
    
                                [Service] => Array
                                    (
                                        [Endorsement] => Array
                                            (
                                                [active] => 1
                                                [type] => IMMEDIATE
                                            )
    
                                    )
    
                                [Notification] => Array
                                    (
                                        [recipientEmailAddress] => hidden
                                    )
    
                                [customerReference] => 3400
                                [returnShipmentReference] => 3400
                            )
    
                        [Shipper] => Array
                            (
                                [Name] => Array
                                    (
                                        [name1] => Aesthetica Beauty
                                        [name2] => hidden
                                    )
    
                                [Address] => Array
                                    (
                                        [streetName] => hidden
                                        [streetNumber] => hidden
                                        [zip] => hidden
                                        [city] => hidden
                                        [Origin] => Array
                                            (
                                                [countryISOCode] => DE
                                                [state] => Deutschland
                                            )
    
                                    )
    
                                [Communication] => Array
                                    (
                                        [phone] => hidden
                                        [email] => hidden
                                    )
    
                            )
    
                        [Receiver] => Array
                            (
                                [name1] => hidden
                                [Address] => Array
                                    (
                                        [streetName] => hidden
                                        [streetNumber] => hidden
                                        [zip] => 6205
                                        [city] => Eich
                                        [Origin] => Array
                                            (
                                                [countryISOCode] => CH
                                                [state] => Luzern
                                            )
    
                                    )
    
                                [Communication] => Array
                                    (
                                        [phone] => hidden
                                        [email] => hidden
                                    )
    
                                [Postfiliale] => Array
                                    (
                                        [postNumber] => 
                                    )
    
                            )
    
                        [ExportDocument] => Array
                            (
                                [invoiceNumber] => 3400
                                [exportType] => COMMERCIAL_GOODS
                                [exportTypeDescription] => Blemish Balm, Normale Haut, Trockene Haut
                                [termsOfTrade] => DDU
                                [placeOfCommital] => CH
                                [customsCurrency] => EUR
                                [ExportDocPosition] => Array
                                    (
                                        [0] => Array
                                            (
                                                [description] => Blemish Balm, Normale Haut, Trockene Haut
                                                [amount] => 5
                                                [customsValue] => 36.1345
                                            )
    
                                    )
    
                                [additionalFee] => 15.99
                            )
    
                    )
    
            )
    
        [labelResponseType] => B64
        [labelFormat] => 910-300-410
    )
     CONTEXT: {"_legacy":true}
    2025-01-30T12:23:43+00:00 Notiz Response Error: SOAP-ERROR: Encoding: object has no 'countryCodeOrigin' property

    Thank you in advance!
    BOLD

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Saleem Summour

    (@sal4sup)

    Hi @welovebold ,

    Thank you for reaching out!

    The error “SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property” occurs because the Country of Manufacture is missing for the product. To resolve this, please ensure that each product has a Country of Manufacture set in the product settings.

    You can find detailed instructions on setting this up here:
    DHL WooCommerce Documentation – Product Settings

    Additionally, we highly recommend switching to the REST API instead of SOAP, as DHL will be discontinuing SOAP support soon. Using REST API ensures better compatibility and long-term support.

    Let us know if you need further assistance!

Viewing 1 replies (of 1 total)

The topic ‘Encoding: object has no ‘countryCodeOrigin’ property’ is closed to new replies.