creating new listing : Error adding listing: BadRequest - {"error":"IDs must be >= 1, got 0"} #1251
Unanswered
digital9999999
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Add debugging lines before making the API call to ensure that all IDs are set correctly. Here is the line you need to see if your ouput is correct before it goes to the API.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(https://developers.etsy.com/documentation/reference/#operation/createDraftListing)
var newListing = new Listing
{
shop_id = 52654032,
Title = "Handmade Bracelet",
Description = "A beautiful handmade bracelet.",
Price = 25,
Quantity = 10,
TaxonomyId = 0,
whomade = "i_did",
listingtype = "digital",
whenmade = "2020_2024",
state = "draft"
};
returns error: Error adding listing: BadRequest - {"error":"IDs must be >= 1, got 0"}
are we missing anything?
Beta Was this translation helpful? Give feedback.
All reactions