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

# Generate eReceipt for your Transaction

> Generates an electronic receipt (eReceipt) for a specified transaction. The request body should include the transaction details necessary to generate the eReceipt.



## OpenAPI

````yaml /openapi/lynx.yaml post /v1/ereceipt/generate
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v1/ereceipt/generate:
    post:
      tags:
        - EReceipt
      summary: Generate eReceipt for your Transaction
      description: >-
        Generates an electronic receipt (eReceipt) for a specified transaction.
        The request body should include the transaction details necessary to
        generate the eReceipt.
      operationId: generate-ereceipt
      requestBody:
        description: >-
          The details of the transaction for which the eReceipt is to be
          generated.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EReceiptRequest'
      responses:
        '200':
          description: The eReceipt was successfully generated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EReceiptResponse'
components:
  schemas:
    EReceiptRequest:
      type: object
      description: >-
        Represents the details required to generate an electronic receipt
        (eReceipt) for a transaction.
      properties:
        TrasactionID:
          type: integer
          format: int64
          description: >-
            The unique identifier of the transaction for which the eReceipt is
            being generated.
        TransactionDateTime:
          type: string
          format: date-time
          description: The date and time when the transaction occurred.
        TrasactionSiteID:
          type: integer
          format: int32
          description: The unique identifier of the site where the transaction took place.
        MachineID:
          type: integer
          format: int64
          description: The unique identifier of the machine involved in the transaction.
        FullName:
          type: string
          nullable: true
          description: >-
            The full name of the individual for whom the eReceipt is being
            generated.
        Email:
          type: string
          nullable: true
          description: The email address to which the eReceipt will be sent.
      additionalProperties: false
    EReceiptResponse:
      type: object
      description: >-
        Represents the response after generating an electronic receipt
        (eReceipt), including the receipt URL and status.
      properties:
        ReceiptURL:
          type: string
          nullable: true
          description: The URL where the generated eReceipt can be accessed.
        EmailSent:
          type: boolean
          description: Indicates whether the eReceipt was successfully sent via email.
        EreceiptID:
          type: integer
          format: int64
          description: The unique identifier of the generated eReceipt.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````