mutation SaveConnectorCustomerGroups($request: SaveConnectorCustomerGroupsCommandRequestInput!) {
SaveConnectorCustomerGroups(request: $request) {
customerGroups {
endpointId
endpointName
customerGroupId
isDefault
}
liveSyncStatus
liveSyncError {
code
message
}
}
}{
"request": {
"salesChannelId": "string",
"customerGroups": [
{
"endpointId": "string",
"customerGroupId": "id"
}
]
}
}{
"data": {
"SaveConnectorCustomerGroups": {
"customerGroups": [
{
"endpointId": "string",
"endpointName": "string",
"customerGroupId": "id",
"isDefault": true
}
],
"liveSyncStatus": "UNKNOWN",
"liveSyncError": {
"code": "string",
"message": "string"
}
}
}
}SaveConnectorCustomerGroups
Replaces all customer-group mappings of a connector account and pushes the result to the connector endpoint. The request describes the complete desired state: listed mappings are created or updated, all other mappings are removed. EndpointIds that are neither mapped nor reported by the endpoint are ignored. The name and default flag of an endpoint customer group come from the endpoint and cannot be set here; for EndpointIds that are not mapped yet, JTL-Wawi reads them live from the endpoint before saving; if this read fails, the request fails with 502/504 and nothing is saved. The mappings are saved even if the subsequent push to the endpoint fails; the push result is returned in “LiveSyncStatus” and “LiveSyncError”.
SaveConnectorCustomerGroups(request: SaveConnectorCustomerGroupsCommandRequestInput!): SaveConnectorCustomerGroupsCommandResponse!Arguments
The saved customer-group mappings, excluding ignored EndpointIds. "EndpointName" is null if the endpoint reports no name for a group. Reflects the saved state, independent of the push result in "LiveSyncStatus".
Outcome of the live push to the connector endpoint.
Details of a failed push. Always present; "Code" and "Message" are set only if "LiveSyncStatus" is SyncFailed or SyncTimedOut (omitted in REST, null in GraphQL).
mutation SaveConnectorCustomerGroups($request: SaveConnectorCustomerGroupsCommandRequestInput!) {
SaveConnectorCustomerGroups(request: $request) {
customerGroups {
endpointId
endpointName
customerGroupId
isDefault
}
liveSyncStatus
liveSyncError {
code
message
}
}
}{
"request": {
"salesChannelId": "string",
"customerGroups": [
{
"endpointId": "string",
"customerGroupId": "id"
}
]
}
}{
"data": {
"SaveConnectorCustomerGroups": {
"customerGroups": [
{
"endpointId": "string",
"endpointName": "string",
"customerGroupId": "id",
"isDefault": true
}
],
"liveSyncStatus": "UNKNOWN",
"liveSyncError": {
"code": "string",
"message": "string"
}
}
}
}Was this page helpful?