# Get Site Settlements

> GET `/secure/settlements/getsitesettlements`
> Part of the Payments API reference. Source: https://hub.ozow.com/api-reference/payments-api/get-secure-settlements-getsitesettlements/

Server: `https://api.ozow.com` (Production)

Other environments: `https://stagingapi.ozow.com` (Staging)

The settlements created for a merchant site over a selected period.

## Authentication

- `BearerToken` (HTTP bearer)
  - The token generated by the `Get API token` operation. The same token is used for every request until it expires.

## Query parameters

- `fromDate` (string, required) - Desired start date to retrieve respective merchant site settlements. Format: yyyy-mm-dd
- `toDate` (string, required) - Desired end date to retrieve respective merchant site settlements. Format: yyyy-mm-dd

## Responses

### 200 OK

**application/json**

array of SiteSettlement

**application/xml**

array of SiteSettlement

### 400 Bad Request. The operation could not be carried out. The body is a message rather than a structured error.

string

Example (example 1):

```json
There was an error processing your request
```

### 401 Unauthorized. The `ApiKey` header is missing or does not match the site, or for a `Secure` operation the bearer token is missing, expired or invalid.

string

Example (example 1):

```json
API key is missing or invalid.
```
