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

Dynamic requests doesn't works on sandbox #205

Open
Alex-mother-life opened this issue May 10, 2023 · 2 comments
Open

Dynamic requests doesn't works on sandbox #205

Alex-mother-life opened this issue May 10, 2023 · 2 comments

Comments

@Alex-mother-life
Copy link

Alex-mother-life commented May 10, 2023

amazon-sp-api version - 0.8.3

Trying connect to sandbox but can't resolve error - INVALID_SANDBOX_PARAMETERS
static & prod env. works fine

request:
let res1 = await sellingPartner.callAPI({ operation: "listAllFulfillmentOrders", endpoint: "fulfillmentOutbound", query: {}, }); console.log(res1);

respond:
Снимок экрана 2023-05-10 в 15 22 48

@amz-tools
Copy link
Owner

@Alex-mother-life, when using the sandbox you have to make sure to use the correct request parameters for the operation you want to test. You can find these inside the api models definitions in the docs by searching the corresponding json file for x-amzn-api-sandbox.

@k9ert
Copy link

k9ert commented Feb 28, 2024

@Alex-mother-life, when using the sandbox you have to make sure to use the correct request parameters for the operation you want to test.

It's confusing as this doesn't make so much sense for the dynamic sandbox. Unfortunately the documentation does not distinguish at all between static and dynamic. The word dynamic is not present anywhere in the documentation.

I couldn't find that clear distinction anywhere in any issue or via the search functionality. Can you maybe elaborate on that a bit?

Update: I guess i missed a central point: Some endpoints are supporting the dynamic sandbox and if they don't, they are returning static answers and in those cases you have to use the static request params.

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