thunderbird_accounts.support.customer

Customer support lookup API.

This module powers the authenticated support customer endpoint used by support tools such as Zendesk. It deliberately builds the response in permission-gated sections so a staff viewer only receives the customer data their Django model permissions allow them to see.

Functions

get_customer_support_data(email[, viewer])

Return a permission-filtered support summary for the customer email.

support_customer_api(request, *args, **kwargs)

Authenticated API endpoint for support customer lookups.

Classes

SupportCustomerThrottle()

thunderbird_accounts.support.customer.get_customer_support_data(email: str | None, viewer: User | None = None) → dict[source]

Return a permission-filtered support summary for the customer email.

class thunderbird_accounts.support.customer.SupportCustomerThrottle[source]

Bases: UserRateThrottle

thunderbird_accounts.support.customer.support_customer_api(request, *args, **kwargs)

Authenticated API endpoint for support customer lookups.