मुख्य सामग्री पर जाएं
GET
JavaScript

प्राधिकरण

Authorization
string
header
आवश्यक

Send your API key as a bearer token: Authorization: Bearer <api_key>. A test mode key starts with dodo_test_, for example dodo_test_AbCd1234EfGh5678.<secret>. A live mode key starts with dodo_live_. Use a test mode key on test.dodopayments.com and a live mode key on live.dodopayments.com. Keys from before these tags have no tag and operate as before.

पथ पैरामीटर

customer_id
string
आवश्यक

The customer's id

email_log_id
string
आवश्यक

The email log entry's id

प्रतिक्रिया

The email's stored body

merchant_authored
boolean
आवश्यक

Whether the merchant wrote this content. It is true for the recovery and dunning emails, which the merchant writes.

The content is email HTML. Render it in a sandbox, whatever this value is.

failure_code
null | enum<string>

Why the email did not arrive. It is null unless the email failed.

उपलब्ध विकल्प:
mailbox_not_found,
address_rejected,
address_suppressed,
mailbox_full,
temporary_failure,
message_too_large,
marked_as_spam,
send_failed,
test_mode_quota_spent
failure_reason
string | null

A sentence that explains failure_code. It is null unless the email failed.

html
string | null

The stored HTML. It is null on a text-only email.

text
string | null

The stored plain text.

अंतिम संशोधन 25 सितंबर 2026