# BulkMerchantGroupMembershipResultDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

What a bulk add or bulk remove did, merchant by merchant.

## Fields
- `groupId` (string(uuid)): The group.
- `results` (array<[MerchantGroupMembershipResultItemDto](https://docs.winkpg.io/docs/api/models/MerchantGroupMembershipResultItemDto.md)>): One entry per distinct merchant in the request, in request order. (nullable)
  Fields of each item:
  - `merchantId` (string(uuid)): The merchant.
  - `outcome` ([MerchantGroupMembershipOutcome](https://docs.winkpg.io/docs/api/models/MerchantGroupMembershipOutcome.md)): The outcome for this merchant.
    Values:
    - `Changed`: The merchant was added to the group, or removed from it.
    - `Unchanged`: The merchant was already in the group (add) or already out of it (remove).
    - `NotFound`: The merchant does not exist, or is outside the caller's scope. The two are reported the same way.
    - `GroupLimitReached`: The merchant is already in as many groups from this group's owner as one merchant may be (20), so it was not added.
    - `Locked`: The merchant is locked, so its groups were not changed. Unlock it and try again.
    - `Conflict`: The merchant was changed by someone else at the same moment, twice in a row, so its groups were not changed. Sending the request again is safe.
- `changedCount` (integer(int32)): How many merchants were changed.
- `unchangedCount` (integer(int32)): How many merchants were already as requested.
- `notFoundCount` (integer(int32)): How many merchants were not found or are outside your scope.
- `groupLimitReachedCount` (integer(int32)): How many merchants were not added because they are already in 20 groups from the group's owner.
- `lockedCount` (integer(int32)): How many merchants were not changed because they are locked.
- `conflictCount` (integer(int32)): How many merchants were not changed because someone else changed them at the same moment.

## See also

- [All documentation](https://docs.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
