---
updatedAt: 2026-07-02T02:02:51.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Manage service charges (MSC) for Android apps

Learn how to use the Android APIs to manage multiple service charges (MSC) for Android apps.

<HTMLBlock>{`





  
  

`}</HTMLBlock>

<HTMLBlock>{`


<div>
 <div class="msc-menu-container">
    <div class="topnav">
      <a href="https://docs.clover.com/docs/msc-overview">MSC overview</a>
      <a href="https://docs.clover.com/docs/msc-set-up-and-test-your-app">MSC set up and test</a>
      <a href="https://docs.clover.com/docs/msc-android-apps">MSC for Android apps</a>
      <a href="https://docs.clover.com/docs/msc-web-apps">MSC for Web apps</a>
      <a href="https://docs.clover.com/reference/msc-apiref-index">MSC REST API index</a>
      <a href="https://docs.clover.com/docs/msc-faqs">MSC FAQ</a>
    </div>
  </div>
</div>
<div class="region-icon-div"> 
  
  <div class="container-reg">
    <div class="pill-reg">
      <div class="label-reg">North America—United States and Canada</div>
    </div>
  </div>
</div>

<style>

/* Add tight spacing to the the top navigation menu div */
.parent-container {
  display: flex;
  flex-direction: column; 
  /* gap: 0; (Optional: ensures 0 space between flex items) */
}

/* Force the order if the HTML is out of sync */
.header-divider { order: 1; margin-bottom: 0; }
.msc-menu-container { order: 2; margin: 0; }
.region-icon-div { order: 3; margin-top: 0; }

/* MSC menu container */

.msc-menu-container {
top: -33px;
  position: relative;
  margin-bottom: -18px;
  width: 100%;
}
/* Add a background color to the top navigation */
.topnav {
  font-family: Altform, sans-serif;
  background-color: #5D5D5D;
  overflow: hidden;
  margin-top: -10px;
  }

/* Style the links inside the navigation bar */
.topnav a {
  font-family: Altform, sans-serif;
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: .9em;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #D8D8D8;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #5D5D5D;
  color: white;
}
</style>
`}</HTMLBlock>

<br />

This topic describes the Android API endpoints you can use to manage multiple service charges (MSC) for Android apps. The endpoints are organized into two sections for merchant-level and order-level endpoints:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Android APIs to manage service charges
      </th>

      <th>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [Merchant-level Android API endpoints](https://docs.clover.com/docs/msc-android-apps#merchant-level-android-api-endpoints)
      </td>

      <td>
        Use to Get all order fees associated with a merchant.
      </td>
    </tr>

    <tr>
      <td>
        [Order level Android API endpoints](https://docs.clover.com/docs/msc-android-apps#order-level-android-api-endpoints)
      </td>

      <td>
        Use to:

        \- Apply a service charge to an order<br />- Remove a service charge from an order<br />- Get order fees associated with an order<br />- Get line items without service charges
      </td>
    </tr>
  </tbody>
</Table>

<Callout icon="📘" theme="info">
  ### NOTE

  For complete REST API reference documentation for the MSC endpoints, see the [Multiple service charges (MSC) REST API Index](https://docs.clover.com/dev/reference/msc-apiref-intro).
</Callout>

***

# Merchant-level Android API endpoints

## 1. Get service charges associated with a merchant

### 1.1 Get all service charges associated with a merchant

Use either of the following methods from the `InventoryConnector` class to retrieve all  service charges from the `OrderFee` objects associated with a merchant.

```java Java
public List<OrderFee> getOrderFees() throws ClientException, ServiceException, BindingException, RemoteException {
    return execute(IInventoryService::getOrderFees);
  }
```

```java Java
public void getOrderFees(Callback<List<OrderFee>> callback) {
    execute(IInventoryService::getOrderFees, callback);
  }
```

### 1.2 Get a specific service charge associated with a merchant

Use either of the following methods from the `InventoryConnector` class to retrieve a specific service charge from an `OrderFee` object.

```java Java
public OrderFee getOrderFee(final String orderFeeId) throws ClientException, ServiceException, BindingException, RemoteException {
    return execute((service, status) -> {
      return service.getOrderFee(orderFeeId, status);
    });
  }
```

```java Java
public void getOrderFee(final String orderFeeId, Callback<OrderFee> callback) {
    execute((service, status) -> service.getOrderFee(orderFeeId, status), callback);
  }
```

***

# Order-level Android API endpoints

## 1. Apply a service charge to an order

Use the `addOrderFee` method from the `OrderV31Connector` class to apply a service charge to an order.

```java
 public Order addOrderFee(final String orderId, final String orderFeeId) throws RemoteException, ClientException, ServiceException, BindingException {
    return execute((service, status) -> {
      return getValue(service.addOrderFee(orderId, orderFeeId, status));
    });
  }
```

## 2. Remove a service charge from an order

Use the `deleteOrderFee` method from the `OrderV31Connector` class to remove a service charge from an order.

```java
public Order deleteOrderFee(final String orderId, final String orderFeeLineItemId) throws RemoteException, ClientException, ServiceException, BindingException {
    return execute((service, status) -> {
      return getValue(service.deleteOrderFee(orderId, orderFeeLineItemId, status));
    });
  }
```

## 3. Get service charges applied to an order

Use the following method to get a list of service charges applied to a current order.

```java
  public static List<LineItem> getServiceChargesFromOrder(Order order) {
    List<LineItem> serviceCharges = new ArrayList<LineItem>();
    if (order.isNotNullLineItems()) {
      for (LineItem lineItem : order.getLineItems()) {
        if (lineItem.isNotNullIsOrderFee() && lineItem.getIsOrderFee()) {
          serviceCharges.add(
             lineItem
          );
        }
      }
    }
    return serviceCharges;
  }
```

## 4. Get a list of line items without service charges

You can get a list of regular line items without service charges when these line items are associated with an order.

### 4.1 Get a list of regular line items without service charges associated with an order

Use this method to get a list of regular line items without service charges from an `Order` object.

```java Java
public static List<LineItem> getLineItemsWithoutServiceCharges(Order order) {
    return getLineItemsWithoutServiceCharges(order.getLineItems());
  }
```

### 4.2 Get a list of regular line items without service charges from a list of line items

Use this method to get a list of regular line items without service charges from  a `LineItem` object.

```java Java
  public static List<LineItem> getLineItemsWithoutServiceCharges(List<LineItem> lineItems) {
    List<LineItem> lineItemsWithoutServiceCharges = null;
    if (lineItems != null) {
      for (LineItem lineItem : lineItems) {
        if (!lineItem.getIsOrderFee()) {
          lineItemsWithoutServiceCharges.add(lineItem);
        }
      }
    }
    return lineItemsWithoutServiceCharges;
  }
```

<br />