/// <summary> /// Ends the specified item listing before the date and time at which it would normally end per the listing duration. /// </summary> /// /// <param name="ItemID"> /// Unique item ID that identifies the listing that you want to end. /// </param> /// /// <param name="EndingReason"> /// The seller's reason for ending the listing early is input into this required field. /// </param> /// /// <param name="SellerInventoryID"> /// This field was previously only used to identify and end Half.com listings, and since the Half.com site has been shut down, this element is no longer applicable. /// </param> /// public DateTime EndItem(string ItemID, EndReasonCodeType EndingReason, string SellerInventoryID) { this.ItemID = ItemID; this.EndingReason = EndingReason; this.SellerInventoryID = SellerInventoryID; Execute(); return(ApiResponse.EndTime.Value); }
public static void EndMyItem(string Token, string ItemID) { ApiContext apiContext = GetApiContext(Token); EndItemCall apiCall = new EndItemCall(apiContext); EndReasonCodeType Endreason = EndReasonCodeType.NotAvailable; apiCall.EndItem(ItemID, Endreason); }
/// <summary> /// Ends the specified item listing before the date and time at which it would normally end per the listing duration. <b>Also for Half.com</b>. /// </summary> /// /// <param name="ItemID"> /// Unique item ID that identifies the item listing to end. /// /// For Half.com listings, you can either specify ItemID or /// SellerInventoryID. /// /// Applicable to Half.com. /// </param> /// /// <param name="EndingReason"> /// Indicates the seller's reason for ending the listing early. /// This field is required if the seller is ending the item early and /// the item did not successfully sell. /// /// Applicable to Half.com. /// </param> /// /// <param name="SellerInventoryID"> /// Unique identifier that the seller specified when they listed the /// Half.com item. For Half.com items, you can either specify ItemID or /// SellerInventoryID. If you specify both ItemID and SellerInventoryID, /// they must be for the same item (otherwise an error will occur). /// /// Applicable only to Half.com. /// </param> /// public DateTime EndItem(string ItemID, EndReasonCodeType EndingReason, string SellerInventoryID) { this.ItemID = ItemID; this.EndingReason = EndingReason; this.SellerInventoryID = SellerInventoryID; Execute(); return ApiResponse.EndTime; }
/// <summary> /// Ends the specified fixed-price listing before the date and time at which /// it would normally end (per the listing duration). /// </summary> /// /// <param name="ItemID"> /// Unique item ID that identifies the listing that you want to end. /// /// In the <b>EndFixedPriceItem</b> request, either <b>ItemID</b> or <b>SKU</b> is required. /// If both are passed in and they don't refer to the same listing, eBay /// ignores <b>SKU</b> and considers only the lt;b>ItemID</b>. /// </param> /// /// <param name="EndingReason"> /// The seller's reason for ending the listing early is input into this required field. /// </param> /// /// <param name="SKU"> /// The seller-defined SKU (stock keeping unit) value of the item in the listing being ended. The <b>SKU</b> field can only be used to end a listing if that listing was created or relisted with an <b>AddFixedPriceItem</b> or <b>RelistFixedPriceItem</b> call, and the <b>Item.InventoryTrackingMethod</b> was included in the call and set to <code>SKU</code>. /// /// In the <b>EndFixedPriceItem</b> request, either <b>ItemID</b> or <b>SKU</b> is required. /// If both are passed in and they don't refer to the same listing, eBay /// ignores <b>SKU</b> and considers only the lt;b>ItemID</b>. /// </param> /// public DateTime EndFixedPriceItem(string ItemID, EndReasonCodeType EndingReason, string SKU) { this.ItemID = ItemID; this.EndingReason = EndingReason; this.SKU = SKU; Execute(); return(ApiResponse.EndTime.Value); }
public ActionResult ListingEnd(string id, EndReasonCodeType reason) { var token = repository.GetOAuthToken(subdomainid.Value, OAuthTokenType.EBAY, true); if (token == null) { return(Json("".ToJsonFailData())); } try { var service = new ItemService(token.token_key); service.EndFixedPriceItem(id, reason); } catch (Exception ex) { return(SendJsonErrorResponse(ex)); } return(Json("Ended".ToJsonOKData())); }
/// <summary> /// For backward compatibility with old wrappers. /// </summary> public void EndItem(string ItemID, EndReasonCodeType EndingReason) { this.ItemID = ItemID; this.EndingReason = EndingReason; Execute(); }
// http://developer.ebay.com/devzone/xml/docs/reference/ebay/EndFixedPriceItem.html public void EndFixedPriceItem(string itemid, EndReasonCodeType reason) { var call = new EndFixedPriceItemCall(api); call.EndFixedPriceItem(itemid, reason, ""); }
/// <summary> /// Ends the specified fixed-price listing before the date and time at which /// it would normally end (per the listing duration). /// </summary> /// /// <param name="ItemID"> /// Unique item ID that identifies the item listing that you want to end. /// /// In the EndFixedPriceItem request, either ItemID or SKU is required. /// If both are passed in and they don't refer to the same listing, eBay /// ignores SKU and considers only the ItemID. /// </param> /// /// <param name="EndingReason"> /// Indicates the seller's reason for ending the listing early. This field /// is required if the seller is ending the item early and the item did /// not successfully sell. /// </param> /// /// <param name="SKU"> /// The unique SKU of the item being ended. A SKU (stock keeping unit) is /// an identifier defined by a seller. SKU can only be used to end an /// item if you listed the item by using AddFixedPriceItem or /// RelistFixedPriceItem, and you set Item.InventoryTrackingMethod to SKU /// at the time the item was listed. (These criteria are necessary to /// uniquely identify the listing by a SKU.) /// /// In the EndFixedPriceItem request, either ItemID or SKU is required. If /// both are passed in and they don't refer to the same listing, eBay /// ignores SKU and considers only the ItemID. /// /// To remove a SKU when you revise or relist an item, use DeletedField in /// the revision or relist call. /// </param> /// public DateTime EndFixedPriceItem(string ItemID, EndReasonCodeType EndingReason, string SKU) { this.ItemID = ItemID; this.EndingReason = EndingReason; this.SKU = SKU; Execute(); return ApiResponse.EndTime; }