---
title: "Close the current open batch in XplorPay, settling all unsettled transactions.
This initiates the batch-out process with the payment processor."
method: POST
path: "/Payments/batch/close"
tags: ["Payments"]
---

# Close the current open batch in XplorPay, settling all unsettled transactions.
This initiates the batch-out process with the payment processor.

`POST /Payments/batch/close`

## Response `200`

OK

- BatchCloseResponseDto — Response from closing a payment processor batch.
  - `success` boolean
  - `confirmationCode` string, nullable
  - `dateOpened` string, date-time, nullable
  - `netAmount` union
    - number, double
    - string, double
  - `refundCount` union
    - integer
    - string, int32
  - `refundTotal` union
    - number, double
    - string, double
  - `salesCount` union
    - integer
    - string, int32
  - `salesTotal` union
    - number, double
    - string, double
  - `settlementStatus` string, nullable
  - `transactionCount` union
    - integer
    - string, int32

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/d8d7501dde48/schema)
