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

# Validates Card for Machine Use

> Validates whether a prepaid or discount card can be used with a specific machine.



## OpenAPI

````yaml /openapi/lynx.yaml get /v1/cards/validate-machine/{machineId}
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/cards/validate-machine/{machineId}:
    get:
      tags:
        - Cards
      summary: Validates Card for Machine Use
      description: >-
        Validates whether a prepaid or discount card can be used with a specific
        machine.
      operationId: validate-card-for-machine
      parameters:
        - name: machineId
          in: path
          required: true
          description: The unique identifier of the machine to validate the card against.
          schema:
            type: integer
            format: int64
        - name: cardId
          in: query
          description: The unique identifier of the card.
          schema:
            type: integer
            format: int64
        - name: cardUniqueIdentifier
          in: query
          description: The unique identifier of the card.
          schema:
            type: string
      responses:
        '200':
          description: Validation result retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardsMachineResponseModel'
components:
  schemas:
    CardsMachineResponseModel:
      type: object
      description: >-
        Represents the response model for validating a prepaid or discount card
        for use with a specific machine, including machine and card details.
      properties:
        Machine:
          $ref: '#/components/schemas/MachineForCardResponseModel'
          description: Details about the machine involved in the validation.
        PrepaidCard:
          $ref: '#/components/schemas/PrepaidCardDbEntity'
          description: Details of the prepaid card being validated.
        Card:
          $ref: '#/components/schemas/CardsDbEntity'
          description: Details of the card being validated.
    MachineForCardResponseModel:
      type: object
      description: Represents the machine details related to the card validation process.
      properties:
        ActorID:
          type: integer
          format: int64
          description: The unique identifier of the actor associated with the machine.
        MachineID:
          type: integer
          format: int64
          description: The unique identifier of the machine.
        PurchaseAllowed:
          type: boolean
          description: >-
            Indicates whether purchases are allowed on the machine for the
            validated card.
      additionalProperties: false
    PrepaidCardDbEntity:
      type: object
      description: >-
        Represents the detailed properties of a prepaid card, including credit
        attributes, usage limits, and revalue options.
      properties:
        CardID:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the card.
        CardDiscountTypeBit:
          type: integer
          format: int32
          nullable: true
          description: Indicates the type of discount applied to the card.
        CardDiscountAmount:
          type: number
          format: double
          nullable: true
          description: The discount amount applied to the card.
        CardCreditTypeMoneyBit:
          type: boolean
          nullable: true
          description: Indicates whether the credit type is money.
        CardCreditAccumulateBit:
          type: boolean
          nullable: true
          description: Indicates whether the credit on the card can accumulate over time.
        CardCreditSingleUseBit:
          type: boolean
          nullable: true
          description: Indicates whether the credit on the card is for single-use only.
        CardRevalueCashBit:
          type: boolean
          nullable: true
          description: Indicates whether the card can be revalued with cash.
        CardRevalueCreditCardBit:
          type: boolean
          nullable: true
          description: Indicates whether the card can be revalued with a credit card.
        CardCredit:
          type: number
          format: double
          nullable: true
          description: The amount of credit available on the card.
        CardRevalueCredit:
          type: number
          format: double
          nullable: true
          description: The amount of credit added to the card during a revalue operation.
        CardMaxRevalueAmountLimit:
          type: number
          format: double
          nullable: true
          description: The maximum limit for revalue amounts.
        CreditAmountDailyLimit:
          type: number
          format: double
          nullable: true
          description: The daily limit on the amount of credit that can be used.
        CreditAmountWeeklyLimit:
          type: number
          format: double
          nullable: true
          description: The weekly limit on the amount of credit that can be used.
        CreditAmountMonthlyLimit:
          type: number
          format: double
          nullable: true
          description: The monthly limit on the amount of credit that can be used.
        CreditTransactionsDailyLimit:
          type: integer
          format: int32
          nullable: true
          description: The daily limit on the number of transactions that can be performed.
        CreditTransactionsWeeklyLimit:
          type: integer
          format: int32
          nullable: true
          description: >-
            The weekly limit on the number of transactions that can be
            performed.
        CreditTransactionsMonthlyLimit:
          type: integer
          format: int32
          nullable: true
          description: >-
            The monthly limit on the number of transactions that can be
            performed.
        CreditTransactionsMonthlyReload:
          type: integer
          format: int32
          nullable: true
          description: The number of transactions allowed per month for reloading the card.
        CreditAmountCapture:
          type: number
          format: double
          nullable: true
          description: The amount of credit captured.
        CreditTransactionsCapture:
          type: integer
          format: int32
          nullable: true
          description: The number of transactions captured.
        CreditCaptureDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time of the last capture.
        CreditAmountDailyUsage:
          type: number
          format: double
          nullable: true
          description: The amount of credit used daily.
        CreditAmountWeeklyUsage:
          type: number
          format: double
          nullable: true
          description: The amount of credit used weekly.
        CreditAmountMonthlyUsage:
          type: number
          format: double
          nullable: true
          description: The amount of credit used monthly.
        CreditAmountTotalUsage:
          type: number
          format: double
          nullable: true
          description: The total amount of credit used.
        CreditTransactionsDailyUsage:
          type: integer
          format: int32
          nullable: true
          description: The number of transactions performed daily.
        CreditTransactionsWeeklyUsage:
          type: integer
          format: int32
          nullable: true
          description: The number of transactions performed weekly.
        CreditTransactionsMonthlyUsage:
          type: integer
          format: int32
          nullable: true
          description: The number of transactions performed monthly.
        TransactionsTotalUsage:
          type: integer
          format: int64
          nullable: true
          description: The total number of transactions performed.
        CardRevalueExpirationDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the revalue credit on the card expires.
        CardSetSingleUseDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card is set for single-use.
        RemoveSingleUseDate:
          type: string
          format: date-time
          nullable: true
          description: >-
            The date and time when the single-use restriction is removed from
            the card.
        CreditAmountMonthlyReload:
          type: number
          format: double
          nullable: true
          description: The monthly reload amount for the card.
        CreditTransactionsTotalUsage:
          type: integer
          format: int32
          nullable: true
          description: The total number of credit transactions performed.
        CardCustomerTypeID:
          type: integer
          format: int32
          nullable: true
          description: The customer type identifier associated with the card.
        CardLastUpdatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who last updated the card.
        CardLastUpdatedDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card was last updated.
        final_wd_limit_money:
          type: number
          format: double
          nullable: true
          description: The final weekday limit on the amount of money that can be used.
      additionalProperties: false
    CardsDbEntity:
      type: object
      description: >-
        Represents the entity details of a card, including its attributes,
        status, and associated actor information.
      properties:
        CardID:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the card.
        ActorID:
          type: integer
          format: int64
          nullable: true
          description: The unique identifier of the actor associated with the card.
        CardUniqueIdentifier:
          type: string
          nullable: true
          description: The unique identifier assigned to the card.
        CardDisplayNumber:
          type: string
          nullable: true
          description: The display number of the card.
        CardHolderName:
          type: string
          nullable: true
          description: The name of the cardholder.
        CardStatus:
          type: integer
          format: int32
          nullable: true
          description: The current status of the card.
        CardType:
          type: integer
          format: int32
          nullable: true
          description: The type identifier of the card.
        CardUserIdentity:
          type: string
          nullable: true
          description: The unique identity or user ID associated with the card.
        UpdatedDt:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card was last updated.
        CreatedDt:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card was created.
        CreatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who created the card.
        UpdatedBy:
          type: integer
          format: int64
          nullable: true
          description: The identifier of the user who last updated the card.
        CountryID:
          type: integer
          format: int32
          nullable: true
          description: The identifier of the country associated with the card.
        Email:
          type: string
          nullable: true
          description: The email address associated with the card.
        CardPhysicalType:
          type: integer
          format: int32
          nullable: true
          description: The physical type identifier of the card.
        MemberType:
          type: integer
          format: int32
          nullable: true
          description: The membership type identifier associated with the card.
        CardActivationDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card becomes active.
        CardExpirationDate:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the card expires.
        CardImageUrl:
          type: string
          nullable: true
          description: The URL of the image associated with the card.
        CardNote:
          type: string
          nullable: true
          description: Any additional notes associated with the card.
        wd_limits_money:
          type: string
          nullable: true
          description: The monetary limits applied to the card on specific weekdays.
        wd_limits_trans:
          type: string
          nullable: true
          description: The transaction limits applied to the card on specific weekdays.
        use_wd_limit:
          type: boolean
          nullable: true
          description: Indicates whether the weekday limits are enabled for the card.
        CardExternalApplicationUserID:
          type: string
          nullable: true
          description: The external application user ID associated with the card.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````