post https://api.zenoti.com/v1/reports/sales/accrual_basis/flat_file
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.
| JSON Property | Data Type | Description |
|---|
| sales | List<ReportInvoice> | List of sales information |
| page_info | PaginationDetailsViewModel | Contains page information |
| total | SalesAccrualTotal | Total sales information |
| JSON Property | Data Type | Description |
|---|
| sale_date | DateTime? | Date of the sale |
| invoice_id | Guid? | ID of the invoice |
| invoice_no | string | Invoice number |
| receipt_no | string | Receipt number |
| guest_id | Guid? | ID of the guest |
| guest_name | string | Name of the guest |
| guest_code | string | Code of the guest |
| center_id | Guid? | ID of the center |
| center_name | string | Name of the center |
| center_code | string | Code of the center |
| referral_source | string | Referral source |
| referred_by | string | Referred by |
| item_id | Guid? | ID of the item |
| item_name | string | Name of the item |
| item_code | string | Code of the item |
| item_type | string | Type of the item |
| qty | int? | Quantity |
| sales_exc_tax | decimal? | Sales excluding tax |
| sales_inc_tax | decimal? | Sales including tax |
| tax | decimal? | Tax amount |
| collected | decimal? | Amount collected |
| redeemed | decimal? | Amount redeemed |
| due | decimal? | Amount due |
| invoice_date | DateTime? | Date of the invoice |
| item_category | string | Category of the item |
| item_category_code | string | Code of the item category |
| business_unit | string | Business unit |
| discount_name | string | Name of the discount |
| discount | decimal? | Discount amount |
| payment_type | string | Type of payment |
| sale_type | string | Type of sale |
| room | string | Room |
| equipment | string | Equipment |
| provider | string | Provider |
| first_visit | string | Indicates if it's the first visit |
| member | string | Member |
| closed_by | string | Closed by |
| status | string | Status |
| invoice_notes | string | Notes on the invoice |
| sold_by | string | Sold by |
| sold_by_code | string | Code of the one who sold |
| created_by | string | Created by |
| base_invoice_no | string | Base invoice number |
| category_id | Guid? | ID of the category |
| sold_by_id | Guid? | ID of the one who sold |
| created_by_id | Guid? | ID of the creator |
| closed_by_id | Guid? | ID of the one who closed |
| price | decimal? | Price amount |
| taxable_redemption | decimal? | Taxable redemption amount |
| non_taxable_redemption | decimal? | Non-taxable redemption amount |
| item_sub_category | string | Subcategory of the item |
| invoice_closed_date | DateTime? | Date when the invoice was closed |
| business_unit_id | Guid? | ID of the business unit |
| invoice_source | string | Source of the invoice |
| additional_invoice_field | string | Additional field on the invoice |
| sales_excluding_redemption | decimal? | Sales excluding redemption |
| linked_invoice_id | Guid? | ID of the linked invoice |
| linked_invoice_number | string | Number of the linked invoice |
| vendor_id | Guid? | ID of the vendor |
| vendor_name | string | Name of the vendor |
| brand_id | Guid? | ID of the brand |
| brand_name | string | Name of the brand |
| display_name | string | Display name of the center |
| company_name | string | Company name of the center |
| tin_number | string | TIN (Taxpayer Identification Number) of the center |
| tot_number | string | TOT (Tourist Occupancy Tax) number of the center |
| vat_number | string | VAT (Value Added Tax) number of the center |
| optional_field_1 | string | Optional field 1 of the center |
| optional_field_2 | string | Optional field 2 of the center |
| optional_field_3 | string | Optional field 3 of the center |
| optional_field_4 | string | Optional field 4 of the center |
| optional_field_5 | string | Optional field 5 of the center |
| optional_field_6 | string | Optional field 6 of the center |
| optional_field_7 | string | Optional field 7 of the center |
| optional | | |
| JSON Property | Data Type | Description |
|---|
| sales_exc_tax | decimal | Sales excluding tax |
| tax | decimal | Tax amount |
| sales_inc_tax | decimal | Sales including tax |
| discount | decimal? | Discount amount (nullable) |
| price | decimal? | Price amount (nullable) |
| qty | int? | Quantity (nullable) |
| JSON Property | Data Type | Description |
|---|
| total | int | Total number of items |
| page | int | Current page number |
| size | int | Number of items per page |
| JSON Property | Data Type | Description |
|---|
| code | int | Error code |
| message | string | Error message |
| JSON Property | Data Type | Description |
|---|
| guest_ids | List | List of guest IDs |
| sold_by_ids | List | List of IDs of those who sold |
| item_types | List | List of item types |
| item_ids | List | List of item IDs |
| closed_by_ids | List | List of IDs of those who closed |
| created_by_ids | List | List of IDs of those who created |
| category_ids | List | List of category IDs |
| invoice_statuses | List | List of invoice statuses |
| invoice_date | DateTime? | Date of the invoice |
| group_columns | List | List of columns for grouping |
| base_id | Guid? | Base ID |
| date_type | int? | Date type |
| liability_type | int? | Liability type |
| invoice_closed_date | DateTime? | Closed date of the invoice |
| business_units | MultiGuidFilterRequestModel | List of business units |
| vendors | MultiGuidFilterRequestModel | List of vendors |
| brands | MultiGuidFilterRequestModel | List of brands |