---
title: "Generate eReceipt for your Transaction"
method: POST
path: "/v1/ereceipt/generate"
tags: ["EReceipt"]
---

# Generate eReceipt for your Transaction

`POST /v1/ereceipt/generate`

## Request

- Base URL: `https://example.com:443`
- URL: `https://example.com:443/v1/ereceipt/generate`
- Auth: none required
- TypeScript: <https://skmtc.dev/nayax/apis/nayax-cortina-api/docs/v1/ereceipt/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Request body

- EReceiptRequest: Represents the details required to generate an electronic receipt (eReceipt) for a transaction.
  - `TrasactionID` integer: The unique identifier of the transaction for which the eReceipt is being generated.
  - `TransactionDateTime` string, date-time: The date and time when the transaction occurred.
  - `TrasactionSiteID` integer: The unique identifier of the site where the transaction took place.
  - `MachineID` integer: The unique identifier of the machine involved in the transaction.
  - `FullName` string, nullable: The full name of the individual for whom the eReceipt is being generated.
  - `Email` string, nullable: The email address to which the eReceipt will be sent.

## Response `200`

The eReceipt was successfully generated.

- EReceiptResponse: Represents the response after generating an electronic receipt (eReceipt), including the receipt URL and status.
  - `ReceiptURL` string, nullable: The URL where the generated eReceipt can be accessed.
  - `EmailSent` boolean: Indicates whether the eReceipt was successfully sent via email.
  - `EreceiptID` integer: The unique identifier of the generated eReceipt.

---

[API](https://skmtc.dev/nayax/apis/nayax-cortina-api.md) - [All operations](https://skmtc.dev/nayax/apis/nayax-cortina-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nayax/apis/nayax-cortina-api/revisions/421f6f83c257?raw)
