Skip to main content
PUT
Save Shop Customer Groups

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesChannelId
string
required

Sales channel id of the JTL-Wawi-managed online shop whose customer groups are replaced. Opaque, tenant-local composite identifier (not a UUID); use the value returned by a sales channel listing.

Body

application/json

Request model for SaveShopCustomerGroups command endpoint. Route parameters bind from the route, query parameters from the query string, everything else from the body.

customerGroups
object[]
required

The complete desired set of customer groups for the shop. Any customer group currently assigned but not contained in this list is unassigned. Must contain at least one entry, exactly one of which is marked as the default.

replacements
object[]

For every removed customer group that still has assigned customers, names the customer group taking over those customers. Optional and empty by default; only required when a removal actually needs one.

Response

Successfully replaced the shop customer groups. Returns the resulting assignments.

Replaces the complete set of customer groups assigned to a shop. The request describes the desired state: listed customer groups are assigned, all others are unassigned. The list must not be empty, and exactly one customer group must be marked as default. If a removed customer group still has customers, name a replacement group in "Replacements"; missing replacements for all affected groups are reported together in one 409 error. Returns the resulting assignments. Concurrency: last write wins; concurrent calls for the same shop overwrite each other without a conflict error. - Response

customerGroups
object[]
required

The persisted customer group assignments, in the order submitted.

resyncFailed
boolean
required

Whether the outbound customer resync push to the shop failed after the customer group assignments were already persisted. The assignments are unaffected either way; this only reports the live push outcome, it is not retried automatically.

resyncError
string
required

Generic, client-facing description of why ResyncFailed is true. Empty when ResyncFailed is false.