---
title: "Get Last Sales for Machine by MachineID"
method: GET
path: "/v1/machines/{MachineID}/lastSales"
tags: ["Machines"]
---

# Get Last Sales for Machine by MachineID

`GET /v1/machines/{MachineID}/lastSales`

Retrieves the most recent sales transactions for a specific machine, identified by MachineID. This allows users to view the latest sales activity associated with the machine.

## Path parameters

- `MachineID` integer, required

## Response `200`

A list of the most recent sales transactions for the specified machine.

- MachineLastSales[]
  - `TransactionID` integer — The unique identifier for the sales transaction.
  - `PaymentServiceTransactionID` string, nullable — The identifier for the transaction as provided by the payment service.
  - `PaymentServiceProviderName` string, nullable — The name of the payment service provider used in the transaction.
  - `MachineID` integer — The unique identifier of the machine where the transaction occurred.
  - `MachineName` string, nullable — The name of the machine where the transaction occurred.
  - `MachineNumber` string, nullable — The serial or identification number of the machine.
  - `InstituteLocationName` string, nullable — The name of the location or institute where the machine is installed.
  - `AuthorizationValue` number, double — The authorized amount for the transaction.
  - `SettlementValue` number, double — The settled amount for the transaction.
  - `CurrencyCode` string, nullable — The currency code in which the transaction was conducted.
  - `PaymentMethod` string, nullable — The payment method used for the transaction (e.g., credit card, mobile payment).
  - `RecognitionMethod` string, nullable — The method used to recognize the payment (e.g., card swipe, NFC).
  - `CardNumber` string, nullable — The masked card number used in the transaction, if applicable.
  - `CardBrand` string, nullable — The brand of the card used (e.g., Visa, MasterCard).
  - `CLI` string, nullable — The CLI (Caller Line Identification) or associated identifier for the transaction.
  - `ProductName` string, nullable — The name of the product sold in the transaction.
  - `MultivendTransactionBit` boolean — Indicates whether the transaction involved multiple products (multi-vend).
  - `MultivendNumverOfProducts` integer — The number of products involved in a multi-vend transaction.
  - `UnitOfMeasurement` string, nullable — The unit of measurement for the product (e.g., liters, pieces).
  - `Quantity` number, double — The quantity of the product sold in the transaction.
  - `EnergyConsumed` number, double — The amount of energy consumed during the transaction, if applicable.
  - `AuthorizationDateTimeGMT` string, date-time — The date and time when the transaction was authorized, in GMT.
  - `MachineAuthorizationTime` string, date-time — The local date and time when the machine authorized the transaction.
  - `SettlementDateTimeGMT` string, date-time — The date and time when the transaction was settled, in GMT.
  - `SiteID` integer — The unique identifier of the site where the machine is located.
  - `SiteName` string, nullable — The name of the site where the machine is located.

---

[API](https://skmtc.net/nayax/apis/nayax-cortina-api.md) · [All operations](https://skmtc.net/nayax/apis/nayax-cortina-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nayax/nayax-cortina-api/revisions/421f6f83c257/schema)
