• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

CreateAccount planId problem.

D

d_nn_s

Guest
Hey everyone,

I have been trying to simply create a new client and select a specific plan for it.
Everything is working fine, except selecting a plan, because no matter what I do it will select the default (I think) plan.
The following is from the corresponding database:

mysql> select id, uuid from plan;

| id | uuid

| 1 | 06cbd4eb-560f-c3a4-a4e0-fd73846d4293
| 2 | 652cf383-61a2-0908-8302-ba2b8b7f51e0
| 3 | 0c49eb20-9fd6-6f6e-f0f0-9aba713af10f
| 4 | 3ee76b09-0824-7821-cd95-43dc11086141
| 5 | 2f5d599e-fdab-75f5-5810-eb4da762f863
| 6 | 2409bad5-a13b-1a73-fdc8-345eaa2774c3

This is the code that I'm using:

$struct = new stdClass();
$struct->username = $parcelUser;
$struct->password = $parcelPwd;
$struct->firstName = $firstName;
$struct->lastName = $surname;
$struct->email = $email;
$struct->role = 'SiteOwner';

// I have tried all of these, none work.
//$struct->planId = 3;
//$struct->planId = '3';
//$struct->planId = '0c49eb20-9fd6-6f6e-f0f0-9aba713af10f';

$result = $accountService->CreateAccount(new SoapVar($struct, SOAP_ENC_OBJECT));
$accountId = $result->UserAccount->AccountId;

As you can see, no matter what I try, planId won't respond to any changes.
it will always select the plan with id = 2 (from the MySQL query).

Has anyone experienced something similar or knows the solution to my problem?
Thanks in advance.
 

Similar threads

M
Replies
0
Views
1K
mina Fahmy
M
J
Replies
5
Views
4K
holykim66
H
K
Replies
1
Views
2K
kbessinger
K
Back
Top