Skip to main content
GET
/
v1
/
machines
/
{MachineID}
/
lastSales
Get Last Sales for Machine by MachineID
curl --request GET \
  --url https://qa-lynx.nayax.com/operational/v1/machines/{MachineID}/lastSales \
  --header 'Authorization: <api-key>'
[
  {
    "TransactionID": 123,
    "PaymentServiceTransactionID": "<string>",
    "PaymentServiceProviderName": "<string>",
    "MachineID": 123,
    "MachineName": "<string>",
    "MachineNumber": "<string>",
    "InstituteLocationName": "<string>",
    "AuthorizationValue": 123,
    "SettlementValue": 123,
    "CurrencyCode": "<string>",
    "PaymentMethod": "<string>",
    "RecognitionMethod": "<string>",
    "CardNumber": "<string>",
    "CardBrand": "<string>",
    "CLI": "<string>",
    "ProductName": "<string>",
    "MultivendTransactionBit": true,
    "MultivendNumverOfProducts": 123,
    "UnitOfMeasurement": "<string>",
    "Quantity": 123,
    "EnergyConsumed": 123,
    "AuthorizationDateTimeGMT": "2023-11-07T05:31:56Z",
    "MachineAuthorizationTime": "2023-11-07T05:31:56Z",
    "SettlementDateTimeGMT": "2023-11-07T05:31:56Z",
    "SiteID": 123,
    "SiteName": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Path Parameters

MachineID
integer<int64>
required

The unique identifier of the machine.

Response

200 - application/json

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

TransactionID
integer<int64>

The unique identifier for the sales transaction.

PaymentServiceTransactionID
string | null

The identifier for the transaction as provided by the payment service.

PaymentServiceProviderName
string | null

The name of the payment service provider used in the transaction.

MachineID
integer<int64>

The unique identifier of the machine where the transaction occurred.

MachineName
string | null

The name of the machine where the transaction occurred.

MachineNumber
string | null

The serial or identification number of the machine.

InstituteLocationName
string | null

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 | null

The currency code in which the transaction was conducted.

PaymentMethod
string | null

The payment method used for the transaction (e.g., credit card, mobile payment).

RecognitionMethod
string | null

The method used to recognize the payment (e.g., card swipe, NFC).

CardNumber
string | null

The masked card number used in the transaction, if applicable.

CardBrand
string | null

The brand of the card used (e.g., Visa, MasterCard).

CLI
string | null

The CLI (Caller Line Identification) or associated identifier for the transaction.

ProductName
string | null

The name of the product sold in the transaction.

MultivendTransactionBit
boolean

Indicates whether the transaction involved multiple products (multi-vend).

MultivendNumverOfProducts
integer<int32>

The number of products involved in a multi-vend transaction.

UnitOfMeasurement
string | null

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<int32>

The unique identifier of the site where the machine is located.

SiteName
string | null

The name of the site where the machine is located.