Get Batch Count
Requests the number of batches that fulfill the query criteria. Takes the same filtering parameters as the Get Batches method.
Method
GET /batch/count
Parameters
Query Parameters
| Name | Description | 
|---|---|
| batchId | Filter by batch id. | 
| type | Filter by batch type. See the User Guide for more information about batch types. | 
| tenantIdIn | Filter by a comma-separated list of tenant ids. A batch matches if it has one of the given tenant ids. | 
| withoutTenantId | Only include batches which belong to no tenant. Value can effectively only be true, asfalseis the default behavior. | 
| suspended | A Booleanvalue which indicates whether only active or
      suspended batches should be included. When the value is set totrue, only suspended batches will be returned and when the
      value is set tofalse, only active batches will be returned. | 
Result
A JSON object that contains the count as the only property.
| Name | Value | Description | 
|---|---|---|
| count | Number | The number of matching batches. | 
Response codes
| Code | Media type | Description | 
|---|---|---|
| 200 | application/json | Request successful. | 
| 400 | application/json | Returned if some of the query parameters are invalid, for example if a sortOrderparameter is supplied, but nosortBy.
      See the Introduction for the error response format. | 
Example
Request
GET /batch/count?type=aBatchType
Response
Status 200.
{
  "count": 1
}