---
title: "Get Sales"
method: GET
path: "/f/v2/business-location/{businessLocationId}/sales"
tags: ["FinancialV2"]
---

# Get Sales

`GET /f/v2/business-location/{businessLocationId}/sales`

Returns financial data for a business location for a specified date range. Sorted by the `timeClosed` field of the sales.

## Path parameters

- `businessLocationId` integer, required

## Query parameters

- `from` string, date-time, required
- `to` string, date-time
- `include` string
- `pageSize` integer
- `nextPageToken` string

## Response `200`

Financial data returned successfully.

- FinancialApiSalesExportDto
  - `sales` FinancialApiSale[] — Array of sale objects.
    - `accountReference` string — Unique reference id of the account.
    - `accountFiscId` string — The account identifier.
    - `receiptId` string — The unique identifier for the receipt associated with this account.
    - `source` FinancialApiAccountLink
      - `initialAccountId` string — The `accountFiscId` of the initial transaction associated with the current account, if applicable. For example, in the case of a refund. This will match the `accountFiscId` of the sale if there is no associated account.
      - `previousAccountId` string — The `accountFiscId` of the previous transaction associated with the current account, if applicable. For example, in the case of a refund. This may be different from `initialAccountId` if there is more than one associated account. It will not be displayed if there is no associated account.
    - `salesLines` FinancialApiLine[]
      - `id` string — The sale line identifier.
      - `parentLineId` string — The sale line this item is associated with, if applicable.
      - `totalNetAmountWithTax` string — Total amount of sale line, including tax. **Important Note:** This field is for use with tax inclusive businesses. For tax exclusive businesses, see `taxAmount` and `taxLines` for tax calculations. The value is precise up to six decimal places.
      - `totalNetAmountWithoutTax` string — The total amount of the sale line, before tax. The value is precise up to six decimal places.
      - `menuListPrice` string — The price listed on the menu.
      - `unitCostPrice` string — The unit cost price.
      - `serviceCharge` string — The service charge.
      - `serviceChargeType` 'UNTAXED' | 'APPORTIONED' | 'NO_SERVICE_CHARGE' — The type of service charge applied to the sale line.
      - `serviceChargeRate` string — The service charge rate, as a percentage. The value is precise up to two decimal places.
      - `discountAmount` string — The discount amount. The value is precise up to six decimal places.
      - `taxCode` string — The system code for the tax rate.
      - `taxAmount` string — The tax total.
      - `taxRatePercentage` string — The tax rate, as a percentage. The value is precise up to two decimal places.
      - `taxLines` FinancialApiTaxLine[]
        - `taxId` string — The unique identifier for the tax rate.
        - `taxCode` string — The system code for the tax rate.
        - `taxRate` string — The tax rate, as a multiplier.
        - `taxAmount` string — The tax total.
        - `taxIncluded` boolean — Whether or not the business is tax inclusive.
      - `discountType` string — The type of discount.
      - `discountCode` string — The discount code.
      - `discountName` string — The name of the discount.
      - `accountDiscountAmount` string — The account discount amount. The value is precise up to two decimal places.
      - `accountDiscountType` string — The account discount type (if any).
      - `accountDiscountCode` string — The account discount code (if any).
      - `accountDiscountName` string — The account discount name (if any).
      - `totalDiscountAmount` string — The total discount amount. The value is precise up to two decimal places.
      - `sku` string — The item SKU.
      - `name` string — The item name.
      - `nameOverride` string — Item name entered manually by the POS user upon item selection.
      - `statisticGroup` string — The item's statistic group.
      - `quantity` string — The quantity of the item sold, which can potentially be a fractional value, especially in cases where the item is sold by weight. The value is precise up to three decimal places.
      - `accountingGroup` FinancialApiAccountingGroup
        - `accountingGroupId` integer — The unique identifier for the item's accounting group.
        - `name` string — The name of the accounting group.
        - `statisticGroup` string — The accounting group's statistic group.
        - `code` string — The code assigned to the accounting group.
      - `currency` string — The currency for the sale line.
      - `tags` string[] — The tags attached to the line item.
      - `revenueCenter` string — The name of the revenue center where the sale line was created.
      - `revenueCenterId` integer — The unique identifier for the revenue center where the sale line was created.
      - `categories` FinancialApiCategory[]
        - `category` string — The line item's category.
        - `value` string — The category value.
      - `timeOfSale` string, date-time — The timestamp of when the line item was created.
      - `staffId` integer — The unique identifier for the user who created the line item.
      - `staffName` string — The name of the user who created the line item.
      - `deviceId` integer — The unique identifier for the device where the sale line was created.
      - `deviceName` string — The name of the device where the sale line was created.
      - `voidReason` string — The void reason, if applicable.
      - `accountProfileCode` string — The code of the account profile used.
    - `payments` FinancialApiPayment[]
      - `code` string — The code of the payment method.
      - `description` string — The name of the payment method.
      - `paymentMethodId` integer — The unique identifier for the payment method.
      - `netAmountWithTax` string — The net payment amount, including tax. The value is precise up to two decimal places, and if necessary, it is rounded using the "half-even" rounding mode.
      - `currency` string — The payment currency.
      - `tip` string — The tip amount. The value is precise up to two decimal places, and if necessary, it is rounded using the "half-even" rounding mode.
      - `consumer` FinancialApiConsumer
        - `id` string — The UUID of the customer associated with the payment, if applicable.
        - `customerId` integer — The unique identifier for the customer.
        - `title` string — The title or honorific of the customer.
        - `firstName` string — The first name of the customer.
        - `lastName` string — The last name of the customer.
        - `phoneNumber1` string — The primary phone number of the customer.
        - `phoneNumber2` string — An alternative phone number for the customer.
        - `companyName` string — The name of the company associated with the customer, if applicable.
        - `addressLine1` string — The primary address line for the customer's address.
        - `addressLine2` string — The secondary address line for the customer's address, such as apartment or suite number.
        - `zipCode` string — The postal code for the customer's address.
        - `city` string — The city of the customer's address.
        - `state` string — The state or region of the customer's address.
        - `email` string — The email address of the customer.
        - `taxIdentifier` string — The tax identifier of the customer.
        - `fiscalCode` string — The fiscal code of the customer.
        - `destinationCode` string — The destination code of the customer.
      - `type` 'NORMAL' | 'ACCOUNTS_RECEIVABLE' — The type of payment
      - `deviceId` string — The unique identifier for the device where the payment was processed.
      - `deviceName` string — The name of the device where the payment was processed.
      - `staffId` number — The unique identifier for the user who processed the payment.
      - `staffName` string — The name of the user who processed the payment.
      - `authorization` string — The authorization code for the payment.
      - `externalReference` string — The external reference code for the payment.
      - `revenueCenter` string — The name of the revenue center where the payment was processed.
      - `revenueCenterId` number — The unique identifier for the revenue center where the payment was processed.
      - `fiscId` string — The unique identifier for the payment.
      - `uuid` string — The base64url encoded UUID of the payment.
      - `fiscDate` string, date-time — The time stamp of the payment.
      - `surcharge` string — The surcharge amount. The value is precise up to two decimal places, and if necessary, it is rounded using the "half-even" rounding mode.
      - `roundingAmount` string — The cash rounding adjustment applied to the payment, in countries where cash payments are legally rounded (for example Belgium, where cash totals are rounded to the nearest 5 cents). It is the difference between the rounded amount actually paid (netAmountWithTax) and the amount payable before rounding. The value is negative when the amount was rounded down, positive when it was rounded up and "0.00" when no rounding was applied. The value is precise up to two decimal places
    - `timeOfOpening` string, date-time — The account creation timestamp.
    - `timeClosed` string, date-time — The account close timestamp.
    - `cancelled` boolean — Whether the account was cancelled.
    - `externalFiscalNumber` string — The external reference id of the account.
    - `tableNumber` string — The table number.
    - `tableName` string — The name of the table.
    - `accountProfileCode` string — The account profile associated with the account.
    - `ownerName` string — The name of the user associated with the account.
    - `ownerId` integer — The unique identifier for the user associated with the account.
    - `type` 'SALE' | 'VOID' | 'RECALL' | 'REFUND' | 'SPLIT' | 'UPDATE' | 'TRANSFER' | 'FLOAT' | 'TRANSITORY' | 'CROSS_BL' | 'CANCEL' — The type of sale.
    - `externalReferences` string[]
    - `nbCovers` number, double — The number of covers.
    - `dineIn` boolean — Whether the order is dine-in.
    - `deviceId` integer — The unique identifier for the device where the account was created.
    - `deviceName` string — The name of the device where the account was created.
    - `voidReason` string — The void reason, if applicable.
  - `nextPageToken` string — Token to use to get the next page of results, if applicable.

## Other responses

- `400` — Bad Request - Invalid request parameters or format.
- `500` — Internal Server Error - An error occurred on the server.

---

[API](https://skmtc.net/lightspeed/apis/lightspeed-restaurant-k-series-api.md) · [All operations](https://skmtc.net/lightspeed/apis/lightspeed-restaurant-k-series-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightspeed/lightspeed-restaurant-k-series-api/revisions/81c537153037/schema)
