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

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Payments/batch/close`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Payments/batch/close/post.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
