Java SDK: AddFixedPriceItem sample for listing an item with product identifier (ePID) in US
Asked by: iaid 261 views Programming
Java SDK AddFixedPriceItem sample for listing an item with an product identifier (ePID).
import com.ebay.sdk.*; import com.ebay.sdk.call.*; import com.ebay.soap.eBLBaseComponents.*; public class AppAddItemWithePID { public static ApiContext createApiContext() { CallRetry cr = new CallRetry(); String[] apiErrorCodes = new String[]{“502”}; // Build a dummy SdkSoapException so that we can get its Class. // set the server url and credentials for Sandbox // Set site to US Your ads will be inserted here by Easy Plugin for AdSense. Please go to the plugin admin page to return apiContext; private static FeesType addFixedItem() throws ApiException, SdkException, Exception { FeesType fee = null; ItemType item = new ItemType(); // set the item condition depending on the value from GetCategoryFeatures item.setPostalCode(“95125”); // Track inventory by SKU // Specify unique SKU  |