Invoice Number
{{ invoice.invoice_literal or invoice.invoice_id }}
Merchant
{{ merchant.name or "—" }}
Customer
{% if customer %}
{% if customer.business_legal_name %}
{{ customer.business_legal_name }}
{% elif customer.first_name or customer.last_name %}
{{ (customer.first_name or "") ~ " " ~ (customer.last_name or "") }}
{% else %}
—
{% endif %}
{% else %}
—
{% endif %}
Authorization Type
{% if authorization %}
{% if authorization.authorization_type == "CHECKBOX" %}Checkbox
{% elif authorization.authorization_type == "SIGN" %}Signature
{% elif authorization.authorization_type == "SMS" %}SMS
{% else %}{{ authorization.authorization_type }}
{% endif %}
{% else %}—{% endif %}
Authorized By
{% if authorization and authorization.signing_name %}
{{ authorization.signing_name }}
{% elif authorization and authorization.auth_metadata and authorization.auth_metadata.current_user %}
{{ authorization.auth_metadata.current_user }}
{% else %}—{% endif %}
Authorized At
{% set auth_ts = (authorization.authorization_date or authorization.created_at) if authorization else None %}
{% if auth_ts %}
{{ auth_ts.strftime("%B %d, %Y at %H:%M UTC") }}
{% else %}—{% endif %}
Amount
${{ "%.2f"|format((invoice.amount or 0) / 100) }}
{% if invoice.reference %}
Reference
{{ invoice.reference }}
{% endif %}