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 receive an error response with details.
{"type": "ErrorResponse", "message": "Error message to display.", "developerDescription": "Detailed description of error."}