send_transactional_email
Send a 1-to-1 locked transactional email (6-digit OTP challenge, paid invoice receipt, or order shipping status update) or verify a 6-digit OTP code entered by a user. Use this tool for transactional 1-to-1 emails and managed OTP verification; bulk marketing or promotional blasts are strictly prohibited. Requires PUSHNOTIF_API_KEY; sending an email or OTP deducts 25 credits (Rp 5), while verifying an OTP code (action=verify_otp) costs 0 credits. Returns JSON delivery receipt or OTP verification token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Operation mode: 'send_otp' (generate & email 6-digit OTP), 'verify_otp' (verify 6-digit code), 'send_invoice' (send paid receipt email), or 'send_order_status' (send order/shipping update) | |
| app_id | Yes | Target application ID in format app_xxxx (obtain from list_apps) | |
| otp_code | No | 6-digit numeric OTP code (required when action='verify_otp') | |
| to_email | Yes | Single recipient email address (1-to-1 transactional only) | |
| detail_text | No | Transaction amount/items or shipping courier tracking info (e.g., 'Rp 85.000 — Kopi Susu' or 'DIKIRIM — Resi JNE: JP882910') | |
| reference_id | No | Invoice number or Order ID (e.g., 'INV-2026-001' or 'ORD-99281' for send_invoice / send_order_status) |