Call to a member function isSuccessful() on boolean #1
Description
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