# Payment Report daily chart

`GET /api/payments/report/charts`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `tenant` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `tenantId` (query, string, optional)
  Type: string

- `organization` (query, object, required)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

- `organizationId` (query, string, required)
  Type: string

- `startDate` (query, string, date-time, optional)
  Type: string, date-time

- `endDate` (query, string, date-time, optional)
  Type: string, date-time

- `employeeIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `projectIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `taskIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `teamIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `relations` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `groupBy` (query, string, optional)
  Type: string
  
  enum: ["date","employee","project","client"]

- `timeZone` (query, string, optional)
  Type: string

Responses:

- 200: Found one record

- 401: Unauthorized

- 403: Forbidden

- 404: Record not found

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/payments/report/charts?organizationId=string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/payments/report/charts?organizationId=string', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/payments/report/charts?organizationId=string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
