VoucherPurchases
Send a voucher recipient email
Sends the gift email to the recipient on file for a voucher purchase. The rendered email is also returned in the response so operator UIs can preview what was sent.
Pass recipient overrides in the body to redirect the send — most commonly when the original delivery bounced or the customer supplied a corrected email address.
post/shop/voucher-purchases/{voucherPurchaseId}/send-email
Request body
Example request
{
"recipient_email": "jane@example.com",
"recipient_name": "Jane Jenkins"
}Response
A preview-ready transactional email built from the voucher purchase. Returned by both the preview and send endpoints.
Example response
{
"data": {
"from": {
"address": "jane@example.com",
"name": "Jane Jenkins"
},
"to": [
{
"address": "jane@example.com",
"name": "Jane Jenkins"
}
],
"cc": [
{
"address": "jane@example.com",
"name": "Jane Jenkins"
}
],
"bcc": [
{
"address": "jane@example.com",
"name": "Jane Jenkins"
}
],
"subject": "Your spa day voucher is here!",
"html": "<html><body>Enjoy your day!</body></html>"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.