> ## Documentation Index
> Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Payment Methods for Machine

> Creates new payment methods for a specific machine, identified by MachineID. This operation allows users to add new payment options to the machine.



## OpenAPI

````yaml /openapi/lynx.yaml post /v1/machines/{MachineID}/paymentMethods
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}/paymentMethods:
    post:
      tags:
        - Machines
      summary: Create Payment Methods for Machine
      description: >-
        Creates new payment methods for a specific machine, identified by
        MachineID. This operation allows users to add new payment options to the
        machine.
      operationId: create-payment-methods-for-machine
      parameters:
        - name: MachineID
          in: path
          required: true
          description: The unique identifier of the machine.
          schema:
            type: integer
            format: int64
      requestBody:
        description: The payment methods to create for the machine.
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/MachinePaymentResponse'
      responses:
        '200':
          description: The newly created payment methods for the specified machine.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MachinePaymentResponse'
components:
  schemas:
    MachinePaymentResponse:
      type: object
      properties:
        MachineID:
          type: integer
          format: int64
          description: >-
            The unique identifier of the machine associated with the payment
            method.
        PaymentMethodID:
          type: integer
          format: int32
          description: The unique identifier of the payment method.
        ConvenienceFeePercentageBit:
          type: boolean
          nullable: true
          description: Indicates whether a convenience fee is applied as a percentage.
        ConvenienceFeeValue:
          type: number
          format: double
          description: The value of the convenience fee applied to the payment method.
        LastUpdated:
          type: string
          format: date-time
          description: The date and time when the payment method was last updated.
        ExternalPaymentProviderUsername:
          type: string
          nullable: true
          description: The username used to authenticate with an external payment provider.
        ExternalPaymentProviderPassword:
          type: string
          nullable: true
          description: The password used to authenticate with an external payment provider.
        ExternalPaymentProviderTerminalID:
          type: string
          nullable: true
          description: The terminal ID provided by the external payment provider.
        ExternalPaymentProviderLocationIdentifier:
          type: string
          nullable: true
          description: The location identifier used by the external payment provider.
        PaymentMethodWorkingDays:
          type: array
          items:
            $ref: '#/components/schemas/WorkDay'
          nullable: true
          description: The working days during which the payment method is active.
        PaymentMethodCustomData:
          type: string
          nullable: true
          description: Custom data related to the payment method, provided as a string.
        ConvenienceFeeBackupValue:
          type: number
          format: double
          description: >-
            A backup value for the convenience fee in case the primary value is
            unavailable.
        PaymentMethodQRString:
          type: string
          nullable: true
          description: A QR code string associated with the payment method.
      additionalProperties: false
    WorkDay:
      type: object
      description: >-
        Schema representing the working days and hours for a specific payment
        method.
      properties:
        name:
          type: string
          nullable: true
          description: The name of the workday (e.g., Monday, Holiday).
        week_day:
          type: integer
          format: int32
          nullable: true
          description: >-
            The day of the week represented as an integer (e.g., 1 for Monday, 7
            for Sunday).
        start_time:
          type: string
          format: date-span
          nullable: true
          description: The start time of the working hours for the payment method.
        end_time:
          type: string
          format: date-span
          nullable: true
          description: The end time of the working hours for the payment method.
        work_hour_lut_id:
          type: integer
          format: int32
          nullable: true
          description: >-
            The lookup identifier for the work hours associated with the payment
            method.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````