Replies: 1 comment
-
Update to the question, I managed to get a different reply with this format: res = FulfillmentInbound(credentials=credentials).update_transport_information("FBAxxxxxxxxx",ShipmentType="LTL",IsPartnered="True") but this time the reply is: {'code': 'InvalidInput', 'message': 'This shipment was converted to Send to Amazon and no updates can be made to this shipment', 'details': ''} What's going on? Why can't I update a shipment through the API? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to update a shipment to LTL and keep getting the same error:
Traceback (most recent call last):
File "<pyshell#625>", line 1, in
res = FulfillmentInbound(credentials=credentials).update_transport_information("FBA1xxxxxx",shipmentType = {"shipmentType":"LTL"})
File "C:\Users\Ferdinand\AppData\Local\Programs\Python\Python39\lib\site-packages\sp_api\base\helpers.py", line 19, in wrapper
return function(*args, **kwargs)
File "C:\Users\Ferdinand\AppData\Local\Programs\Python\Python39\lib\site-packages\sp_api\api\fulfillment_inbound\fulfillment_inbound.py", line 267, in update_transport_information
return self._request(
File "C:\Users\Ferdinand\AppData\Local\Programs\Python\Python39\lib\site-packages\sp_api\base\client.py", line 129, in _request
return self._check_response(res)
File "C:\Users\Ferdinand\AppData\Local\Programs\Python\Python39\lib\site-packages\sp_api\base\client.py", line 144, in _check_response
raise exception(error, headers=res.headers)
sp_api.base.exceptions.SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': "1 validation error detected: Value '' at 'shipmentType' failed to satisfy constraint: Member must satisfy enum value set: [LTL, SP]", 'details': ''}]
I'm trying a lot of different variations of the command but they all return to that, this is what I've tried:
res = FulfillmentInbound(credentials=credentials).update_transport_information("FBA1xxxxxx",shipmentType = {"shipmentType":"LTL"})
res = FulfillmentInbound(credentials=credentials).update_transport_information("FBA1xxxxxx",shipmentType = "LTL")
data = {
"ShipmentType": ["LTL"],
"IsPartnered": True
}
res = FulfillmentInbound(credentials=credentials).update_transport_information"FBA1xxxxxx",data=data)
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions