Shopware icon

Shopware

Shopware

Actions778

Customer Impersonation → Generate Imitate Customer Token

AI-generated

Overview

This node operation generates an impersonation token for a customer in a specified sales channel. It is useful for scenarios where an admin or support agent needs to imitate a customer to troubleshoot issues or perform actions on behalf of the customer within the sales channel context.

Use Case Examples

  1. An e-commerce admin generates an impersonation token to view the customer's shopping cart and order history as the customer would see it.
  2. A support agent uses the token to replicate a customer's experience to diagnose a reported problem.

Properties

Name Meaning
Customer Id The unique identifier of the customer to impersonate.
Sales Channel Id The unique identifier of the sales channel in which the impersonation token is generated.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • token - The generated impersonation token for the customer.

Dependencies

  • Requires API authentication credentials to connect to the Shopware Admin API.

Troubleshooting

  • Ensure the provided Customer Id and Sales Channel Id are valid and exist in the Shopware system.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL certificate validation fails, consider enabling the option to ignore SSL issues, but be aware of security risks.
  • Verify that the API credentials have sufficient permissions to generate impersonation tokens.

Discussion