src/main/java/com/squareup/connect/api/InventoryApi.java
public BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body) throws ApiException {
    Object localVarPostBody = body;
    
    // verify the required parameter 'body' is set
    if (body == null) {
      throw new ApiException(400, "Missing the required parameter 'body' when calling batchRetrieveInventoryChanges");
    }
    
    // create path and map variables
    String localVarPath = "/v2/inventory/batch-retrieve-changes";

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");

    
    
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "oauth2" };

    GenericType<BatchRetrieveInventoryChangesResponse> localVarReturnType = new GenericType<BatchRetrieveInventoryChangesResponse>() {};
    CompleteResponse<BatchRetrieveInventoryChangesResponse> completeResponse = (CompleteResponse<BatchRetrieveInventoryChangesResponse>)apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
/**
   * BatchRetrieveInventoryChanges
   * Returns historical physical counts and adjustments based on the provided filter criteria.  Results are paginated and sorted in ascending order according their &#x60;occurred_at&#x60; timestamp (oldest first).  BatchRetrieveInventoryChanges is a catch-all query endpoint for queries that cannot be handled by other, simpler endpoints.
   * @param body An object containing the fields to POST for the request.  See the corresponding object definition for field details. (required)
   * @return BatchRetrieveInventoryChangesResponse
   * @throws ApiException if fails to make API call
   */
BatchRetrieveInventoryChanges
Returns historical physical counts and adjustments based on the provided filter criteria.  Results are paginated and sorted in ascending order according their `occurred_at` timestamp (oldest first).  BatchRetrieveInventoryChanges is a catch-all query endpoint for queries that cannot be handled by other, simpler endpoints.
@param body An object containing the fields to POST for the request.  See the corresponding object definition for field details. (required)
@return BatchRetrieveInventoryChangesResponse
@throws ApiException if fails to make API call
BatchRetrieveInventoryChanges Returns historical physical counts and adjustments based on the provided filter criteria . Results are paginated and sorted in ascending order according their ` occurred_at ` timestamp ( oldest first ) . BatchRetrieveInventoryChanges is a catch - all query endpoint for queries that cannot be handled by other simpler endpoints . @param body An object containing the fields to POST for the request . See the corresponding object definition for field details . ( required ) @return BatchRetrieveInventoryChangesResponse @throws ApiException if fails to make API call
public BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges(BatchRetrieveInventoryChangesRequest body) throws ApiException {
    Object localVarPostBody = body;
    if (body == null) {
      throw new ApiException(400, "Missing the required parameter 'body' when calling batchRetrieveInventoryChanges");
    }
    String localVarPath = "/v2/inventory/batch-retrieve-changes";
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    String[] localVarAuthNames = new String[] { "oauth2" };
    GenericType<BatchRetrieveInventoryChangesResponse> localVarReturnType = new GenericType<BatchRetrieveInventoryChangesResponse>() {};
    CompleteResponse<BatchRetrieveInventoryChangesResponse> completeResponse = (CompleteResponse<BatchRetrieveInventoryChangesResponse>)apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
public BatchRetrieveInventoryChangesResponse batchRetrieveInventoryChanges ( BatchRetrieveInventoryChangesRequest body ) throws ApiException { Object localVarPostBody = body ; if ( body == null ) { throw new ApiException ( 400 , "Missing the required parameter 'body' when calling batchRetrieveInventoryChanges" ) ; } String localVarPath = "/v2/inventory/batch-retrieve-changes" ; List < Pair > localVarQueryParams = new ArrayList < Pair > ( ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; localVarHeaderParams . put ( "Square-Version" , "2019-11-20" ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { "application/json" } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "oauth2" } ; GenericType < BatchRetrieveInventoryChangesResponse > localVarReturnType = new GenericType < BatchRetrieveInventoryChangesResponse > ( ) { } ; CompleteResponse < BatchRetrieveInventoryChangesResponse > completeResponse = ( CompleteResponse < BatchRetrieveInventoryChangesResponse > ) apiClient . invokeAPI ( localVarPath , "POST" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; return completeResponse . getData ( ) ; }
BatchRetrieveInventoryChanges
 Returns historical physical counts and adjustments based on the provided filter criteria.
BatchRetrieveInventoryChanges Returns historical physical counts and adjustments based on the provided filter criteria .
// verify the required parameter 'body' is set // create path and map variables // query params