Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Call to a member function isSuccessful() on boolean #1

Open
@warmwhisky

Description

@warmwhisky

Hi I am new to this API. I quickly setup up your example for international delivery without duty but I am getting Call to a member function isSuccessful() on boolean

Any ideas?

I am using it with PHP 7.2 with Laravel 7.11.0 on Windows 10 Xampp.

Edit:
I should also say that my endpooint from DHL is https://express.api.dhl.com/mydhlapi/test/ instead of https://wsbexpress.dhl.com/rest/sndpt/ and the docs refers to shipment instead of ShipmentRequest as in your vendor file https://github.com/alex-LE/dhl-express-php-sdk/blob/master/src/ShipmentRequest.php

I have tried both yours and my endpoint with both shipment and ShipmentRequest

with your endpoint

https://wsbexpress.dhl.com/rest/sndpt/ShipmentRequest

Array ( [0] => The Shipper Account is invalid. [1] => Process failure occurred. Process ID associated for that transaction (201012585) )
null

with my endpoint

https://express.api.dhl.com/mydhlapi/test/ShipmentRequest

Call to a member function isSuccessful() on boolean

with my endpoint

https://express.api.dhl.com/mydhlapi/test/shipments
from here https://developer.dhl.com/api-reference/dhl-express-mydhl-api#reference-docs-section%create-shipment

Call to a member function isSuccessful() on boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions