jlevers / selling-partner-api

A PHP client library for Amazon's Selling Partner API
BSD 3-Clause "New" or "Revised" License
404 stars 198 forks source link

Exception on OrderItems Api (Invalid tax collection model) #540

Closed 0xSekar closed 1 year ago

0xSekar commented 1 year ago

Getting the following errors for a seller in Australia:

Error not handled, code: 0 - content: string(82) "Invalid value 'LowValueGoods' for 'model', must be one of 'MARKETPLACEFACILITATOR'"

and

Invalid value 'Amazon Commercial Services Pty Ltd' for 'responsible_party', must be one of 'AMAZON SERVICES, INC.'

This response values are not documented in https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-model. I wonder if you will accept a PR to add those values as constants on https://github.com/jlevers/selling-partner-api/blob/2f6b5520e7f4c1ffbd46a6f9592bccd5996666b3/lib/Model/OrdersV0/TaxCollection.php even if they are undocumented.

jlevers commented 1 year ago

Appreciate the offer of a PR – I'm just going to add them to my version of the OpenAPI models, because that's the easiest way to get them into the codebase.

jlevers commented 1 year ago

Fixed in v5.8.3.

seannycrow commented 1 week ago

How can we add this information now then? Because I get the same exception on Orders from all over Europe and I never used the taxcollection api. Thanks.

0xSekar commented 1 week ago

I think it should work in 7.x version. Which one are you using?