I'm using php and the php toolkit, I was trying to create 50 new customers via the addList operation.
To do this, I just had a for loop with 50 iterations and had the same customer information for each, except that I changed the email address by using the loop counter...
for($i=1;$i<=50;$i++) {
...
'fname'=> 'testcust',
'lname'=> 'one',
'email' => "testcust{$i}@test.com",
'phone'=> '999-888-7654',
'addr1' => '555 ORder One Test way',
'addr2'=> '',
'city' => 'portland',
'state' => 'OR',
...
}
the code works fine, I know because it works when I'm creating just 1 customer.
The problem is it doesn't work when creating more than one customer as I get this error message back :
UNIQUE_CUST_ID_REQD : A customer record with this ID already exists. You must enter a unique customer ID for each record you create.
So fooling around a bit I've come to the conclusion that it's not allowing me to add more than 1 customer with the same name... or I think that's what happening. Looking at the customer record, it seems the customer ID is the first and last name.
So how on earth am I supposed to create customers with the same name, for example common names like John Smith ?