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

GetLowestPricedOffersForSKU - 400 Issue #185

Open
ashleyc156 opened this issue Jul 3, 2019 · 2 comments
Open

GetLowestPricedOffersForSKU - 400 Issue #185

ashleyc156 opened this issue Jul 3, 2019 · 2 comments

Comments

@ashleyc156
Copy link

When calling the GetLowestPricedOffersForSKU I receive the following response:

[Info][2019/07/03 11:34:04 guest@::1 AmazonProductInfo.php:309 sendRequest] Making request to Amazon: GetLowestPricedOffersForSKU
[Urgent][2019/07/03 11:34:05 guest@::1 AmazonProductInfo.php:311 checkResponse] Bad Response! 400 Bad Request: -

I've been using the library for sometime without issue, this is the only call that doesn't work. Has anyone else experienced this problem?

@Peardian
Copy link
Collaborator

Peardian commented Jul 3, 2019

A 400 error with no error message? Strange... Usually, Amazon gives errors if certain parameters are wrong, so I'm not sure what the problem would be here. Does it happen with any SKU, or just some?

I don't have much experience with this particular API action, so I can't yet verify if the feature works for me. I will look into it when I get the time, though I don't know when that will be.

@ashleyc156 ashleyc156 changed the title GetLowestPricedOffersForSKU - 404 Issue GetLowestPricedOffersForSKU - 400 Issue Jul 4, 2019
@joekersh
Copy link

joekersh commented Nov 4, 2021

If anyone comes across this issue, 'ItemCondition' is a required field, which is why it fails.

If you're running a local version of this package now its not being maintained, in AmazonProductInfo.php around line 327 there is a function called prepareLowestPriced()

You need to insert

$this->options['ItemCondition'] = 'New';

after these two lines

$this->options['SellerSKU'] = $this->options['SellerSKUList.SellerSKU.1'];

$this->options['ASIN'] = $this->options['ASINList.ASIN.1'];

It will then work

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

3 participants