FILTER BY TAG

Printing a Customer or Merchant Receipt

Use this information 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 to Print a Customer or Merchant Receipt

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

REST Example: Print 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
When the request is unsuccessful, you receive an error response with details.
{ "type": "ErrorResponse", "message": "Error message to display.", "developerDescription": "Detailed description of error." }