Replies: 8 comments 16 replies
-
Found a bug, the ListingItemsPutRequest needs to be in lowercase.
|
Beta Was this translation helpful? Give feedback.
-
Fixed the 2 issues with the library. #134 Now to work out how to send the attributes.... |
Beta Was this translation helpful? Give feedback.
-
I will do test for this before approve it |
Beta Was this translation helpful? Give feedback.
-
So far I've got as far as making something that's well formed but I'm getting an "internal error" posting to the sandbox. Not sure if it is just a case of populating more of the attributes?
|
Beta Was this translation helpful? Give feedback.
-
Tried using the ItemAttributes from the model. But that didn't help |
Beta Was this translation helpful? Give feedback.
-
Try this code with last code in repo , i get error message for productType complaining about the value var SKU = "XXXXXXXXXX";
var sellerId = "XXXXXXXXXXXX";
ParameterPutListingItem myListing = new ParameterPutListingItem()
{
sellerId = sellerId,
marketplaceIds = new string[] { MarketPlace.UnitedArabEmirates.ID },
sku = SKU,
listingsItemPutRequest = new ListingsItemPutRequest()
{
productType = "LUGGAGE",
requirements = Requirements.LISTING,
//Example from https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2020-09-01-use-case-guide
attributes = new ParameterAttributes()
{
condition_type = new List<ParameterAttributeItem>() {
new ParameterAttributeItem()
{
value = "new_new",
marketplace_id = MarketPlace.UnitedArabEmirates.ID
}
},
item_name = new List<ParameterAttributeItem>()
{
new ParameterAttributeItem()
{
value = "Thorne Research - Diabenil - Support for Maintaining Healthy Blood Sugar Levels - with Chromium, ALA, and Quercetin Phytosome - 90 Capsules - ",
language_tag = "en_US",
marketplace_id = MarketPlace.UnitedArabEmirates.ID
}
}
}
}
};
var response = amazonConnection.ListingsItem.PutListingsItem(myListing); |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello @TechyChap Now API support ProductType |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a listing using the listings API and so far I have created a couple of simple classes for the attributes and am using those to generate the putlistingitem
But I'm getting an error from the API that suggests I'm missing attributes and product type.
Wonder if anyone else has successfully posted a listing?
FikaAmazonAPI.AmazonSpApiSDK.Models.Exceptions.AmazonInvalidInputException: 'Invalid request body: [object has missing required properties (["attributes","productType"])]'
Beta Was this translation helpful? Give feedback.
All reactions