Skip to main content
Published: March 17 2011, 4:21:00 PMUpdated: November 28 2020, 1:53:49 PM

Use the ReviseFixedPriceItem call to change the properties of an active fixed-price listing.

Here is a Java ReviseFixedPriceItem sample that demonstrates how to delete the item's sub-title. This sample has been written using the Java SDK v705.

© 2011-2013 eBay Inc., All Rights Reserved
Licensed under CDDL 1.0 -

import com.ebay.sdk.ApiContext;
import com.ebay.sdk.ApiCredential;
import com.ebay.sdk.ApiException;
import com.ebay.sdk.SdkException;
import com.ebay.soap.eBLBaseComponents.ItemType;
import com.ebay.soap.eBLBaseComponents.SiteCodeType;

* Sample code for using ReviseFixedPriceItem to delete a field using eBay Java SDK v673.
* This sample deletes the subtitle of a listing.
* The following steps need to be done to delete a field from an existing listing.
* 1. Create an ApiContext Object
* 2. Set the auth token and target api url (Webservice endpoint)
* 3. Create a ReviseFixedPriceItemCall object.
* 4. Create an item object and set the SKU for the item whose field(s) is/are to be deleted.
* 5. Set the item to the ReviseFixedPriceItemCall object.
* 6. Set the fields to be deleted using ReviseFixedPriceItemCall#setDeletedField method.
* 7. Execute the API call ReviseFixedPriceItemCall#reviseFixedPriceItem() to revise the listing.
public class ReviseFixedPriceItemDelete {

    public static void deleteSubTitle() {
        ApiContext apiContext = new ApiContext(); // Create a new APIContext
        // Object

        // set Api Token to access eBay Api Server
        ApiCredential cred = apiContext.getApiCredential();

        apiContext.setApiServerUrl("");// Pointing SandBox for testing

        // Enable logging of SOAP requests and responses. Recommended only for testing/debugging.           

        apiContext.setSite(SiteCodeType.US); // Set site to US

        ReviseFixedPriceItemCall rfp = new ReviseFixedPriceItemCall(apiContext);

        ItemType item = new ItemType();
        item.setSKU("CODE_SAMPLE_REVISE_FPITEM_DELETE_SKU1");//Set the sku of the item that needs to be revised


        rfp.setDeletedField(new String[]{"Item.SubTitle"});// Set the field(s) to be deleted

        try {
        } catch (ApiException e) {
        } catch (SdkException e) {
        } catch (Exception e) {


    public static void main(String[] args) {

How well did this answer your question?
Answers others found helpful