Customer data operations
Customer export and deletion routes use a dashboard session, workspace scope, and organization admin authorization.
Export a customer
const response = await fetch(
'https://usagey.com/api/billing/customers/cust_123/export?organizationId=org_123&env=sandbox',
{credentials: 'include'},
);
const customerExport = await response.json();
Exports include the customer record and related billing-domain data available in that workspace. Compliance operations emit audit/developer events.
Deletion is destructive
Confirm organization, environment, customer identity, and retention obligations before invoking a deletion route.