---
title: "Generate sales accrual report"
method: POST
path: "/v1/reports/sales/accrual_basis/flat_file"
---

# Generate sales accrual report

`POST /v1/reports/sales/accrual_basis/flat_file`

## Request

- Base URL: `https://api.zenoti.com`
- URL: `https://api.zenoti.com/v1/reports/sales/accrual_basis/flat_file`
- Auth: none required
- TypeScript: <https://skmtc.dev/zenoti/apis/zenoti-authentication/docs/v1/reports/sales/accrual_basis/flat_file/post.ts> (a function with typed inputs; its response is checked against the schema)

The purpose of this API is to get the sales made by a center (on any particular day or over a time period) if the business follows accrual-based accounting.

## Query parameters

- `Page` integer
- `Size` integer

## Request body

- object
  - `RAW_BODY` string, json

## Response `200`

200

- union
  - object
    - `sales` object[]
      - `sale_date` string
      - `invoice_id` string
      - `invoice_no` string
      - `guest_id` string
      - `guest_name` string
      - `guest_code` string
      - `center_id` string
      - `center_name` string
      - `center_code` string
      - `item_id` string
      - `item_name` string
      - `item_code` string
      - `item_type` string
      - `qty` integer
      - `sales_exc_tax` integer
      - `sales_inc_tax` integer
      - `tax` integer
      - `collected` integer
      - `redeemed` integer
      - `due` integer
      - `invoice_date` string
      - `item_category` string
      - `business_unit` string
      - `discount` integer
      - `sale_type` string
      - `provider` string
      - `first_visit` string
      - `member` string
      - `status` string
      - `sold_by` string
      - `sold_by_code` string
      - `created_by` string
      - `category_id` string
      - `sold_by_id` string
      - `created_by_id` string
      - `price` integer
      - `taxable_redemption` integer
      - `non_taxable_redemption` integer
      - `item_sub_category` string
      - `business_unit_id` string
      - `invoice_source` string
    - `page_info` object
      - `total` integer
      - `page` integer
      - `size` integer
    - `total` object
      - `sales_exc_tax` integer
      - `tax` integer
      - `sales_inc_tax` integer
      - `discount` integer
      - `price` integer
      - `qty` integer
  - object
    - `sales` object[]
      - `sale_date` string
      - `invoice_id` string
      - `invoice_no` string
      - `guest_id` string
      - `guest_name` string
      - `guest_code` string
      - `center_id` string
      - `center_name` string
      - `center_code` string
      - `item_id` string
      - `item_name` string
      - `item_code` string
      - `item_type` string
      - `qty` integer
      - `sales_exc_tax` integer
      - `sales_inc_tax` integer
      - `tax` integer
      - `collected` integer
      - `redeemed` integer
      - `due` integer
      - `invoice_date` string
      - `item_category` string
      - `business_unit` string
      - `discount` integer
      - `sale_type` string
      - `provider` string
      - `first_visit` string
      - `member` string
      - `status` string
      - `sold_by` string
      - `sold_by_code` string
      - `created_by` string
      - `category_id` string
      - `sold_by_id` string
      - `created_by_id` string
      - `price` integer
      - `taxable_redemption` integer
      - `non_taxable_redemption` integer
      - `item_sub_category` string
      - `business_unit_id` string
      - `invoice_source` string
      - `vendor_id` string
      - `vendor_name` string
      - `brand_id` string
      - `brand_name` string
    - `page_info` object
      - `total` integer
      - `page` integer
      - `size` integer
    - `total` object
      - `sales_exc_tax` integer
      - `tax` integer
      - `sales_inc_tax` integer
      - `discount` integer
      - `price` integer
      - `qty` integer
  - object
    - `sales` object[]
      - `sale_date` string
      - `invoice_id` string
      - `invoice_no` string
      - `guest_id` string
      - `guest_name` string
      - `guest_code` string
      - `center_id` string
      - `center_name` string
      - `center_code` string
      - `item_id` string
      - `item_name` string
      - `item_code` string
      - `item_type` string
      - `qty` integer
      - `sales_exc_tax` integer
      - `sales_inc_tax` integer
      - `tax` integer
      - `collected` integer
      - `redeemed` integer
      - `due` integer
      - `invoice_date` string
      - `item_category` string
      - `business_unit` string
      - `discount` integer
      - `sale_type` string
      - `provider` string
      - `first_visit` string
      - `member` string
      - `status` string
      - `sold_by` string
      - `sold_by_code` string
      - `created_by` string
      - `category_id` string
      - `sold_by_id` string
      - `created_by_id` string
      - `price` integer
      - `taxable_redemption` integer
      - `non_taxable_redemption` integer
      - `item_sub_category` string
      - `business_unit_id` string
      - `invoice_source` string
      - `vendor_id` string
      - `vendor_name` string
      - `brand_id` string
      - `brand_name` string
      - `display_name` string
      - `company_name` string
      - `tin_number` string
      - `tot_number` string
      - `vat_number` string
      - `optional_field_1` string
      - `optional_field_2` string
      - `optional_field_3` string
      - `optional_field_4` string
      - `optional_field_5` string
      - `optional_field_6` string
      - `optional_field_7` string
      - `optional_field_8` string
      - `optional_field_9` string
      - `optional_field_10` string
    - `page_info` object
      - `total` integer
      - `page` integer
      - `size` integer
    - `total` object
      - `sales_exc_tax` integer
      - `tax` integer
      - `sales_inc_tax` integer
      - `discount` integer
      - `price` integer
      - `qty` integer

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/zenoti/apis/zenoti-authentication.md) - [All operations](https://skmtc.dev/zenoti/apis/zenoti-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/zenoti/apis/zenoti-authentication/revisions/e628f892391a?raw)
