# CreatePartnerUserDto

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

A user the partner creates ahead of time. The user has no WinkPG password: the partner signs them in.

## Fields
- `partnerUserId` (string) required: The partner's own stable ID for the user. Unique for the partner, and it can't change later. (nullable, max length 128)
- `email` (string) required: The user's email address. It must not belong to another account. (nullable, max length 256)
- `userName` (string): The user name. Leave it out to use the email address. (nullable, max length 256)
- `name` (string): The user's first name. (nullable, max length 64)
- `surname` (string): The user's last name. (nullable, max length 64)
- `phoneNumber` (string): The user's phone number. (nullable, max length 16)
- `roleNames` (array<string>) required: The roles the user holds, by name. Required. Every role must be at or below the registration's role ceiling, and roles from more than one level are refused. (nullable)
- `merchantIds` (array<string(uuid)>): The merchants a merchant-level user sees, one or several. Each must exist in the partner's reseller. Leave it out for a reseller-level user. (nullable)

## See also

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