Skip to main content
Published: March 17 2011, 4:01:00 PMUpdated: November 28 2020, 9:14:33 PM

ReviseInventoryStatus an efficient light-weight call that we recommend sellers use when they want to revise price and/or quantity of their fixed-price listing. The call allows you to revise these parameters for 4 items in a single request.

Here is a Java SDK ReviseInventoryStatus sample.

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

import com.ebay.sdk.*;
import com.ebay.soap.eBLBaseComponents.*;

* Sample code for ReviseInventoryStatus API using eBay Java SDK.
* Steps for creating a successful ReviseInventoryStatus call.
* 1. Create API Context and set the right credentials.
* 2. Create one InventoryStatusType object for each SKU/Item to be updated.
* 3. Do the necessary changes to the InventoryStatusType object. For setting price, an AmountType object is needed.
* 4. Add all the InventoryStatusType objects to an InventoryStatusType array.
* 5. Set this array to the ReviseInventoryStatusCall object with setInventoryStatus().
* 6. Call the ReviseInventoryStatusCall#reviseInventoryStatus() method.
* The following code sample updates inventory (quantity, price or both) for four items belonging to a user.
public class ReviseInventoryStatusSample {

    public static void reviseInventoryStatus() {
        ApiContext apiContext = new ApiContext(); // Create a new APIContext Object
        ApiCredential cred = apiContext.getApiCredential();

        // set the server url and credentials for Sandbox
        cred.seteBayToken("YOUR TOKEN");

        // Enable logging of SOAP requests and responses.       
        ApiLogging apiLogging = new ApiLogging();

       // Set site to US

        // Create a new ReviseInventoryStatusCall and initialize it with the APIContext
        ReviseInventoryStatusCall risCall = new ReviseInventoryStatusCall(apiContext);

        // Revise quantity and price
        InventoryStatusType invStatus1 = new InventoryStatusType();

        AmountType newAmtForSKU1 = new AmountType();

        InventoryStatusType invStatus2 = new InventoryStatusType();

        AmountType newAmtForSKU2 = new AmountType();

        // Revise Price Only
        InventoryStatusType invStatus3 = new InventoryStatusType();

        AmountType newAmtForSKU3 = new AmountType();

        // Revise Quantity Only
        InventoryStatusType invStatus4 = new InventoryStatusType();

        // Add all the items to be revised, to an array.
        InventoryStatusType[] invStatuses = new InventoryStatusType[]{invStatus1, invStatus2, invStatus3, invStatus4};

        // Add exception handling - Most of these exceptions can be fatal.
        try {
            risCall.setInventoryStatus(invStatuses);// add the array to the main call
        } 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