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 · 0 comments
Open

GetListingItem -> Summaries -> ItemName not required #835

salyangoz opened this issue Dec 25, 2024 · 0 comments

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" } ] }

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

1 participant