Replies: 1 comment 3 replies
-
Amazon is not very helpful with the attributes in that it just has the data model of "object". https://developer-docs.amazon.com/sp-api/docs/product-type-api-use-case-guide For example, country of origin, the JSON looks like this so you'd need to have a suitable object to wrap that.
For more details, take a look at this discussion - #132 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please help me with the below. I am getting errors with the attributes object.
Thanks
`
var putlistingsitem = new ParameterPutListingItem();
putlistingsitem.marketplaceIds = new string[] { "XXXXXXXXXX" };
putlistingsitem.sellerId = "XXXXXXXXXXX";
putlistingsitem.sku = "XXXXXXX";
putlistingsitem.listingsItemPutRequest = new ListingsItemPutRequest() { requirements = Requirements.LISTING_PRODUCT_ONLY, productType = "PET_FEEDER", attributes = new {
product_name = "Single Meal Automatic Pet Feeder by Petplanet",
brand_name = "XXX",
manufacturer = "XXX",
external_product_id = "88864675108",
external_product_id_type = "EAN",
unit_count = 1,
unit_count_type = "g",
length_head_to_toe = 7,
length_head_to_toe_unit_of_measure = "cm",
length_width_side_to_side = 24,
length_width_side_to_side_unit_of_measure = "cm",
length_height_floor_to_top = 13,
length_height_floor_to_top_unit_of_measure = "cm",
country_of_origin = "UK",
standard_price =17.49,
quantity = 10,
is_expiration_dated_product =false,
main_image_url = "https://cvusss.co.uk/image/500x500/99_69417_1528295667_084b6b.jpg"
Beta Was this translation helpful? Give feedback.
All reactions