Create a member
Changed onAdds a member to the merchant account with the specified roles.
By default, sends an invitation email to the provided address. The recipient must accept the invitation to join the account. When is_managed_user is true, creates a managed user with the provided password and optional nickname and assigns the roles directly, without sending an invitation.
Request
- Base URLhttps://api.sumup.com
- URLhttps://api.sumup.com/v0.1/merchants/{merchant_code}/members
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://api.sumup.com/authorizeToken URL: https://api.sumup.com/token scopes: user.subaccounts, members.write
Path parameters
Short unique identifier for the merchant.
Request body
Example request
{
"email": "karl.berg@example.com",
"roles": [
"role_employee"
]
}Response
Returns the Member object if the creation succeeded.
Example response
{
"id": "mem_WZsm7QTPhVrompscmPhoGTXXcrd58fr9MOhP",
"roles": [
"role_admin",
"role_owner"
],
"permissions": [
"members_read",
"members_write",
"create_moto_payments",
"full_transaction_history_view",
"refund_transactions",
"create_referral",
"developer_settings_edit",
"developer_settings_access"
],
"created_at": "2023-01-20T15:16:17Z",
"updated_at": "2023-02-20T15:16:17Z",
"user": {
"id": "44ca0f5b-813b-46e1-aee7-e6242010662e",
"email": "example@sumup.com",
"mfa_on_login_enabled": true,
"virtual_user": false,
"service_account_user": false
},
"status": "accepted"
}Changes
- breaking
the
request property's minItems was increased to1
- breaking
- warning
the
request property's maxLength was set to256 - warning
the
request property's maxLength was set to64 - warning
the
/request property's maxLength was set to64 - info
the security scope
members.writewas added to the endpoint's security schemeoauth2 - info
the security scope
user.subaccountswas added to the endpoint's security schemeoauth2
- warning