Skip to content

PatchListingItems #618

Answered by TechyChap
astanley44 asked this question in Q&A
Jul 14, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Here's an example that uses the get listings to find the product type then patches the stock to zero.

            ParameterGetListingsItem searchCriteria = new ParameterGetListingsItem();
            searchCriteria.sellerId = mysellerID;
            searchCriteria.sku = SKU;
            searchCriteria.marketplaceIds = new string[] { MarketPlace.UnitedKingdom.ID };
            searchCriteria.includedData = new ListingsIncludedData[] { ListingsIncludedData.Summaries };
            var listing = amazonConnection.ListingsItem.GetListingsItem(searchCriteria);

            var productType = listing.Summaries.First().ProductType;

            var patch = new Dictionary<string, object>()
        …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@astanley44
Comment options

Answer selected by astanley44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants