Recommended shape
customerId every time the same paying account uses an AI workflow.
Customer ID rules
Good customer IDs are:- Stable across deploys and sessions
- Unique inside the Margovia project
- Namespaced by entity type or source system
- Safe to join back to your app, billing system, logs, or warehouse
"1" or "42" unless that is genuinely the globally stable ID you use everywhere. If your app’s real ID is numeric, prefix it before sending:
margovia_, rewrite IDs, or normalize IDs, because the ID is your join key back to your own systems.
Name versus ID
customerId is the stable grouping key. customerName is the display name shown in the dashboard.
customerId first and add readable aliases later in Margovia settings.
Plan and revenue
Send plan data when you can. This lets Margovia calculate margin, AI cost as a percentage of revenue, and risky accounts.User IDs
UseuserId for the human or service actor inside the customer account.
userId as a substitute for customerId unless your product bills individual users and the user is the actual customer.