code: func (api *API) CreateAccountMember(accountID string, emailAddress string, roles []string) (AccountMember, error) {
  	if accountID == "" {
  		return AccountMember{}, errors.New(errMissingAccountID)
  	}
  
  	uri := "/accounts/" + accountID + "/members"
  
  	var newMember = AccountMemberInvitation{
  		Email: emailAddress,
  		Roles: roles,
  	}
  	res, err := api.makeRequest("POST", uri, newMember)
  	if err != nil {
  		return AccountMember{}, errors.Wrap(err, errMakeRequestError)
  	}
  
  	var accountMemberListResponse AccountMemberDetailResponse
  	err = json.Unmarshal(res, &accountMemberListResponse)
  	if err != nil {
  		return AccountMember{}, errors.Wrap(err, errUnmarshalError)
  	}
  
  	return accountMemberListResponse.Result, nil
  }
docs: // CreateAccountMember invites a new member to join an account.
  //
  // API reference: https://api.cloudflare.com/#account-members-add-member