Error in request to Stuart: a destination phone is invalid

Good afternoon

We are integrating an online store (Woocommerce) with the Stuart platform and we are receiving the following error message: “Error in request to Stuart: a destination phone is invalid.”

The phone number in this order was entered correctly (Spanish format), you can give us an indication of what may be the cause of the problem.

Thanks in advance.

Hello @xavi,

Could you provide the phone number used in the request? Ideally you could provide us with some identifiable information for the order such as the ‘client_reference’ so that we can check the specific case in our logs.

Our post on How should I format phone numbers? might also be a useful resource for resolving this problem.

Hi Lauren

Sorry if I have not provided all the necessary information.
The client has the ID: 223728
The phone number is: 619072xxx (the three x’s correspond to numbers and the mobile phone of an operator in Spain, it was written as is without spaces between the digits).

Order Details # 3195

Payment through Secure Card Payment. Paid on October 30, 2020 @ 1:47 pm. Client IP: 93.176.xxx.xx

If you need more details, do not hesitate to ask for them.

Thanks in advance.

Xavier

Thank you for the details, the error for this request was

{
    "error": "PHONE_INVALID",
    "message": "a destination phone is invalid",
    "data": {
        "job.dropoffs.address": [
            "must be filled",
            "is not in a valid area"
        ],
        "job.dropoffs.contact_phone": [
            "is an invalid number"
        ]
    }
}

In this case the phone number error is misleading and the actual error is that there is no destination address provided. The phone number seems to validate fine if a valid address is provided.

We will report this error scenario internally to help ensure the error is more informative in the future. Thank you for bringing this to our attention.