---
title: "Receipt & Print API"
source_url: https://docs.rapyd.net/en/receipt---print-api.html
lang: en
---

# Receipt & Print API

### Print a stored receipt

Silently reprints the receipt for a completed transaction. `cardHolder = true` prints the cardholder copy; `false` prints the merchant copy.

```java

Api.printReceipt(context, uti, true);   // cardholder copy
Api.printReceipt(context, uti, false);  // merchant copy
```

**Response:** `ACTION_GET_PRINT_STATUS_RESULT` with extra `PRISULT` (int). See [Printer Status Codes](https://docs.rapyd.net/en/printer-status-codes.md "Printer Status Codes").

### Print a custom message

Prints a custom-formatted receipt without any transaction data.

```java

Api.printOnCommand(context, formattedMessage);
```

**Response:** `ACTION_GET_PRINT_STATUS_RESULT`
