saleweaver / python-amazon-sp-api

Python wrapper to access the amazon selling partner API
https://python-amazon-sp-api.readthedocs.io/en/latest/
MIT License
531 stars 234 forks source link

Issues encountered while using the FulfillmentInbound V2024-03-20 version. #1393

Closed TSLdob closed 3 months ago

TSLdob commented 6 months ago

Seeking help... How can I solve these two problems when using FulfillmentInbound V2024-03-20?

When I use FulfillmentInbound.get_shipment, I can't get all the return values, such as shipmentConfirmationId. The official documentation indicates that this return value is optional, but I don't know how to select it.

When I use some methods, I get an error, such as with FulfillmentInbound.update_shipment_delivery_window, which returns [{'code': 'Unauthorized', 'message': 'Access to requested resource is denied.', 'details': ''}].

saleweaver commented 6 months ago

This seems to be related to an open pull request. Please make sure that the endpoint you're calling actually exists for the version you're using. There's a PR on the way to mark incorrect method usage for versioned endpoints.

xEverth commented 5 months ago

Hello!

Just a few preliminary information that may help:

Carefully look at the path for the request: for the /v0/ it was /fba/inbound, for the /2024-03-20/ it is /inbound/fba. This mostly explains the "Access to requested resource is denied"

Some operations have been discontinued from the /v0/ to the /2024-03-20/ and the notice on SP-API docs says the following: Warning!

All operations other than getLabels, getBillOfLading, and getPrepInstructions are deprecated and will be removed on December 20, 2024.

For continued programmatic access to Fulfillment Inbound, migrate to the Fulfillment Inbound v2024-03-20 API.

Now some questions for @saleweaver :