jlevers / selling-partner-api

A PHP client library for Amazon's Selling Partner API
BSD 3-Clause "New" or "Revised" License
409 stars 200 forks source link

Vendor Central encountered an error while calling patchListingItem #777

Open frankHHHHHHH opened 2 months ago

frankHHHHHHH commented 2 months ago

Problem description:

Error:

{
    "errors ": [
        {
            "code ": "InvalidInput ",
            "message ": "Invalid  'sellerId ' and  'marketplaceId ' combination provided. ",
            "details ": " "
        }
    ]
}

Code


listingsItemPatchRequest=====>
{
    "patches": [
        {
            "op": "REPLACE",
            "path": "/attributes/part_number",
            "value": [
                {
                    "marketplace_id": "AT**********",
                    "value": "3370SAA8219US_1"
                }
            ]
        }
    ],
    "productType": "SHOCK_ABSORBER"
}

itemsApi.patchListingsItem("A39********", 8158SAA8213USVC, Collections.singletonList("AT**********"), listingsItemPatchRequest, null);

I need to update or publish the listing under the Vendor Central account now. Is there any interface support available