# In-store sales

**Vânzări în magazine** (in-store sales, *Imports in-store sales from the cash register*) brings the receipts your
stores' cash registers issued into SyncSHOP, so stock, revenue and margins are complete. SyncSHOP never issues a fiscal
receipt: in Romania sales at a physical point are receipted by an approved cash register (AMEF), and the receipt stays
the register's. SyncSHOP only records what was sold.

## Importing the register's report

Choose the store, then the sales report your register software exports, saved as **CSV**: one row per product, with
the receipt number on every row. The first row names the columns; SyncSHOP recognises them in Romanian or English:

| Column | Header, for example | |
| --- | --- | --- |
| Receipt number | `Nr bon`, `bon`, `receipt` | required |
| Date (and time) | `Data` (`23.11.2026 10:15` or `2026-11-23 10:15`), with `Ora` apart if you like | required |
| Product code | `Cod`, `SKU`, `Cod bare`, `EAN`: the product's SKU or barcode | required |
| Quantity | `Cantitate`, `qty`; negative for goods brought back | required |
| Unit price with VAT | `Pret`, `Pret unitar` (or the row value, `Valoare`) | one of the two |
| VAT rate | `TVA`, `Cota TVA` | otherwise the product's own rate |
| Payment | `Plata`: numerar / card | |
| Name, loyalty card | `Denumire`, `Card fidelitate` | |

Columns may be separated by `;`, `,` or a tab, and prices written `1.249,90` or `1249.90`. A file with spreadsheet
headers saved from Excel works the same; XLSX files themselves are not read yet.

What happens to each receipt:

- **Once only.** A receipt is kept by store, number and day: importing the same report again changes nothing, and the
  import says how many receipts were already there.
- **Stock** comes off that store's stock (a bundle's components for a bundle). When SyncSHOP counted fewer than the
  register sold, it takes what it had and lists the product under **Vândute peste stocul din SyncSHOP**: count that
  product in the store (see [Stock](stock.md)). A negative quantity puts the goods back.
- **A code no product has** is still recorded as a sale (the money was taken), without stock, and listed so you can
  give the product that SKU or barcode.
- **Revenue and cost** go into the profit reports as the *store* channel at that store: the sale without VAT, and the
  cost of the goods (left empty when the product has no cost yet, never 0). A product brought back is a refund.

The page lists the last imports with what needs a look, and the latest receipts.

## From the register's software, automatically

Register software that can send receipts itself uses the [Integration API](api.md): `POST /api/v1/bulk/store-sales`
with a key that has `store_sales:write`, one receipt a row (`location_id`, `receipt`, `sold_at`, `payment` cash / card /
other, `lines` with `code`, `quantity`, `unit_price` in bani with VAT, `vat_percent`). `GET /api/v1/store-sales` reads
back what was recorded. Receipts sent this way are listed together as the day's API import.

## Not yet

- Loyalty points for in-store purchases: the loyalty card number on a receipt is kept, but no points are added yet.
- A SyncSHOP till screen that prints through a fiscal printer: only after the legal check with the printers'
  distributors and an accountant.
