• After switching to REST API the label printing doesn’t work anymore.
    Error message: Please specify a “phone” argument

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

    (@sal4sup)

    Hi @daishi ,

    This error comes directly from DHL’s REST API.

    When using REST, DHL requires a phone number on the order itself (shipping phone, or billing phone as fallback).
    The phone number set in the plugin settings is only the shipper phone, not the recipient’s.

    How to fix it:

    • Open the affected order in WooCommerce
    • Make sure a shipping phone number is set (or billing phone)
    • Save the order and create the label again

    For orders that were already placed without a phone number, it needs to be added once manually.

    If the phone number is already present and the error still appears, please enable debug logging and send us the log from one failed attempt.

    Best regards

    Thread Starter daishi

    (@daishi)

    Hi, the phone number is already present and the error still appears. Here is the log:

    2026-02-23T19:27:24+00:00 NOTICE GET URL: https://cig.dhl.de/services/production/rest/checkout/79576/availableServices?startDate=2026-02-24 CONTEXT: {"_legacy":true}

    2026-02-23T19:27:24+00:00 NOTICE GET Response Code: 200 CONTEXT: {"_legacy":true}

    2026-02-23T19:27:24+00:00 NOTICE GET Response Body: stdClass Object

    (

        [preferredLocation] => stdClass Object

            (

                [available] => 1

            )

        [preferredNeighbour] => stdClass Object

            (

                [available] => 1

            )

        [preferredDay] => stdClass Object

            (

                [available] => 1

                [validDays] => Array

                    (

                        [0] => stdClass Object

                            (

                                [start] => 2026-02-26T00:00:00.000+01:00

                                [end] => 2026-02-26T23:59:59.999+01:00

                            )

                        [1] => stdClass Object

                            (

                                [start] => 2026-02-27T00:00:00.000+01:00

                                [end] => 2026-02-27T23:59:59.999+01:00

                            )

                        [2] => stdClass Object

                            (

                                [start] => 2026-02-28T00:00:00.000+01:00

                                [end] => 2026-02-28T23:59:59.999+01:00

                            )

                        [3] => stdClass Object

                            (

                                [start] => 2026-03-02T00:00:00.000+01:00

                                [end] => 2026-03-02T23:59:59.999+01:00

                            )

                        [4] => stdClass Object

                            (

                                [start] => 2026-03-03T00:00:00.000+01:00

                                [end] => 2026-03-03T23:59:59.999+01:00

                            )

                        [5] => stdClass Object

                            (

                                [start] => 2026-03-04T00:00:00.000+01:00

                                [end] => 2026-03-04T23:59:59.999+01:00

                            )

                    )

            )

        [preferredTime] => stdClass Object

            (

                [available] => 

                [timeframes] => Array

                    (

                    )

            )

        [inCarDelivery] => stdClass Object

            (

                [available] => 

            )

        [sameDayDelivery] => stdClass Object

            (

                [available] => 

                [sameDayTimeframes] => Array

                    (

                    )

            )

        [noNeighbourDelivery] => stdClass Object

            (

                [available] => 1

            )

    )

     CONTEXT: {"_legacy":true}
    Thread Starter daishi

    (@daishi)

    Hi, I sent you the log two weeks ago. Could you please advice me how to fix this error?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.