Shopware
Set up the Shopware 6 partner plugin or build a custom integration.
Shopware
Use the Shopware 6 partner plugin for customer sign-in and address synchronization, or build a store-side integration with Unidy APIs. The partner plugin is installed in Shopware; its absence from the Unidy dashboard catalogue does not mean no Shopware integration exists.
| What you need | Start here | What to prepare |
|---|---|---|
| Customers sign in with their Unidy account | Choose an authentication approach | A store-side application, callback URLs, and the customer attributes you need. |
| Orders appear on the customer record in Unidy | Common REST workflows | Transactions enabled for your tenant, server-side credentials, and stable order identifiers. |
| Your store reacts to changes in Unidy | Webhooks overview | An HTTPS receiver, selected event subscriptions, and signature verification. |
Customer sign-in
For a store backend that can keep a client secret, follow Authorization Code for confidential clients. Keep the secret on the server. For a browser-only integration, use the authentication guide to choose the appropriate flow.
Request only the identity scopes the store needs. With the address scope, address.country_code supplies the stored ISO 3166-1 alpha-2 country code when available; you do not need to convert the localized address.country display name. See ID tokens and claims for the claim contract and missing values.
Order ingestion
Write orders as transactions through the server-to-server REST API using a client-credentials token. Grant scopes for the operations you use: batch writes require transactions_batch:write; individual transaction writes require transactions:write. A batch-only integration does not need both. See Scopes and permissions.
Keep external_id, source_platform, and source_channel_id consistent across imports and updates. Together they identify a transaction; changing one can create a different record. Use a stable store identifier when several stores share an environment.
Decide how guest purchases map to customers before importing. Supplying an email to the transaction APIs can create a customer when no matching customer exists. Use the intended Unidy customer ID when you already know it, and check item-level results before retrying a batch. The REST workflows and retry guide cover request and recovery details.
Receive changes
Subscribe only to the events the store uses. Follow Configure and secure a webhook to verify signatures and handle repeated deliveries, and use the event reference for payloads.
Before going live, verify customer matching, an order update, and a repeated delivery with your store-side implementation. Agree who owns monitoring and recovery whether you build that implementation or use a partner service.
Install the Shopware 6 partner plugin
The Unidy Shopware Plugin by Fuexchen supports Unidy SSO, customer address synchronization and configurable guest, Shopware-account and Unidy checkout options. Ask Unidy Customer Success for the supported package version, installation source and OAuth credentials. The historical Shopware Store listing may no longer resolve; confirm availability before planning a new installation.
- Install the agreed plugin in Shopware 6.
- Enter your Unidy instance domain and OAuth credentials in its settings. Keep the client secret on the store backend.
- Choose the allowed login and checkout options, then test each enabled path with a customer account.
- Verify the address data and logout behavior before launch. Order ingestion is a separate integration described above.
Extend membership mapping in the partner plugin
For plugin versions exposing the following public extension events, a Shopware subscriber can request additional OAuth scopes and extend the customer mapping. Confirm these hooks against the installed Fuexchen version. This is customer-side extension code, not a Unidy backend customization.
Fuexchen\FuexcUnidyLogin\Event\UnidyOauthScopesextends the requested scopes.Fuexchen\FuexcUnidyLogin\Event\UnidyCustomerObjectBuildextends the customer data written to Shopware.
The example requests active_membership and writes one configured membership-category claim to a Shopware custom field. Replace the category key and custom-field name with your own; provision the scope/claim in Unidy and the custom field in Shopware. Shopware rules can then use that field for discounts or presale access. A missing claim defaults to false.
<?php declare(strict_types=1);
namespace Example\Subscriber;
use Fuexchen\FuexcUnidyLogin\Event\UnidyCustomerObjectBuild;
use Fuexchen\FuexcUnidyLogin\Event\UnidyOauthScopes;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class UnidyDataMappingSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
UnidyOauthScopes::EVENT_NAME => 'onScopes',
UnidyCustomerObjectBuild::EVENT_NAME => 'onCustomer',
];
}
public function onScopes(UnidyOauthScopes $event): void
{
$event->addScope('active_membership');
}
public function onCustomer(UnidyCustomerObjectBuild $event): void
{
$claims = $event->getUnidyData();
$customer = $event->getBuildData();
$customer['customFields'] ??= [];
$customer['customFields']['custom_example_is_member'] =
$claims->active_membership->{'YOUR_MEMBERSHIP_CATEGORY_ID'} ?? false;
$event->setBuildData($customer);
}
}Find the linked Unidy ID in Shopware
In the documented partner-plugin data model, the linked Unidy ID is not shown as a standard Shopware customer field. It lives in the fuexc_unidy_user API entity, defined by Fuexchen\FuexcUnidyLogin\Extension\Checkout\Customer\FuexcUnidyUserDefinition. The customer has a unidyUser association. Inspect that association in the Shopware Admin API response's included data and read unidyId alongside customerId. These are distinct identifiers. Use Shopware's authorized API or extension code rather than editing database rows.
Log out of Shopware and Unidy
Enable the plugin option that also logs the Unidy user out when the customer leaves Shopware if account switching should end both sessions. Register the shop's post-logout destination in Unidy before testing it.
Older installations used Admin → Settings → Settings → User flow settings → Allowed external redirect URLs. In the current dashboard, review the brand's allowed redirect hosts under Customization → Security; for OIDC logout, register the full post-logout URI on the OAuth application. Follow session and logout guidance for the request your plugin sends. Test logout and a subsequent sign-in with a different account; a store-only logout does not establish that the Unidy session ended.