> 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 bank transfer batch details (/api-reference/admin/settlements/get-bank-transfer-batch-details)

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

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

Returns the details of a bank transfer batch: settled, pending and rejected transactions, with a summary of each type.

## Query parameters

- `FromBatchDate` (string): Date in format yyyy/mm/dd (2020/12/31) from which batches will be included. Format: `date-time`
- `ToBatchDate` (string): Date in format yyyy/mm/dd (2020/12/31) to which batches will be included. Can be a maximum of 60 days from fromBatchDate or PERIOD_LIMIT_EXCEEDED error will be thrown. Format: `date-time`
- `CurrencyCode` (string | null): Three upper case characters, in accordance with ISO 4217
- `PaymentMethodTypes` (string[] | null): Comma-separated list of payment methods. If specified, the response will only include records for these payment methods
- `Types` (string[] | null): Comma-separated list of settlement types 'Transaction' and 'Fee'. Defaults to only using 'Transaction'

## Responses

### 200 (application/json)

Accepted, pending and rejected settlements, with the number of settlements and the total settled amount.

- `SettlementTransactions` (object[] | null): Array of settlement transactions
  - `PaymentTransactionId` (integer | null): This ID is a reference to the particular request. Status of the relevant request will be notified with this ID. Format: `int64`
  - `BatchId` (string | null): The ID of the batch this settlement transaction belongs to
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either 'Debit' or 'Credit'. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either 'Transaction' or 'Fee'. Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `Amount` (number): The amount of this particular settlement record. Format: `decimal`
  - `PaymentMethodType` (string | null): The payment method that was used in this transaction
  - `PaymentMethodSubType` (string | null): The payment subtype that was used in this transaction (if any)
  - `PspSettlementDate` (string): Date of actual settlement from PSP provider. Format: `date-time`
  - `ImportSettlementDate` (string): Date when Qliro Checkout processed the settlement. Format: `date-time`
  - `TransactionCompletedDate` (string | null): Date when Qliro Checkout processed the transaction. Format: `date-time`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`
  - `MerchantOrderReference` (string | null): A string generated by the merchant to identify the order uniquely in their system
  - `OrderId` (integer): The Qliro Checkout order ID. Format: `int64`
  - `CountryCode` (string | null): Two uppercase characters. In accordance with ISO 3166-1
  - `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
  - `VatRate` (number | null): Format: `decimal`
  - `AmountExcludingVat` (number | null): Format: `decimal`
- `PendingTransactions` (object[] | null): Array of pending transactions
  - `PaymentTransactionId` (integer | null): This ID is a reference to the particular request. Status of the relevant request will be notified with this ID. Format: `int64`
  - `BatchId` (string | null): The ID of the batch this settlement transaction belongs to
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either 'Debit' or 'Credit'. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either 'Transaction' or 'Fee'. Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `Amount` (number): The amount of this particular settlement record. Format: `decimal`
  - `PaymentMethodType` (string | null): The payment method that was used in this transaction
  - `PaymentMethodSubType` (string | null): The payment subtype that was used in this transaction (if any)
  - `PspSettlementDate` (string): Date of actual settlement from PSP provider. Format: `date-time`
  - `ImportSettlementDate` (string): Date when Qliro Checkout processed the settlement. Format: `date-time`
  - `TransactionCompletedDate` (string | null): Date when Qliro Checkout processed the transaction. Format: `date-time`
  - `FxRate` (number | null): Number with six decimal places. Format: `decimal`
  - `FxCurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `FxTotal` (number | null): Number with six decimal places. Format: `decimal`
- `RejectedTransactions` (object[] | null): Array of rejected transactions
  - `PaymentTransactionId` (integer | null): This ID is a reference to the particular request. Status of the relevant request will be notified with this ID. Format: `int64`
  - `BatchId` (string | null): The ID of the batch this settlement transaction belongs to
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either 'Debit' or 'Credit'. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either 'Transaction' or 'Fee'. Values: `0`, `1`, `2`
  - `CurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `Amount` (number): The amount of this particular settlement record. Format: `decimal`
  - `PaymentMethodType` (string | null): The payment method that was used in this transaction
  - `PaymentMethodSubType` (string | null): The payment subtype that was used in this transaction (if any)
  - `PspSettlementDate` (string): Date of actual settlement from PSP provider. Format: `date-time`
  - `ImportSettlementDate` (string): Date when Qliro Checkout processed the settlement. Format: `date-time`
  - `TransactionCompletedDate` (string | null): Date when Qliro Checkout processed the transaction. Format: `date-time`
  - `FxRate` (number | null): Number with six decimal places. Format: `decimal`
  - `FxCurrencyCode` (string | null): Three uppercase characters, in accordance with ISO 4217
  - `FxTotal` (number | null): Number with six decimal places. Format: `decimal`
- `SettlementTransactionSummary` (object | null): Summary of the settlement transactions counts and sums
  - `DebitTransactionsTotalSum` (number): The sum of all debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The count of the number of debit transaction. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The sum of all credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The count of the number of credit transaction. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The sum of all fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The count of the number of fee transaction. Format: `int32`
- `PendingTransactionsSummary` (object | null): Summary of the pending transactions counts and sums
  - `DebitTransactionsTotalSum` (number): The sum of all debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The count of the number of debit transaction. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The sum of all credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The count of the number of credit transaction. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The sum of all fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The count of the number of fee transaction. Format: `int32`
- `RejectedTransactionsSummary` (object | null): Summary of the rejected transactions counts and sums
  - `DebitTransactionsTotalSum` (number): The sum of all debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The count of the number of debit transaction. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The sum of all credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The count of the number of credit transaction. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The sum of all fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The count of the number of fee transaction. Format: `int32`

Example:

```json
{
  "SettlementTransactions": [
    {
      "PaymentTransactionId": 283864,
      "BatchId": 20181105,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 299,
      "PaymentMethodType": "TRUSTLY",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "TransactionCompletedDate": "2021/01/17",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0,
      "MerchantOrderReference": "HATS-c53a-c7b0-5f73-69e8",
      "OrderId": 280263,
      "CountryCode": "SEK",
      "AcquirerName": "string",
      "VatRate": 0,
      "AmountExcludingVat": 0
    }
  ],
  "PendingTransactions": [
    {
      "PaymentTransactionId": 283864,
      "BatchId": 20181105,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 299,
      "PaymentMethodType": "TRUSTLY",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "TransactionCompletedDate": "2021/01/17",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0
    }
  ],
  "RejectedTransactions": [
    {
      "PaymentTransactionId": 283864,
      "BatchId": 20181105,
      "Action": "Debit",
      "Type": "Transaction",
      "CurrencyCode": "SEK",
      "Amount": 299,
      "PaymentMethodType": "TRUSTLY",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2021/01/15",
      "ImportSettlementDate": "2021/01/17",
      "TransactionCompletedDate": "2021/01/17",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0
    }
  ],
  "SettlementTransactionSummary": {
    "DebitTransactionsTotalSum": 796,
    "DebitTransactionsCount": 3,
    "CreditTransactionsTotalSum": 285.52,
    "CreditTransactionsCount": 2,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 0
  },
  "PendingTransactionsSummary": {
    "DebitTransactionsTotalSum": 796,
    "DebitTransactionsCount": 3,
    "CreditTransactionsTotalSum": 285.52,
    "CreditTransactionsCount": 2,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 0
  },
  "RejectedTransactionsSummary": {
    "DebitTransactionsTotalSum": 796,
    "DebitTransactionsCount": 3,
    "CreditTransactionsTotalSum": 285.52,
    "CreditTransactionsCount": 2,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 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/GetBankTransferBatchDetails"
```
