get_labels asking for value not found in Amazon documentation #1278
Unanswered
godlyatheist
asked this question in
FAQ
Replies: 2 comments
|
Thank you, I will check my work |
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.
Describe the bug
When calling get_labels, error message "sp_api.base.exceptions.SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': "1 validation error detected: Value null at 'cartonIdList' failed to satisfy constraint: Member must not be null", 'details': ''}]". cartonIdList is not a value associated with the getLabels operation according to documentation. The code below used to work without error.
To Reproduce
`from sp_api.base import Marketplaces
from sp_api.api import FulfillmentInbound
credentials = dict(refresh_token='token', lwa_app_id='app_id', lwa_client_secret='secret')
label_blob = FulfillmentInbound(credentials=credentials, marketplace=Marketplaces.US).get_labels(
shipment_id = 'FBA0000000',
PageType = 'PackageLabel_Thermal',
LabelType = ['UNIQUE','PALLET'] )
print(label_blob['DownloadURL'])
`
Expected behavior
No error regarding cartonIdList, returns a URL
Desktop (please complete the following information):
Windows 10 build 19045 VSCode 1.85.1
Additional context
All reactions