I actually got that - all the client code does is loop through sw_register if bulk_order = 1 for each domain name that you specify.
What happens on the API side is single sw_register commands (each with their own system generated order, charged seperately, etc). Looping is the way :) Charles Daminato OpenSRS Product Manager Tucows Inc. - [EMAIL PROTECTED] -----Original Message----- From: Jason Beebe [mailto:[EMAIL PROTECTED]] Sent: January 10, 2003 12:59 PM To: Charles Daminato; [EMAIL PROTECTED] Subject: Re: Bulk Order Just to clearify, I am not using the OpenSRS Perl client. I am creating my own client from scratch with PHP. I am not refering to register.cgi?action=bulk_order, nor any code or examples found in the OpenSRS Perl client. If we are on the same page, then... Ok, so when I call the "sw_register" action I can use the attribute "bulk_order"? Where are all the domains listed then? Like I said, I see nothing in the docs that make reference to bulk ordering, so I need some more insight or an example of the array I need to build to push it to OpenSRS. Here is a code snippet that someone else had written, and as you can see, they are passing an attribute called bulk_order, but how it is utilized it beyond me. Bottom line, I send multiple domain registrations through with one single command to OpenSRS as depicted below? Or, must I use logic in my own code to loop through each domain the customer has choosen and make individual sw_register calls. $cmd=array('protocol'=>'XCP', 'action'=>'SW_REGISTER', 'object'=>'DOMAIN', 'attributes'=>array('domain'=>$domain, 'reg_type'=>'new', 'reg_username'=>$username, 'reg_password'=>$password, 'reg_domain'=>$linkdomain, 'bulk_order'=>$bulk_order, ....................... ----- Original Message ----- From: Charles Daminato To: Jason Beebe ; [EMAIL PROTECTED] Sent: Friday, January 10, 2003 10:43 AM Subject: RE: Bulk Order That's what the bulk_order does, fundamentally, is loop through sw_register calls. :) Charles Daminato OpenSRS Product Manager Tucows Inc. - [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Beebe Sent: January 10, 2003 12:35 PM To: [EMAIL PROTECTED] Subject: Bulk Order Hi, I am writing a custom client. I noticed in some sample code there is a "bulk_order" attribute. However, in the documentation it makes no reference (that I have found) to the "bulk_order" attribute or if bulk ordering is possible. Basically, if a customer wants to register 10 new domains, is there a bulk ordering feature that sends and links all 10 domains through in one call to OpenSRS. Or, do I have to loop through them, 1 by 1, making individual individual register (sw_register) calls. Thanks for the insight! Jason
