Skip to main content
All CollectionsAdvanced FAQsAPI Documentation
Send eCards via Email Endpoint
Send eCards via Email Endpoint

Endpoint to send eCards via email

Tim Badolato avatar
Written by Tim Badolato
Updated over 8 months ago

Note: The API is limited to Enterprise Customers only. The feature is new and is under active development. We welcome any questions or feedback you may have. Feel free to reach out to us at [email protected].
โ€‹
โ€‹View more API Endpoints

Endpoint URL

POST https://app.ecardwidget.com/widget/{widget_id}/email/{ecard_id}?locale={locale_type}

Request Parameters

Parameter

Description

Type

Example

widget_id

ID of the eCard widget.

int

6785

ecard_id

ID of the ecard being sent.

int

21218

locale

Locale for translations. Optional.

string

"en"

contact_name

Name of the sender.

string

"Billy"

email

Email address of the sender.

string

optin

Subscription status of the sender.

bool

false

opennotification

Preference to receive open notifications.

bool

false

yourMessage

Personal message from the sender.

string

"asdf as fsaddsfa"

recipients

Array of recipient details (name & email).

array

[{"name":"Test", "email":"[email protected]"}]

Response Codes and Messages

Always returns status code 200 and the following string.

Code String

Message

wouldexceedlimit

"You tried to send {var1} emails but this account only has {var2} emails remaining for this billing period. Please upgrade your account or contact the website admin."

postmarkErrs

Dependent on the number of errors versus recipients. Messages about specific Postmark errors.

toomany

"You entered too many recipients!"

tooshort

"You forgot to add recipients to your ecard. Make sure you click the plus button next to the recipients field."

einvalid

"Your email address is invalid."

finvalid

"One of your recipients email addresses is invalid."

limitReached

"Unable to send! You've sent more than {var1} emails in the last {var2} seconds."

blocked

"1" (Indicates a block without informing the sender). False positive to confuse spammers.

spammer

"Something went wrong! Please contact us."

ListLen(optOutList)

"Your email was sent successfully but the following emails have requested to not receive emails."

shopifyPreCheckout

Returns preCheckoutStatID or 0.

success

"1"

Default

"Your request failed! Please try again."


The above documentation provides a clear and precise breakdown of the email sending API for eCardWidget. Remember to adjust the {var1} and {var2} placeholders based on the specific scenario when implementing this API.

Did this answer your question?