Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getOrders returns empty shipping_address #619

Open
vproogresa opened this issue Sep 20, 2023 · 7 comments
Open

getOrders returns empty shipping_address #619

vproogresa opened this issue Sep 20, 2023 · 7 comments

Comments

@vproogresa
Copy link

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
Copy link
Author

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

@vproogresa
Copy link
Author

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?

@DiegoWtf
Copy link

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

@YaMoTse
Copy link

YaMoTse commented Nov 30, 2023

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

@PRodO5lNk5
Copy link

PRodO5lNk5 commented Dec 4, 2023

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' );

@pneun
Copy link

pneun commented Mar 1, 2024

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

@PRodO5lNk5
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants