> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Last Sales for Machine by MachineID

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



## OpenAPI

````yaml /openapi/lynx.yaml get /v1/machines/{MachineID}/lastSales
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/machines/{MachineID}/lastSales:
    get:
      tags:
        - Machines
      summary: Get Last Sales for Machine by MachineID
      description: >-
        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.
      operationId: get-last-sales-for-machine
      parameters:
        - name: MachineID
          in: path
          required: true
          description: The unique identifier of the machine.
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: >-
            A list of the most recent sales transactions for the specified
            machine.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MachineLastSales'
components:
  schemas:
    MachineLastSales:
      type: object
      properties:
        TransactionID:
          type: integer
          format: int64
          description: The unique identifier for the sales transaction.
        PaymentServiceTransactionID:
          type: string
          nullable: true
          description: >-
            The identifier for the transaction as provided by the payment
            service.
        PaymentServiceProviderName:
          type: string
          nullable: true
          description: The name of the payment service provider used in the transaction.
        MachineID:
          type: integer
          format: int64
          description: The unique identifier of the machine where the transaction occurred.
        MachineName:
          type: string
          nullable: true
          description: The name of the machine where the transaction occurred.
        MachineNumber:
          type: string
          nullable: true
          description: The serial or identification number of the machine.
        InstituteLocationName:
          type: string
          nullable: true
          description: >-
            The name of the location or institute where the machine is
            installed.
        AuthorizationValue:
          type: number
          format: double
          description: The authorized amount for the transaction.
        SettlementValue:
          type: number
          format: double
          description: The settled amount for the transaction.
        CurrencyCode:
          type: string
          nullable: true
          description: The currency code in which the transaction was conducted.
        PaymentMethod:
          type: string
          nullable: true
          description: >-
            The payment method used for the transaction (e.g., credit card,
            mobile payment).
        RecognitionMethod:
          type: string
          nullable: true
          description: The method used to recognize the payment (e.g., card swipe, NFC).
        CardNumber:
          type: string
          nullable: true
          description: The masked card number used in the transaction, if applicable.
        CardBrand:
          type: string
          nullable: true
          description: The brand of the card used (e.g., Visa, MasterCard).
        CLI:
          type: string
          nullable: true
          description: >-
            The CLI (Caller Line Identification) or associated identifier for
            the transaction.
        ProductName:
          type: string
          nullable: true
          description: The name of the product sold in the transaction.
        MultivendTransactionBit:
          type: boolean
          description: >-
            Indicates whether the transaction involved multiple products
            (multi-vend).
        MultivendNumverOfProducts:
          type: integer
          format: int32
          description: The number of products involved in a multi-vend transaction.
        UnitOfMeasurement:
          type: string
          nullable: true
          description: The unit of measurement for the product (e.g., liters, pieces).
        Quantity:
          type: number
          format: double
          description: The quantity of the product sold in the transaction.
        EnergyConsumed:
          type: number
          format: double
          description: The amount of energy consumed during the transaction, if applicable.
        AuthorizationDateTimeGMT:
          type: string
          format: date-time
          description: The date and time when the transaction was authorized, in GMT.
        MachineAuthorizationTime:
          type: string
          format: date-time
          description: The local date and time when the machine authorized the transaction.
        SettlementDateTimeGMT:
          type: string
          format: date-time
          description: The date and time when the transaction was settled, in GMT.
        SiteID:
          type: integer
          format: int32
          description: The unique identifier of the site where the machine is located.
        SiteName:
          type: string
          nullable: true
          description: The name of the site where the machine is located.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````