Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetListingItem -> Summaries -> ItemName not required #835

Open
salyangoz opened this issue Dec 25, 2024 · 1 comment
Open

GetListingItem -> Summaries -> ItemName not required #835

salyangoz opened this issue Dec 25, 2024 · 1 comment

Comments

@salyangoz
Copy link

salyangoz commented Dec 25, 2024

Problem description:

Hello, for getListingItem function sometimes summaries -> itemName is returning null. So we think that this field is not need to be required instead it needs to be optional. I know it's weird for Amazon not return itemName, but for this log error we know that ietm name can be nullable.

Error:

# ArgumentCountError: SellingPartnerApi\Seller\ListingsItemsV20210801\Dto\ItemSummaryByMarketplace::__construct(): Argument #5 ($itemName) not passed

Code

return $service->getListingsItem(
            $sellerId,
            $sku,
            [$this->getMarketplaceId()],
            null,
            ['summaries,attributes,issues,offers,fulfillmentAvailability']
        )->dto();

Seller Central SP API config page screenshot

Screenshot 2024-12-25 at 20 11 12

itemName is not returning example
Response
{ "sku": "xxx", "summaries": [ { "marketplaceId": "xxx", "asin": "xx", "productType": "PRODUCT", "conditionType": "new_new", "status": [ "DISCOVERABLE" ], "createdDate": "2023-02-02T11:40:55.495Z", "lastUpdatedDate": "2023-11-25T07:54:48.062Z" } ] }

@gwharton
Copy link

gwharton commented Jan 5, 2025

Also experiencing this. I have 2 items that refuse to return itemName in the summaries section. Interestingly if I look at the item in the Inventory page on seller central, the Title of the product is missing the link to view it on amazon.

As soon as you call ->dto() on the response object everything bugs out as itemName is required.

I'm wondering if it will pick up the item_name attribute eventually and amazon start populating the itemName summaries field on its own and the problem will go away.

Edit : in my case it is broken on both searchListingsItems and getListingsItem calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants