python-amazon-mws icon indicating copy to clipboard operation
python-amazon-mws copied to clipboard

[Bug]:

Open AntoWkill opened this issue 4 years ago • 6 comments

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

  • [X] I have removed my MWS credentials from any tracebacks and code samples

AntoWkill avatar Dec 14 '21 12:12 AntoWkill

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

Bobspadger avatar Dec 14 '21 13:12 Bobspadger

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

AntoWkill avatar Dec 14 '21 13:12 AntoWkill

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?

GriceTurrble avatar Dec 14 '21 14:12 GriceTurrble

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

Bobspadger avatar Dec 14 '21 14:12 Bobspadger

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

AntoWkill avatar Dec 15 '21 17:12 AntoWkill

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

GriceTurrble avatar Dec 15 '21 21:12 GriceTurrble