# Generate Csv Generate a CSV file for the given date range and format. Remember: use the header X-Organization-Id with the organization ID if you are using a partner token which has access to multiple organizations. Endpoint: GET /settlements/generate_csv Version: v1 Security: OAuth2ClientCredentials ## Header parameters: - `X-Organization-Id` (string) Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required. ## Request fields (application/json): - `from_date` (string, required) - `to_date` (string, required) - `format` (string) The format of the CSV file to generate. Enum: "transactions", "payouts", "machine_readable" - `test_mode` (boolean) - `payout_type` (string) Enum: "PSP", "SPENSE" ## Response 422 fields (application/json): - `detail` (array) - `detail.loc` (array, required) - `detail.msg` (string, required) - `detail.type` (string, required) ## Response 200 fields