selling-partner-api icon indicating copy to clipboard operation
selling-partner-api copied to clipboard

getOrders returns empty shipping_address

Open vproogresa opened this issue 1 year ago • 7 comments

We have a problem receiving orders, they keep coming to us without shipping information, they arrive empty. We already have Amazon's acceptance of the RDT. I am using the private api. And passing the shippingAddress and also the buyerInfo in data elements.

Since this did not work for me, I tried to retrieve that information through getreports with "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING" But this time I get an error: "Exception when calling ReportsV20210630Api->getReports: [403] { "errors": [ { "code": "Unauthorized", "message": "Access to the resource is forbidden", "details": "" } ] }"

I understand that passing the data elements is enough. Or do I have to create a specific configuration to be able to receive the PII data.

vproogresa avatar Sep 20 '23 11:09 vproogresa

Making the request from postman works correctly when passing the dataelements, but from jlevers it does not return the shippingaddres information.

vproogresa avatar Oct 04 '23 08:10 vproogresa

Investigating the other incidents I found a text that comments on the following: @jlevers are you approved for PII as a public developer, rather than as a private developer? Because I believe the OAuth flow won't work if you're not a public developer.

This means that if I am a private developer, I cannot use the data_elements ? If this is so, what would the code be to be able to obtain the getOrderAddress information, with a private developer account?

vproogresa avatar Oct 04 '23 09:10 vproogresa

Hi. I have the same problem( shipping_address is empty for all orders Screenshot_21

DiegoWtf avatar Nov 28 '23 16:11 DiegoWtf

Same problem here... no shipping address (name, street address); only postal code and city...

YaMoTse avatar Nov 30 '23 07:11 YaMoTse

I have tried passing values to $this->config->signRequest method in lib/Api/OrdersV0Api.php:91 as mentioned in #638 but no success:

$signedRequest = $this->config->signRequest( $request, null, '/orders/v0/orders', 'shippingAddress' );

PRodO5lNk5 avatar Dec 04 '23 18:12 PRodO5lNk5

same problem with v5.10.2 downgrade to v5.8.3 fixed the problem

pneun avatar Mar 01 '24 09:03 pneun

In the end what solved it for me was the configuration on Seller Platform itself. This data is considered as PII so it's not available out of the box even though getOrders automatically requests/creates an RDT. I'm running the 5.10.* version

PRodO5lNk5 avatar Mar 01 '24 13:03 PRodO5lNk5