Printing a Customer or Merchant Receipt

This section describes how to print a customer or merchant receipt from a previous transaction when the app is in Cloud mode. This feature can be used only with terminals that have integrated printers.
Generate a bearer token before sending each request. For more information, see Generating a Bearer Token for Authentication.

Endpoints

Test:
POST https://terminalstest.cybersource.com/v1/cloud/transactions
Production:
POST https://terminals.cybersource.com/v1/cloud/transactions

Required Fields for Printing a Customer or Merchant Receipt

serialNumber
Set this field to the serial number of the terminal.
request.type
Set this field to
PrintReceiptRequest
.
request.transactionId
Set this field to the ID field value from the original transaction.
request.receiptType
Set this field to
CUSTOMER
or
MERCHANT
.

REST Example: Printing a Customer or Merchant Receipt

Request
{"serialNumber": "1850000000", "request": { "type": "PrintReceiptRequest", "transactionId": "8fe5fa21d0814424bcec4997c9dc89c4", "receiptType": "CUSTOMER" }}
Response to a Successful Request
{"type": "PrintReceiptResponse", "message": "Receipt printed successfully."}
Response to an Unsuccessful Request
If the request is unsuccessful, you will receive an error response with details.
{"type": "ErrorResponse", "message": "Error message to display.", "developerDescription": "Detailed description of error."}