Skip to content

search_catalog_items returns error when includedData='attributes' is present #787

@Foxtrot0711

Description

@Foxtrot0711

Describe the bug
"search_catalog_items" function in 'CatalogItems' Endpoint returns an error when 'attributes' in included in 'includedData'
Error:
[{'code': 'InvalidInput', 'message': "Invalid 'includedData' requested.", 'details': ''}]

but it works fine with "get_catalog_item"

due to
https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2022-04-01-reference#includeddata-subgroup-2
'attributes' is valid for both search_catalog_items and get_catalog_item

To Reproduce

res= client.search_catalog_items (marketplaceIds='A1PA6795UKMFR9', keywords='B01LTHMF1Y', identifiersType='ASIN',includedData='attributes,identifiers,summaries,images,productTypes')

Expected behavior
should not throw an error but return 'attributes' in the result

Desktop (please complete the following information):
Windows 10, python 3.10

Additional context
It would be very nice if 'attributes' would include 'Creator' or 'Artist'
like 'get_item' in the 'Catalog' Endpoint does in 'AttributeSets'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions