Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Sign InSign Up

Softans

Softans Logo Softans Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
Home/ Questions/Q 4480
Answered
Ghulam Nabi
Ghulam Nabi
Asked: January 23, 20232023-01-23T12:50:01+00:00 2023-01-23T12:50:01+00:00

Amazon SP-API Python update transport information keep returning Member must satisfy enum value set: [LTL, SP]

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': ''}]
amazon sp-api python update transport information keep returning member must satisfy enum value set: [ltlsp]
  • 0
  • 2 2 Answers
  • 15 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  1. Ghulam Nabi
    2023-01-23T12:50:12+00:00Added an answer on January 23, 2023 at 12:50 pm

    The error message “Member must satisfy enum value set: [LTL, SP]” when using the Amazon SP-API in Python is indicating that the value provided for the “transport_type” parameter is not valid. The transport_type parameter is used to specify the type of transport being used for the shipment.

    The Amazon SP-API only supports two transport types: “LTL” (less-than-truckload) and “SP” (small parcel). So, if you’re seeing this error, it’s likely because the value you’re passing for the “transport_type” parameter is not one of these two options.

    Here are a few things you can try to fix this error:

    • Verify that you are passing the correct value for the “transport_type” parameter. Double-check that you are using “LTL” or “SP” as the value.
    • If you are passing a variable to the “transport_type” parameter, make sure that the variable is set to “LTL” or “SP”.
    • If you are using a library to interact with the Amazon SP-API, make sure that the library is correctly handling the “transport_type” parameter.
    • If the problem persists, it is recommended to check the documentation of the Amazon SP-API and the library you are using, to make sure you are following the correct format for the transport_type parameter.

    In summary, this error occurs when the value passed for the transport_type parameter is not a valid option, you should make sure you are passing “LTL” or “SP” as the value for transport_type, or that the variable you are passing is set to one of these two options.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Best Answer
    Ghulam Nabi
    2023-01-23T12:52:55+00:00Added an answer on January 23, 2023 at 12:52 pm

    The error message “1 validation error detected: Value ” at ‘shipmentType’ failed to satisfy constraint: Member must satisfy enum value set: [LTL, SP]” is indicating that the value provided for the “shipmentType” parameter is not valid. The shipmentType parameter is used to specify the type of shipment being used for the update_transport_information call.

    The Amazon SP-API only supports two shipment types: “LTL” (less-than-truckload) and “SP” (small parcel). The error message is indicating that the value you’re passing for the “shipmentType” parameter is empty, which is not one of the two options.

    Here are a few things you can try to fix this error:

    • Verify that you are passing the correct value for the “shipmentType” parameter. Double-check that you are using “LTL” or “SP” as the value.
    • Check that the value being passed to the “shipmentType” parameter is not an empty string or null.
    • If you are passing a variable to the “shipmentType” parameter, make sure that the variable is set to “LTL” or “SP”.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • Popular
  • Answers
  • Ghulam Nabi

    Why are the British confused about us calling bread rolls ...

    • 5 Answers
  • Jerry

    Add file to native target programmatically via tuist/XcodeProj

    • 4 Answers
  • Ghulam Nabi

    Is this statement, “i see him last night” can be ...

    • 4 Answers
  • Ghulam Nabi
    Ghulam Nabi added an answer It seems that the issue you are facing is a… January 27, 2023 at 1:37 pm
  • Ghulam Nabi
    Ghulam Nabi added an answer The error "E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)" is caused by… January 27, 2023 at 1:35 pm
  • Ghulam Nabi
    Ghulam Nabi added an answer The Chrome browser uses both memory cache and disk cache… January 27, 2023 at 1:32 pm

Trending Tags

android c++ cypress flutter java javascript python selenium testng webdriver

Top Members

Robert

Robert

  • 3 Questions
  • 1k Points
Luci

Luci

  • 5 Questions
  • 1k Points
Kevin O Brien

Kevin O Brien

  • 2 Questions
  • 1k Points

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Softans

Softans is a social questions & Answers Engine which will help you establish your community and connect with other people.

About Us

  • Blog
  • Jobs
  • About Us
  • Meet The Team
  • Contact Us

Legal Stuff

Help

Follow

© 2021 Softans. All Rights Reserved
With Love by Softans.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.