On This Page
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 Local mode. This feature can only be used with terminals that have
integrated printers.
Endpoint
The endpoint is the same for the test and production environments.
Test:
wss://{terminal IP address:port number}/
Production:
wss://{terminal IP address:port number}/
Required Fields to Print a Customer or Merchant Receipt
- type
- Set the value toPrintReceiptRequest.
- transactionId
- Set the value to the ID field value from the original transaction.
- receiptType
- Set the value toCUSTOMERorMERCHANT.
REST Example: Print a Customer or Merchant Receipt
Request
{ "type": "PrintReceiptRequest", "transactionId": "8fe5fa21d0814424bcec4997c9dc89c4", "receiptType": "CUSTOMER" }
Mid-Operation Status Updates
During the operation, you might receive one or more update responses indicating the
current status of the operation. You can choose to display these updates on your
point-of-sale (POS) system.
{ "type": "OperationStatusResponse", "message": "Status update to display." }
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." }