> 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 settlements by batch ID (/api-reference/admin/settlements/get-settlements-by-batch-id)

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

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

Returns the settlements in a Qliro Checkout batch, by its `BatchId`.

## Query parameters

- `Id` (integer): QliroOne Id to identify the batch we receive from a payment provider. Format: `int64`

## Responses

### 200 (application/json)

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

- `Settlements` (object[] | null): A list of Accepted settlements
  - `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): ID of the provider batch money transfer. Different payment methods can have the same BatchId
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either Debit or Credit. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either Transaction, Fee or Chargeback. 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): Date when Qliro Checkout processed the transaction. Format: `date-time`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`
  - `OrderId` (integer): The Qliro Checkout order ID. Format: `int64`
  - `MerchantOrderReference` (string | null): A string generated by the merchant to identify the order uniquely in their system
  - `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`
- `PendingSettlements` (object[] | null): A list of Pending settlements
  - `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): ID of the provider batch money transfer. Different payment methods can have the same BatchId
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either Debit or Credit. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either Transaction, Fee or Chargeback. 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): 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
- `RejectedSettlements` (object[] | null): A list of Rejected settlements
  - `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): ID of the provider batch money transfer. Different payment methods can have the same BatchId
  - `Action` (InfrastructureConstantsSettlementSettlementTransactionAction): The settlement transaction action. Either Debit or Credit. Values: `0`, `1`
  - `Type` (InfrastructureConstantsSettlementSettlementTransactionType): The type of this settlement entity. Either Transaction, Fee or Chargeback. 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): Date when Qliro Checkout processed the transaction. Format: `date-time`
  - `FxRate` (number | null): Format: `decimal`
  - `FxCurrencyCode` (string | null)
  - `FxTotal` (number | null): Format: `decimal`
- `TotalSummary` (object | null): A Summary of all settlement transactions
  - `DebitTransactionsTotalSum` (number): The total amount of the debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The total number of debit transactions. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The total amount of the credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The total number of credit transactions. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The total amount of the fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The total number of fee transactions. Format: `int32`
- `SettlementTransactionSummary` (object | null): A Summary of accepted settlement transactions
  - `DebitTransactionsTotalSum` (number): The total amount of the debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The total number of debit transactions. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The total amount of the credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The total number of credit transactions. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The total amount of the fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The total number of fee transactions. Format: `int32`
- `PendingTransactionsSummary` (object | null): A Summary of pending settlement transactions
  - `DebitTransactionsTotalSum` (number): The total amount of the debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The total number of debit transactions. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The total amount of the credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The total number of credit transactions. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The total amount of the fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The total number of fee transactions. Format: `int32`
- `RejectedTransactionsSummary` (object | null): A Summary of rejected settlement transactions
  - `DebitTransactionsTotalSum` (number): The total amount of the debit transactions. Format: `decimal`
  - `DebitTransactionsCount` (integer): The total number of debit transactions. Format: `int32`
  - `CreditTransactionsTotalSum` (number): The total amount of the credit transactions. Format: `decimal`
  - `CreditTransactionsCount` (integer): The total number of credit transactions. Format: `int32`
  - `FeeTransactionsTotalSum` (number): The total amount of the fee transactions. Format: `decimal`
  - `FeeTransactionsCount` (integer): The total number of fee transactions. Format: `int32`

Example:

```json
{
  "Settlements": [
    {
      "PaymentTransactionId": 0,
      "BatchId": "string",
      "Action": 0,
      "Type": 0,
      "CurrencyCode": "string",
      "Amount": 0,
      "PaymentMethodType": "string",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2024-05-01T12:00:00Z",
      "ImportSettlementDate": "2024-05-01T12:00:00Z",
      "TransactionCompletedDate": "2024-05-01T12:00:00Z",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0,
      "OrderId": 0,
      "MerchantOrderReference": "string",
      "CountryCode": "string",
      "AcquirerName": "string",
      "VatRate": 0,
      "AmountExcludingVat": 0
    }
  ],
  "PendingSettlements": [
    {
      "PaymentTransactionId": 0,
      "BatchId": "string",
      "Action": 0,
      "Type": 0,
      "CurrencyCode": "string",
      "Amount": 0,
      "PaymentMethodType": "string",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2024-05-01T12:00:00Z",
      "ImportSettlementDate": "2024-05-01T12:00:00Z",
      "TransactionCompletedDate": "2024-05-01T12:00:00Z",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0,
      "MerchantOrderReference": "string"
    }
  ],
  "RejectedSettlements": [
    {
      "PaymentTransactionId": 0,
      "BatchId": "string",
      "Action": 0,
      "Type": 0,
      "CurrencyCode": "string",
      "Amount": 0,
      "PaymentMethodType": "string",
      "PaymentMethodSubType": "string",
      "PspSettlementDate": "2024-05-01T12:00:00Z",
      "ImportSettlementDate": "2024-05-01T12:00:00Z",
      "TransactionCompletedDate": "2024-05-01T12:00:00Z",
      "FxRate": 0,
      "FxCurrencyCode": "string",
      "FxTotal": 0
    }
  ],
  "TotalSummary": {
    "DebitTransactionsTotalSum": 0,
    "DebitTransactionsCount": 0,
    "CreditTransactionsTotalSum": 0,
    "CreditTransactionsCount": 0,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 0
  },
  "SettlementTransactionSummary": {
    "DebitTransactionsTotalSum": 0,
    "DebitTransactionsCount": 0,
    "CreditTransactionsTotalSum": 0,
    "CreditTransactionsCount": 0,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 0
  },
  "PendingTransactionsSummary": {
    "DebitTransactionsTotalSum": 0,
    "DebitTransactionsCount": 0,
    "CreditTransactionsTotalSum": 0,
    "CreditTransactionsCount": 0,
    "FeeTransactionsTotalSum": 0,
    "FeeTransactionsCount": 0
  },
  "RejectedTransactionsSummary": {
    "DebitTransactionsTotalSum": 0,
    "DebitTransactionsCount": 0,
    "CreditTransactionsTotalSum": 0,
    "CreditTransactionsCount": 0,
    "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"
}
```

### 404 (application/json)

Batch not found.

- `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/GetSettlementsByBatchId"
```
