Booking Flow

Voucher Purchases

A VoucherPurchase is the purchase-side record of a voucher transaction — it captures the buyer, the recipient's contact details, the delivery method, and the gift-email content. The tradable VoucherCodes issued by the purchase are managed under the VoucherCodes tag.

post/shop/voucher-purchases/{voucherPurchaseId}/preview-email

Preview a voucher recipient email

actionPreviewVoucherPurchaseEmail

Renders the gift email that would be sent to a voucher recipient without dispatching it. Use this in operator UIs to show staff exactly what the recipient will see — including the rendered HTML body, sender, subject and CC/BCC list — before they commit to sending.

Pass recipient overrides in the body to preview against a different address (for example, a staff test inbox).

Path parameters

Request body

  • recipient_emailemailoptional

    Override the recipient email address. Defaults to the purchase's stored recipient email if omitted.

  • recipient_namestringoptional

    Override the recipient name shown in the email greeting. Defaults to the purchase's stored recipient name if omitted.

Responses

  • 200

    A preview-ready transactional email built from the voucher purchase. Returned by both the preview and send endpoints.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

post/shop/voucher-purchases/{voucherPurchaseId}/send-email

Send a voucher recipient email

actionSendVoucherPurchaseEmail

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.

Path parameters

Request body

  • recipient_emailemailoptional

    Override the recipient email address. Defaults to the purchase's stored recipient email if omitted.

  • recipient_namestringoptional

    Override the recipient name shown in the email greeting. Defaults to the purchase's stored recipient name if omitted.

Responses

  • 200

    A preview-ready transactional email built from the voucher purchase. Returned by both the preview and send endpoints.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation