Hello Ken,
I am new to this mailing list.
I am new to the API as well but I think I found a problem with your
request. You specify a contact_set but no contacts. I do not beleive you
have have a contact_set without a contacts. The "999" should refer to the
contact in the contacts list where 0 is the first one. So if you put 999,
that assume you have put 1000 contacts in the contacts list.
'attributes' => {
'user_id' => '666',
'handling' => 'process',
'contacts' => [
{
'contact_id' => '34773'
}
],
'create_items' => [
....
and then:
'contact_set' => {
'owner' => '0'
}
To refer to the first contact in the list above.
I hope this helps.
On Sun, 28 Nov 2004, Ken Lowther wrote:
> My son has been working off of some sample code trying to create a trial
> account on the horizon.opensrs.net site. If I change authentication
> parameters it fails so I guess it is getting past the auth.
>
> What I get is:
>
> In signup.
> Sending request...
> Response received...
> Failed registration: 5000 Unable to process the order: all order items
> are failed in creation..<br>
>
> The code is:
>
>
> print "In signup.\n";
> my (%HTML);
> my $tpp_request = {
> 'protocol' => 'TPP',
> 'object' => 'order',
> 'version' => '1.4.0',
> 'action' => 'create',
> 'requestor' => {
> 'username' => 'somethingvalid',
> 'password' => 'secret',
> },
> 'attributes' => {
> 'user_id' => '666',
> 'handling' => 'process',
> 'create_items' => [
> {
> 'service' => 'wsb',
> 'orderitem_type' => 'new',
> 'object_type' => 'account',
> 'product_data' => {
> 'brand_name' => '666_project',
> 'package_name' => 'ecomm',
> 'language' => 'en',
> 'account_username' =>
> 'newaccountname',
> 'account_password' => 'sercret',
> 'lost_password_email' =>
> '[EMAIL PROTECTED]',
> 'ftp_username' => 'newaccountname',
> 'ftp_password' => 'sercret',
> },
> 'contact_set' => {
> 'owner' => '999'
> }
> }
> ],
>
> Thanks
> Ken
>
>
>
Christian Roy <[EMAIL PROTECTED]>
Pr�sident
Station InfiniWeb inc.
http://www.infiniweb.ca
/* H�bergement Web - Programmation Web - Sites Web - Nom de domaine */
/* Web Hosting - Web Programming - Instant Websites - Domain name */
--
This message has been scanned by Station InfiniWeb inc.
for viruses and dangerous content using MailScanner
technology, and is believed to be clean.
Mailscanner thanks transtec Computers for their support.