{"section":"known-issues","requestedLocale":"en","requestedSlug":"my-credits-displays-agents-balance-not-customers-during-telesales-impersonation","locale":"en","slug":"my-credits-displays-agents-balance-not-customers-during-telesales-impersonation","path":"docs/en/known-issues/Payments/my-credits-displays-agents-balance-not-customers-during-telesales-impersonation.md","branch":"main","content":"## Summary\n\n\nWhen a user with the Telesales role impersonates a customer and navigates to My Account > My Credits, the balance displayed corresponds to the telesales agent’s own credit instead of the impersonated customer’s credit.\n\nThis issue occurs specifically within the telesales impersonation flow and was reproduced internally. The behavior is caused by the My Credits app fetching the authenticated telesales user’s email from the session rather than the impersonated customer’s identity.\n\nAs a result, the incorrect balance may be shown to agents and customers during telesales-assisted purchases, creating confusion and risk of order errors.\n\n\n#### Simulation\n\n\n1) Log in as User A (telesales role).\n2) Impersonate User B via Telesales (become User B in storefront).\n3) Navigate to My Account > My Credits while impersonating User B.\n4) Observe that the balance shown matches User A's credit (telesales agent), not User B's credit.\n\n\n#### Workaround\n\n\nFor operational teams: avoid checking credits through the impersonation flow. Instead, confirm balances via back-office tools or APIs where the correct customer email/account can be specified.\n\nFor implementers: if customizing the front-end, ensure that when impersonation is active, the Customer Credit API is queried using the impersonated customer’s email while authenticating with the telesales agent’s session cookie."}