Resend the order confirmation email to the buyer.
POST https://www.digistore24.com/api/call/resendPurchaseConfirmationMail
purchase_id(string) - The Digistore24 order ID
{
"data": {
"modified": "Y",
"note": "Email sent successfully"
}
}use Digistore24\Request\Purchase\ResendPurchaseConfirmationMailRequest;
$request = new ResendPurchaseConfirmationMailRequest(
purchaseId: 'ABCD-1234-EFGH'
);
$response = $digistore24->purchases()->resendConfirmationMail($request);
if ($response->wasSuccessful()) {
echo "Confirmation email sent";
if ($response->note) {
echo "Note: {$response->note}";
}
} else {
echo "Failed to send email";
}// Customer says they didn't receive confirmation email
$request = new ResendPurchaseConfirmationMailRequest(
purchaseId: 'CUSTOMER-PURCHASE-ID'
);
try {
$response = $digistore24->purchases()->resendConfirmationMail($request);
echo "Email resent to customer";
} catch (\Digistore24\Exception\ApiException $e) {
echo "Error: " . $e->getMessage();
}- Duplicate Emails: Customer will receive another copy of the original confirmation
- Email Limits: Be mindful of spam filters when resending multiple times
- Customer Support: Useful for customers who lost or deleted their confirmation
- getPurchase - Verify purchase details before resending
- listPurchasesOfEmail - Find purchase by customer email