> The index of all pages is at [llms.txt](https://developers.qliro.com/llms.txt). Add `.md` to any page URL for its Markdown.

# Get settlement batches (/api-reference/admin/settlements/get-settlement-batches)

`GET https://payments.qliro.com/checkout/adminapi/v2/settlements/GetSettlementBatches`

Production: `https://payments.qliro.com/checkout/adminapi`. Staging: `https://pago.qit.nu/checkout/adminapi`

Returns the settlement batches for a period, each with the sums of the transactions in it.

## Query parameters

- `FromBatchDate` (string | null): Date in format yyyy/mm/dd (2017/11/30) from which settlements will be included. Today’s date will result in a PERIOD_NOT_SETTLED error. Format: `date-time`
- `ToBatchDate` (string | null): Date in format yyyy/mm/dd (2017/11/30) from which settlements will be included. Today’s date will result in a PERIOD_NOT_SETTLED error. Format: `date-time`
- `CurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
- `AcquirerNames` (string[] | null): An array of strings with the AcquirerName (The name of the payment provider from which settlements are expected to be received. For example: Bambora, Nets, Qliro, Trustly, PayPal, etc)

## Responses

### 200 (application/json)

Settlement batches, each with the sums of its transactions.

- `SettlementBatches` (object[] | null): A list of Settlement batches
  - `Id` (integer): Internal Qliro Checkout id to identify the batch we receive from a payment provider. Use this when querying GetSettlementsByBatchId. Format: `int64`
  - `BatchId` (string | null): ID of the provider batch money transfer. Different payment methods can have the same BatchId
  - `AcquirerName` (string | null): The name of the payment provider from which settlements are expected to be received. For example: Bambora, Nets, Qliro, Trustly, PayPal, etc
  - `BatchDate` (string): The date when the batch was transferred to a merchants account. Format: `date-time`
  - `CurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `TotalAmount` (number): The total amount of this particular settlement record. Format: `decimal`
  - `TotalFeeAmount` (number): The total fee amount of this particular settlement record. Format: `decimal`
  - `FxTotalAmount` (number | null): Fx total amount of this batch. Format: `decimal`
  - `FxCurrencyCode` (string | null): Fx  currency of this batch
  - `FxRate` (number | null): fx rate of fx currency. Format: `decimal`

Example:

```json
{
  "SettlementBatches": [
    {
      "Id": 0,
      "BatchId": "string",
      "AcquirerName": "string",
      "BatchDate": "2024-05-01T12:00:00Z",
      "CurrencyCode": "string",
      "TotalAmount": 0,
      "TotalFeeAmount": 0,
      "FxTotalAmount": 0,
      "FxCurrencyCode": "string",
      "FxRate": 0
    }
  ]
}
```

### 400 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

### 500 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

## Example request

```bash
curl -X GET "https://payments.qliro.com/checkout/adminapi/v2/settlements/GetSettlementBatches"
```
