This API allows you to send emails using your own authorized domains. A domain needs to be first added and verified in Paysight before it can be used.
tenant_key
which is a UUID associated with your account. This key must be included in all API requests.
POST https://app.paysight.io/api/email
Request Body:
Note: For security reasons, loading templates from files is not supported. Templates must be provided directly in the templateContent
field when using the “string” templateType.
Response:
POST https://app.paysight.io/api/email/batch
Request Body:
idempotencyKey
in the request, or the API will generate one based on the content of the request.
Idempotency keys expire after 7 days.
generic
: A generic email template with heading, body content, and CTA buttonorder-confirmation
: An order confirmation email templatewelcome-membership
: A welcome email for new members{{variable}}
syntax and conditional blocks using {{#if variable}}...{{/if}}
.
Example: