REST Example: Print a Customer or Merchant Receipt {#sis-pymnt-svcs-cloud-receipt-print-ex-rest}
================================================================================================

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."
}
```

