Problem
Coming from here. When a domain admin on a non-owner domain (e.g. cardtest.expensify.com) tries to enable Expensify Travel, they receive:
"You don't have permission to enable Expensify Travel for this domain"
Root Cause
The App client sends the domain as parameter domain in the AcceptSpotnanaTerms API call, but api.php reads domainName. This causes the domain to be empty when passed to Auth, which then falls back to the policy owner's email domain (e.g. expensify.com), failing the membership check.
Fix
Rename the domain parameter to domainName in:
AcceptSpotnanaTermsParams.ts
Travel.ts
so it matches what the backend expects.