public static MozuClient<com.mozu.api.contracts.commerceruntime.carts.CartItem> addItemToCartClient(com.mozu.api.contracts.commerceruntime.carts.CartItem cartItem, String responseFields) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.carts.CartItemUrl.addItemToCartUrl(responseFields);
		String verb = "POST";
		Class<?> clz = com.mozu.api.contracts.commerceruntime.carts.CartItem.class;
		MozuClient<com.mozu.api.contracts.commerceruntime.carts.CartItem> mozuClient = (MozuClient<com.mozu.api.contracts.commerceruntime.carts.CartItem>) MozuClientFactory.getInstance(clz);
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.setBody(cartItem);
		return mozuClient;

	}
public static MozuClient < com . mozu . api . contracts . commerceruntime . carts . CartItem > addItemToCartClient ( com . mozu . api . contracts . commerceruntime . carts . CartItem cartItem , String responseFields ) throws Exception { MozuUrl url = com . mozu . api . urls . commerce . carts . CartItemUrl . addItemToCartUrl ( responseFields ) ; String verb = "POST" ; Class < ? > clz = com . mozu . api . contracts . commerceruntime . carts . CartItem . class ; MozuClient < com . mozu . api . contracts . commerceruntime . carts . CartItem > mozuClient = ( MozuClient < com . mozu . api . contracts . commerceruntime . carts . CartItem > ) MozuClientFactory . getInstance ( clz ) ; mozuClient . setVerb ( verb ) ; mozuClient . setResourceUrl ( url ) ; mozuClient . setBody ( cartItem ) ; return mozuClient ; }
<p><pre><code>
MozuClient<com.mozu.api.contracts.commerceruntime.carts.CartItem> mozuClient=AddItemToCartClient( cartItem,  responseFields);
client.setBaseAddress(url);
client.executeRequest();
CartItem cartItem = client.Result();
</code></pre></p>
@param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss.
@param cartItem Properties of an item added to an active shopping cart.
@return Mozu.Api.MozuClient <com.mozu.api.contracts.commerceruntime.carts.CartItem>
@see com.mozu.api.contracts.commerceruntime.carts.CartItem
@see com.mozu.api.contracts.commerceruntime.carts.CartItem