python-amazon-mws / python-amazon-mws

Python wrapper for the Amazon Marketplace Web Service API
https://mws.readthedocs.io/en/develop/
The Unlicense
382 stars 217 forks source link

[Bug]: #285

Closed AntoWkill closed 1 year ago

AntoWkill commented 2 years ago

Python Version

3.8

Python Amazon MWS (PAM) Version

0.8 (PyPI version / GitHub master branch / 'legacy')

Has your copy of PAM been altered in any way?

No, I HAVE NOT made changes to the MWS code

Describe the issue

What happened When i call the api Orders ListOrderItems with a specific amazon order id, i get information about the order, if the order is an amazon custom order, i have the same information of not custom order.

Expected behavior I need to get the data: BuyerCustomizedInfo and precisely CustomizedURL as described on amazon docs but is missing

MWS Credential check

Bobspadger commented 2 years ago

Do you have the links to the amazon docs for the cusomised info you are referring too please?

AntoWkill commented 2 years ago

http://docs.developer.amazonservices.com/en_IT/orders-2013-09-01/Orders_Datatypes.html#BuyerCustomizedInfo

GriceTurrble commented 2 years ago

Seems like it's in the response, which we leave intact as much as possible. It may not be something we can affect.

  1. Can you produce the right response in the mws scratchpad?
  2. Is the necessary data missing from response.original?
Bobspadger commented 2 years ago

I have had oddities where Amazon neglect to return some element in the past.

I would suggest as @GriceTurrble has mentioned trying it in the scratchpad to see what amazon return, and also looking at the returned object as the returned request is in full and can be looked at (use a debugger like pycharm) and you can see the returned xml object from amazon.

We don't omit any elements from the conversion, so it should be in the .parsed object

If you try using the develop branch on here (even just in a testing environment) you can see we return the original response back in .original

Example here:

https://github.com/python-amazon-mws/python-amazon-mws/pull/241/files?authenticity_token=rLcU%2FYRiJJOlrc%2F37B8xWcDzRSAjj2amt3jWz6Qr4QBR98obPXrfbHGZafNvCDKOqPwwdB5UUcPH11gFBpPfZg%3D%3D&file-filters%5B%5D=.py&hide-deleted-files=true#diff-2d82a5af24664b60d7724939e965a1e10fd572b415edc2fbe1d4b1da84ef11c8

AntoWkill commented 2 years ago

Also in .parsed is not present, but also in scrathpad i can't see this value, is an amazon problem?

GriceTurrble commented 2 years ago

Must be. We pass the entire response unfiltered, so if it's missing from the response, that's on Amazon's side.