Chuyển đến nội dung chính
GET
JavaScript

Ủy quyền

Authorization
string
header
bắt buộc

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.

Tham số đường dẫn

customer_id
string
bắt buộc

The customer's id

email_log_id
string
bắt buộc

The email log entry's id

Phản hồi

The email's stored body

merchant_authored
boolean
bắt buộc

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.

Tùy chọn có sẵn:
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.

Lần sửa đổi cuối 25 tháng 9, 2026