> 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 consolidated settlements (/api-reference/admin/settlements/get-settlements)

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

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

Returns the settlement records for a period, with every credit and debit transaction in it.

## Query parameters

- `FromDate` (string): 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`
- `ToDate` (string | null): Date in format yyyy/mm/dd (2017/11/30) to which settlements will be included. If not provided, it will default to yesterdays date. The maximum period allowed is 61 days, exceeding 61 days will result in a PERIOD_INVALID error. Format: `date-time`
- `CountryCode` (string | null): Two upper case characters. In accordance with ISO 3166-1. If specified Rejected and Pending settlements will not be included in the response
- `PaymentMethodType` (string | null): If specified, the response will only include records for this specific payment method
- `CurrencyCode` (string | null): Three upper case characters, in accordance with ISO 4217
- `Types` (string[] | null): Array of settlement types Transaction, Fee and Chargeback. Defaults to only using Transaction
- `BatchId` (string | null): ID of the provider batch money transfer.Different payment methods can have the same BatchId
- `SettlementStatuses` (InfrastructureConstantsSettlementSettlementStatus[] | null): Array of settlement statuses Accepted, Rejected and Pending. Defaults to only using Accepted. Response will only include specified types

## Responses

### 200 (application/json)

Accepted, pending and rejected settlements.

- `Settlements` (object[] | null)
  - `OrderId` (integer): Format: `int64`
  - `PaymentTransactionId` (integer): Format: `int64`
  - `MerchantOrderReference` (string | null)
  - `BatchId` (string | null)
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null)
  - `Amount` (number): Format: `decimal`
  - `CountryCode` (string | null)
  - `AcquirerName` (string | null)
  - `PaymentMethodType` (string | null)
  - `PaymentMethodSubType` (string | null)
  - `PspSettlementDate` (string): Format: `date-time`
  - `ImportSettlementDate` (string): Format: `date-time`
  - `TransactionCompletedDate` (string | null): Format: `date-time`
  - `VatRate` (number | null): Format: `decimal`
  - `AmountExcludingVat` (number | null): Format: `decimal`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`
  - `BankTransferDescriptor` (string | null)
- `PendingSettlements` (object[] | null)
  - `PaymentTransactionId` (integer): Format: `int64`
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null)
  - `Amount` (number): Format: `decimal`
  - `PaymentMethodType` (string | null)
  - `PaymentMethodSubType` (string | null)
  - `PspSettlementDate` (string): Format: `date-time`
  - `ImportSettlementDate` (string): Format: `date-time`
  - `TransactionCompletedDate` (string | null): Format: `date-time`
  - `BatchId` (string | null)
  - `MerchantOrderReference` (string | null)
  - `VatRate` (number | null): Format: `decimal`
  - `AmountExcludingVat` (number | null): Format: `decimal`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`
- `RejectedSettlements` (object[] | null)
  - `PaymentTransactionId` (integer): Format: `int64`
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null)
  - `Amount` (number): Format: `decimal`
  - `PaymentMethodType` (string | null)
  - `PaymentMethodSubType` (string | null)
  - `PspSettlementDate` (string): Format: `date-time`
  - `ImportSettlementDate` (string): Format: `date-time`
  - `BatchId` (string | null)
  - `VatRate` (number | null): Format: `decimal`
  - `AmountExcludingVat` (number | null): Format: `decimal`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`

Example:

```json
{
  "Settlements": [
    {
      "OrderId": 67890,
      "PaymentTransactionId": 685258,
      "MerchantOrderReference": "merchant-order-id-111222333",
      "BatchId": 123456,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 150.24,
      "CountryCode": "SE",
      "AcquirerName": "string",
      "PaymentMethodType": "CREDITCARDS",
      "PaymentMethodSubType": "VISA",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "TransactionCompletedDate": "2021/01/17",
      "VatRate": 23.56,
      "AmountExcludingVat": 279,
      "FxRate": 279,
      "FxCurrencyCode": "SEK",
      "FxTotal": 279,
      "BankTransferDescriptor": "CH101010 2025-12-31 "
    }
  ],
  "PendingSettlements": [
    {
      "PaymentTransactionId": 125452,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 155.24,
      "PaymentMethodType": "CREDITCARDS",
      "PaymentMethodSubType": "VISA",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "TransactionCompletedDate": "2021/01/17",
      "BatchId": 54521254,
      "MerchantOrderReference": "merchant-order-id-111222332",
      "VatRate": 23.56,
      "AmountExcludingVat": 279,
      "FxRate": 279,
      "FxCurrencyCode": "SEK",
      "FxTotal": 279
    }
  ],
  "RejectedSettlements": [
    {
      "PaymentTransactionId": 125452,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 1254.21,
      "PaymentMethodType": "CREDITCARDS",
      "PaymentMethodSubType": "VISA",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "BatchId": 6652542,
      "VatRate": 23.56,
      "AmountExcludingVat": 279,
      "FxRate": 279,
      "FxCurrencyCode": "SEK",
      "FxTotal": 279
    }
  ]
}
```

### 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"
```
