Send an email receipt for a specific transaction to the associated customer's email address on file.
The Email Transaction Receipt endpoint allows you to send an email receipt for a specific transaction to the associated customer's email address on file. You can also send copies of the receipt to additional email addresses by including them in the request.
Key Features
- Send transaction receipts via email to customers.
- Include additional recipients in CC.
- Customize email content (if supported by the platform).
Usage Notes
Customer's Email: Ensure that the customer's email address is correctly stored in their profile.
Multiple Recipients: You can include multiple email addresses in ccEmails
to send copies to others (e.g., accounting department).
Email Customization: Any customization of the email template should be configured in your account settings, if supported.
Response Structure
Code | Response | Reason |
---|---|---|
200 | Success | Returns a confirmation message indicating that the email receipt was sent successfully. |
400 | Bad Request | Invalid email addresses or missing customer email. |
401 | Unauthorized | Authentication failed. |
404 | Not Found | Transaction ID does not exist. |
500 | Internal Server Error | An unexpected error occurred on the server. |
Important Considerations
Email Deliverability: Ensure that emails sent from your platform comply with email sending best practices to avoid spam filters.
Consent and Compliance: Ensure you have consent to send emails to the recipients in compliance with regulations like CAN-SPAM and GDPR.
Error Handling: Implement error handling for scenarios where emails fail to send due to invalid addresses or server issues.