Create a dealer user
Adds a user with the vendedor role (own-orders access, see Authentication) to the shop’s seller and emails
them an invitation. Needs shops.write. A new user is created in the seller’s account with a random password
the dealer replaces through the login page’s password reset; an existing user of the same account just
gets the role. Other roles cannot be assigned here.
POST
/shops/{shop_id}/adminsAuthorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
shop_idintegerrequiredRequest body
requiredapplication/jsonemailstringrequiredLowercased on save. 422 if the user already has a role in the seller or belongs to another account.
namestringDefaults to the part of the email before the @.
branch_idintegerThe sucursal (a branch of the seller) the dealer works at. 422 on $.branch_id if it is not one.
Responses
201
The created dealer user
403
Access denied
422
Invalid or unknown fields, or the user cannot be added