Setting a GTC Duration in the .NET SDK
Find the answer to your question
Please enter a search keyword.
Advanced Search
Published: December 06 2004, 6:25:00 PMยทUpdated: July 19 2022, 4:46:21 AM
Products
Question
How do I set a GTC Duration in the .NET SDK?
Answer
To specify Good Till Cancelled for a store item, you need to assign the following properties of the item object:
item.ListingType = ListingTypeCodeType.FixedPriceItem;
item.ListingDuration = ListingDurationCodeType.GTC;
The ListingDuration field is the number of days the listing will be active. See the documentation for valid duration for each of the listing types.
How well did this answer your question?