WAPI – command contact-update

  WAPI (API Interface), Contacts

Use this command to edit individual contact items. It is always necessary to enter all the items you can not send just one for example

All changes must be authorized, you must either enter a password  (auth_info), or authorization must be set in your client account (authorization of contact at the account occurs after the first successful use of an authorization code, or when creating the contact through our system).

For more detailed specifications for working with contacts in the various registers:

Parameters

  • tld – TLD
  • cname – contact name
  • auth_info – authorization string
  • contact – contact Items
    • fname – your name
    • lname – your surname
    • company – your comapny
    • addr_street – street
    • addr_city – city
    • addr_zip – ZIP
    • addr_state – state
    • addr_country – country (ISO country code – lowercase)
    • phone – phone
    • fax – fax
    • email – e-mail
    • email2 – second e-mail
    • ic – Company ID
    • dic – VAT number
    • + other items according to the registry

Return Values

  • 1000 = OK
  • 2201 = invalid TLD
  • 2207 = invalid syntax in contact name
  • 2216 = invalid contact name
  • 2219 = not filled item company
  • 2220 = not filled item name
  • 2221 = not filled item last name
  • 2222 = not filled item  email
  • 2223 = wrong item format email
  • 2224 = not filled item email2
  • 2225 = wrong item format email2
  • 2226 = not filled item phone
  • 2227 = wrong item format phone
  • 2228 = not filled item fax
  • 2229 = wrong item format fax
  • 2230 = not filled item company ID
  • 2231 = wrong item format company ID
  • 2232 = not filled item VAT number
  • 2233 = wrong item format VAT number
  • 2234 = not filled item street
  • 2235 = not filled item city
  • 2236 = not filled item zip
  • 2237 = not filled item country
  • 2238 = wrong item format country
  • 2239 = not filled item state
  • 2240 = not filled item other data
  • 2241 = wrong item format v ostatních datech
  • 3211 = error – failed to retrieve contact
  • 3238 = authorization error
  • 3239 = operation failed
  • 4202 = unavailable contact – connection error, try again later
  • 4215 = implementation failed – connection error, try again later

Return data

Command does not return any data.

Example of use

XML dotaz:

<request>
 <user>tester</user>
 <auth>e347aa51858cf6b6c017ae5d060fefca1b9dba38</auth>
 <command>contact-update</command>
 <clTRID>6246</clTRID>
 <data>
  <tld>cz</tld>
  <cname>TESTER</cname>
  <auth_info>qQm1Gq4x</auth_info>
  <contact>
   <fname>Honza</fname>
   <lname>Tester</lname>
   <email>testerk@example.com</email>
   <addr_street>Street 123</addr_street>
   <addr_city>Minas Morgull</addr_city>
   <addr_zip>12345</addr_zip>
   <addr_country>vg</addr_country>
   <phone>+011 123456789</phone>
   <notify_email>tester@example.com</notify_email>
  </contact>
 </data>
</request>

XML odpověď:

<response>
 <code>1000</code>
 <result>OK</result>
 <timestamp>1288103320</timestamp>
 <clTRID>6246</clTRID>
 <svTRID>1288103320.7998.21428.1</svTRID>
 <command>contact-update</command>
</response>
Děkujeme za zpětnou vazbu!