selling-partner-api
selling-partner-api copied to clipboard
getOrders returns empty shipping_address
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.
Making the request from postman works correctly when passing the dataelements, but from jlevers it does not return the shippingaddres information.
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?
Hi.
I have the same problem( shipping_address is empty for all orders
Same problem here... no shipping address (name, street address); only postal code and city...
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' );
same problem with v5.10.2 downgrade to v5.8.3 fixed the problem
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