---
title: "Create new report"
method: POST
path: "/reports"
---

# Create new report

`POST /reports`

## Headers

- `Content-Type` string, required
- `Host` string, required
- `Date` string, required
- `Digest` string, required
- `Authorization` string, required
- `Idempotency-Key` string

## Request body

- object
  - `type` string, required — The type of report that you want to extract. <br> <br> `PAYMENT_FEE` <br> Generates a report that includes collected fees and group id for each transaction.
  - `format` 'CSV' | 'XLS', required — The type report format required. <br> <br> `CSV` <br> Generates an CSV file format. <br> <br> `XLS` <br> Generates an XLS file format.
  - `notification` object
    - `email_cc_list` string[] — The array of emails that will be notified once the report is ready.
    - `callback_url` string — The URL to be triggered via an HTTP GET request once the report is ready.
  - `query_type` 'PAYMENT_DATE_INTERVAL', required — The query type that you wish to use in the `query_payload` parameter. <br> <br> `PAYMENT_DATE_INTERVAL` <br> The only query type supported.
  - `query_payload` object, required
    - `payment_date_from` string, required — The starting date for payments in the report. <br> <br> The format must be: `YYYY-MM-dd`.
    - `payment_date_to` string, required — The ending date for payments in the report. <br> <br> The format must be: `YYYY-MM-dd`.
    - `time_zone` string — The timezone. <br> <br> e.g. `Europe/Rome`, you could find a complete list [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
    - `columns` object[] — This array represent the list of columns that will be in your export. <br> <br> This field is optional. <br> If not provided, the report will default to the standard version.
      - `identifier` 'transaction_id' | 'transaction_acceptance_date' | 'transaction_amount_unit' | 'transaction_signed_amount_unit' | 'transaction_type' | 'transaction_external_code' | 'transaction_counterpart_type' | 'transaction_counterpart_id' | 'transaction_currency' | 'transaction_group_id' | 'transaction_e_money_amount_unit' | 'transaction_meal_voucher_amount_unit' | 'fee_amount_unit' | 'fee_acceptance_date' | 'fee_signed_amount_unit' | 'fee_transaction_original_id' | 'fee_transaction_id' | 'fee_type' | 'fee_id' | 'shop_id' | 'shop_name' | 'shop_external_code', required — The identifier of the columns that you want to add. <br> <br> Each identifier can be used only once per `columns` field. <br> <br> `transaction_id` <br> The payment id. <br> <br> `transaction_acceptance_date` <br> The payment acceptance date. <br> <br> `transaction_amount_unit` <br> The payment total amount. <br> <br> `transaction_signed_amount_unit` <br> The payment signed total amount (negative for refunds). <br> <br> `transaction_type` <br> The payment type (`TO_BUSINESS` or `REFUND_TO_BUSINESS`). <br> <br> `transaction_external_code` <br> The payment external code. <br> <br> `transaction_counterpart_type` <br> The payment counterpart type (`CUSTOMER` or `SHOP`). <br> <br> `transaction_counterpart_id` <br> The payment counterpart id (customer or shop). <br> <br> `transaction_currency` <br> The payment currency used. <br> <br> `transaction_group_id` <br> The payment group id (e.g. refunds). <br> <br> `transaction_e_money_amount_unit` <br> The payment e-wallet amount unit. <br> <br> `transaction_meal_voucher_amount_unit` <br> The payment meal vouchers amount. <br> <br> `transaction_fringe_amount_unit` <br> The payment fringe amount. <br> <br> `fee_amount_unit` <br> The payment total amount of fees. <br> <br> `fee_acceptance_date` <br> The fee acceptance date. <br> <br> `fee_signed_amount_unit` <br> The fees signed total signed amount. <br> <br> `fee_transaction_original_id` <br> The original transaction fee id. <br> <br> `fee_transaction_id` <br> The transaction fee id. <br> <br> `fee_type` <br> The fee type (net). <br> <br> `fee_id` <br> The fee id. <br> <br> `shop_id` <br> The shop id. <br> <br> `shop_name` <br> The shop name. <br> <br> `shop_external_code` <br> The shop external code.
      - `name` string — The column name that you will see on the header of your report. <br> <br> This field can contain a custom string value up to 50 chars. <br> The only allowed characters are: letters, numbers, `-` `_` and spaces.
      - `order` integer — The report column order. <br> <br> The array order will be followed if left empty.

## Response `200`

200

- object
  - `id` string — The unique report id. <br> <br> This can be used to retrieve the generated report.
  - `type` string — The report type generated. <br> <br> `PAYMENT_FEE` <br> A report that includes collected fees and group id for each transaction.
  - `status` string — The current report status. <br> <br> `PENDING` <br> The report will be generated soon. <br> <br> `SUCCESS` <br> The report has been successfully generated.
  - `notification` object
    - `email_cc_list` string[] — The array of emails that will be notified once the report is ready.
    - `callback_url` string — The URL to be triggered via an HTTP GET request once the report is ready.
  - `query_type` string — The query type that you used in the `query_payload` parameter. <br> <br> `PAYMENT_DATE_INTERVAL` <br> The only query type supported.
  - `query_payload` object
    - `payment_date_from` string — The starting date for payments in the report. <br> <br> The format must be: `YYYY-MM-dd`.
    - `payment_date_to` string — The ending date for payments in the report. <br> <br> The format must be: `YYYY-MM-dd`.
    - `time_zone` string — The timezone. <br> <br> e.g. `Europe/Rome`, you could find a complete list [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
    - `columns` object[] — This array represent the list of columns that will be in your export. <br> <br> This field is optional. <br> If not provided, the report will default to the standard version.
      - `identifier` string — The identifier of the columns in the current export. <br> <br> You can find the value listed in the request.
      - `name` string — The report column order.
      - `order` integer — The report column order. <br> <br> The array order will be followed if left empty.

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403

---

[API](https://skmtc.net/satispay/apis/satispay-gbusiness-api.md) · [All operations](https://skmtc.net/satispay/apis/satispay-gbusiness-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/satispay/satispay-gbusiness-api/versions/f91f20a37e6f/schema)
