amazon-php / sp-api-sdk

Amazon Selling Partner SPI - PHP SDKs
130 stars 53 forks source link

Order shipmentConfirmation returns null #438

Closed johncarlson21 closed 9 months ago

johncarlson21 commented 1 year ago

I am setting up our system to use the shipmentConfirmation call. I've tested this using the sandbox, however on a successful call, it returns "null"

I think this should return some data such as the status code, error etc. I do not think it should just fail, as we can then use this returned info to send emails with info to our system.

jsanchez-inova commented 1 year ago

must be of the type string, null PHP Fatal error: Uncaught TypeError: Return value of AmazonPHP\SellingPartner\Model\Orders\Address::getName() must be of the type string, null returned in /home/jsanchez/www/domains/dev2.cron/bins/cron_scripts/amazon_mws_v2/vendor/amazon-php/sp-api-sdk/src/AmazonPHP/SellingPartner/Model/Orders/Address.php:282

jasonhebert commented 9 months ago

This is an issue that should be taken up with the SP-API dev team at Amazon. You can submit an issue here. The OpenAPI spec has a null response returned from this API call and can be referenced here: ordersV0.json line 2561