Closed phploader closed 2 years ago
Maybe some customers have not stored all of their info.
No. I still use the old MWS interface in parallel and was able to import all data of this order via MWS. For this reason I exclude missing data or missing PII rights.
I have now also updated the Selling-Partner-API to the current 5.4.0.
Problem still exists.
Can you try dumping the raw response from the SPAPI response and see if it returns the missing values? This could very well be a SPAPI problem.
I don't see anything wrong with your code. Could you please provide a screenshot of your SP API app config in Seller Central?
Hello @gokigoks Which answer do you mean? I did the output with "print_r($result);" and output in the First Message like this. How else should I mac the output?
Hallo @jlevers, This is my cofiguration, look at the picture. I had also already set all the hooks to test, but same problem.
(App names I have replaced with XXX!).
You won't be able to retrieve shipping addresses with the roles you have access to -- Tax Invoicing gives you access to the buyer_info
data, but not shipping-related info. What happens if you only pass buyerInfo
to $data_elements
?
@jlevers I tried so just now and passed only byer_info. Unfortunately the same problem. :-( Are my APP settings so in order or should I change something?
Amazon gave me the following answer:
Please make a call to getOrders and use the Atz.sprdt|XXXXX token under the x-amz-access-token.
Amazon support assumes that it is transferred wrong token when querying. Since I use this API for this, I have made no change in the direction, because I assume that this API already correctly transmits the data to Apazon. Or could there be an internal problem with the API?
Can someone check my code and confirm if it works as it is?
Ok, thanks for all who have investigated the problem with. I was now able to solve the problem.
The token needs to be regenerated, just as was said here: https://github.com/amzn/selling-partner-api-models/issues/1854
@jlevers I'm afraid I have another problem from your other project: https://github.com/jlevers/spapi-oauth-template/issues/4
I guess your project doesn't work with new composer packages anymore. But I also just need a simple script that works. I have already created something and I also have difficulties to use your API. I think for you the error would be easy to find than for me.
Glad you got it resolved. i'll be addressing the issue in the OAuth repo in a couple weeks by releasing a new version of the OAuth flow that's built on Laravel.
Unfortunately, the topic I created here was mistakenly closed although the problem persists. https://github.com/jlevers/selling-partner-api/issues/388 I would ask to look at the problem again.
Hello,
I use SDK in the version: 5.4.0
I am trying to retrieve order information with the following code:
In response I get the following result. As you can see, customer data is missing like name, first name, street:
(Please note that I made sensitive data with XX away).
Amazon support says that I already have PII roll and the data I had already received with the old interface MWS as well.
Can you please tell me if it is a bug in my code that I am not getting this data?